| Constructor and Description |
|---|
BoostedQuery(Query subQuery,
ValueSource boostVal) |
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Expert: Constructs an appropriate Weight implementation for this query.
|
boolean |
equals(Object o) |
Query |
getQuery() |
ValueSource |
getValueSource() |
int |
hashCode() |
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
public BoostedQuery(Query subQuery, ValueSource boostVal)
public Query getQuery()
public ValueSource getValueSource()
public Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class QueryIOExceptionpublic Weight createWeight(IndexSearcher searcher, boolean needsScores) throws 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.IOExceptionpublic String toString(String field)
Queryfield assumed to be the
default field and omitted.Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.