Package org.apache.lucene.sandbox.search
Class SortedSetDocValuesMultiRangeQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.sandbox.search.SortedSetDocValuesMultiRangeQuery
A union multiple ranges over SortedSetDocValuesField
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Weight for SortedSetDocValuesMultiRangeQueryprotected static final class
A range for ordinal ends. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final List
<DocValuesMultiRangeQuery.ByteRange> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SortedSetDocValuesMultiRangeQuery
(String fieldName, List<DocValuesMultiRangeQuery.ByteRange> clauses) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createOrdRanges
(SortedSetDocValues values, Collection<SortedSetDocValuesMultiRangeQuery.OrdRange> ordRanges) Resolves ordinals for rangeClauses.createWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
int
hashCode()
void
visit
(QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Field Details
-
fieldName
-
rangeClauses
-
-
Constructor Details
-
SortedSetDocValuesMultiRangeQuery
protected SortedSetDocValuesMultiRangeQuery(String fieldName, List<DocValuesMultiRangeQuery.ByteRange> clauses)
-
-
Method Details
-
toString
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classQuery
- Throws:
IOException
-
createOrdRanges
protected void createOrdRanges(SortedSetDocValues values, Collection<SortedSetDocValuesMultiRangeQuery.OrdRange> ordRanges) throws IOException Resolves ordinals for rangeClauses. Caveat: sometimes it updates ranges after inserting- Parameters:
values
- doc values to lookup ordinalsordRanges
- destination collection for ord ranges- Throws:
IOException
-
visit
-
equals
-
hashCode
public int hashCode()
-