class TermsIncludingScoreQuery extends Query
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
TermsIncludingScoreQuery.MVInOrderScorer |
(package private) class |
TermsIncludingScoreQuery.SVInOrderScorer |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
field |
(package private) boolean |
multipleValuesPerDocument |
(package private) int[] |
ords |
(package private) Query |
originalQuery |
(package private) float[] |
scores |
(package private) BytesRefHash |
terms |
(package private) Query |
unwrittenOriginalQuery |
| Modifier | Constructor and Description |
|---|---|
private |
TermsIncludingScoreQuery(java.lang.String field,
boolean multipleValuesPerDocument,
BytesRefHash terms,
float[] scores,
int[] ords,
Query originalQuery,
Query unwrittenOriginalQuery) |
(package private) |
TermsIncludingScoreQuery(java.lang.String field,
boolean multipleValuesPerDocument,
BytesRefHash terms,
float[] scores,
Query originalQuery) |
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Expert: Constructs an appropriate Weight implementation for this query.
|
(package private) void |
dump(java.io.PrintStream out) |
boolean |
equals(java.lang.Object other)
Override and implement query instance equivalence properly in a subclass.
|
private boolean |
equalsTo(TermsIncludingScoreQuery other) |
int |
hashCode()
Override and implement query hash code properly in a subclass.
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
java.lang.String |
toString(java.lang.String string)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
classHash, sameClassAs, toStringfinal java.lang.String field
final boolean multipleValuesPerDocument
final BytesRefHash terms
final float[] scores
final int[] ords
final Query originalQuery
final Query unwrittenOriginalQuery
TermsIncludingScoreQuery(java.lang.String field,
boolean multipleValuesPerDocument,
BytesRefHash terms,
float[] scores,
Query originalQuery)
private TermsIncludingScoreQuery(java.lang.String field,
boolean multipleValuesPerDocument,
BytesRefHash terms,
float[] scores,
int[] ords,
Query originalQuery,
Query unwrittenOriginalQuery)
public java.lang.String toString(java.lang.String string)
Queryfield assumed to be the
default field and omitted.public Query rewrite(IndexReader reader) throws java.io.IOException
Querypublic boolean equals(java.lang.Object other)
QueryQueryCache works properly.
Typically a query will be equal to another only if it's an instance of
the same class and its document-filtering properties are identical that other
instance. Utility methods are provided for certain repetitive code.equals in class QueryQuery.sameClassAs(Object),
Query.classHash()private boolean equalsTo(TermsIncludingScoreQuery other)
public int hashCode()
QueryQueryCache works properly.hashCode in class QueryQuery.equals(Object)public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws java.io.IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class QueryneedsScores - True if document scores (Scorer.score()) or match
frequencies (Scorer.freq()) are needed.java.io.IOExceptionvoid dump(java.io.PrintStream out)