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. |
void |
extractTerms(Set terms)
Expert: adds all terms occuring in this query to the terms set.
|
Filter |
getFilter()
Returns the encapsulated filter
|
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, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightprotected final Filter filter
public ConstantScoreQuery(Filter filter)
public Filter getFilter()
public Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class QueryIOExceptionpublic void extractTerms(Set terms)
Queryrewritten form.extractTerms in class Queryprotected 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.