public class ConstantScoreQuery extends Query
| Modifier and Type | Class and Description |
|---|---|
protected class |
ConstantScoreQuery.ConstantScorer |
protected class |
ConstantScoreQuery.ConstantWeight |
| Constructor and Description |
|---|
ConstantScoreQuery(Filter filter) |
| Modifier and Type | Method and Description |
|---|---|
protected Weight |
createWeight(Searcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
|
boolean |
equals(Object o)
Returns true if
o is equal to this. |
int |
hashCode()
Returns a hash code value for this object.
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
String |
toString(String field)
Prints a user-readable version of this query.
|
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightprotected final Filter filter
public ConstantScoreQuery(Filter filter)
public Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class QueryIOExceptionprotected Weight createWeight(Searcher searcher)
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class Querypublic boolean equals(Object o)
o is equal to this.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.