"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java" between
lucene-9.6.0-src.tgz and lucene-9.7.0-src.tgz

About: Lucene is a Java full-text search engine (not a complete application, but rather a code library and API). Java source code.
The most recent release (9.x series).

ToChildBlockJoinQuery.java  (lucene-9.6.0-src.tgz):ToChildBlockJoinQuery.java  (lucene-9.7.0-src.tgz)
skipping to change at line 23 skipping to change at line 23
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.apache.lucene.search.join; package org.apache.lucene.search.join;
import java.io.IOException; import java.io.IOException;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.Locale; import java.util.Locale;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.search.Explanation; import org.apache.lucene.search.Explanation;
import org.apache.lucene.search.FilterWeight; import org.apache.lucene.search.FilterWeight;
import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query; import org.apache.lucene.search.Query;
import org.apache.lucene.search.QueryVisitor; import org.apache.lucene.search.QueryVisitor;
import org.apache.lucene.search.Scorer; import org.apache.lucene.search.Scorer;
import org.apache.lucene.search.Weight; import org.apache.lucene.search.Weight;
import org.apache.lucene.util.BitSet; import org.apache.lucene.util.BitSet;
skipping to change at line 308 skipping to change at line 307
public float getMaxScore(int upTo) throws IOException { public float getMaxScore(int upTo) throws IOException {
return Float.POSITIVE_INFINITY; return Float.POSITIVE_INFINITY;
} }
int getParentDoc() { int getParentDoc() {
return parentDoc; return parentDoc;
} }
} }
@Override @Override
public Query rewrite(IndexReader reader) throws IOException { public Query rewrite(IndexSearcher indexSearcher) throws IOException {
final Query parentRewrite = parentQuery.rewrite(reader); final Query parentRewrite = parentQuery.rewrite(indexSearcher);
if (parentRewrite != parentQuery) { if (parentRewrite != parentQuery) {
return new ToChildBlockJoinQuery(parentRewrite, parentsFilter); return new ToChildBlockJoinQuery(parentRewrite, parentsFilter);
} else { } else {
return super.rewrite(reader); return super.rewrite(indexSearcher);
} }
} }
@Override @Override
public String toString(String field) { public String toString(String field) {
return "ToChildBlockJoinQuery (" + parentQuery.toString() + ")"; return "ToChildBlockJoinQuery (" + parentQuery.toString() + ")";
} }
@Override @Override
public boolean equals(Object other) { public boolean equals(Object other) {
 End of changes. 3 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)