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(java.lang.Object o)
Returns true if
o is equal to this. |
void |
extractTerms(java.util.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.
|
java.lang.String |
toString(java.lang.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 java.io.IOException
Querypublic void extractTerms(java.util.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 java.lang.String toString(java.lang.String field)
public boolean equals(java.lang.Object o)
o is equal to this.equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.