Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.apache.lucene.index.SortedSetDocValues;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucene.search.FieldComparator;
import org.apache.lucene.search.LeafFieldComparator;
import org.apache.lucene.search.Pruning;
import org.apache.lucene.search.Scorable;
import org.apache.lucene.search.SortField;
Expand Down Expand Up @@ -104,6 +105,11 @@ protected SortedDocValues getSortedDocValues(LeafReaderContext context, String f

return new FieldComparator.TermValComparator(numHits, null, sortMissingLast) {

@Override
public LeafFieldComparator getLeafComparator(LeafReaderContext context) throws IOException {
return super.getLeafComparator(context);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to add this override that I might be missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, thanks for catching it, it was a leftover of some other experiment :)


@Override
protected BinaryDocValues getBinaryDocValues(LeafReaderContext context, String field) throws IOException {
final SortedBinaryDocValues values = getValues(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@
*/
public class DocValuesDocReader implements DocReader, LeafReaderContextSupplier {

protected final SearchLookup searchLookup;

// provide access to the leaf context reader for expressions
protected final LeafReaderContext leafReaderContext;
private final LeafReaderContext leafReaderContext;

/** A leaf lookup for the bound segment this proxy will operate on. */
protected LeafSearchLookup leafSearchLookup;
private final LeafSearchLookup leafSearchLookup;

public DocValuesDocReader(SearchLookup searchLookup, LeafReaderContext leafContext) {
this.searchLookup = searchLookup;
this.leafReaderContext = leafContext;
this.leafSearchLookup = searchLookup.getLeafSearchLookup(leafReaderContext);
}
Expand Down