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 classWeight for SortedSetDocValuesMultiRangeQueryprotected static final classA range for ordinal ends. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final List<DocValuesMultiRangeQuery.ByteRange> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSortedSetDocValuesMultiRangeQuery(String fieldName, List<DocValuesMultiRangeQuery.ByteRange> clauses) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateOrdRanges(SortedSetDocValues values, Collection<SortedSetDocValuesMultiRangeQuery.OrdRange> ordRanges) Resolves ordinals for rangeClauses.createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) booleaninthashCode()voidvisit(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:
createWeightin 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()
-