org.apache.lucene.search
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, weight
protected final Filter filter
public ConstantScoreQuery(Filter filter)
public Filter getFilter()
public Query rewrite(IndexReader reader) throws IOException
Query
rewrite
in class Query
IOException
public void extractTerms(Set terms)
Query
rewritten
form.extractTerms
in class Query
protected Weight createWeight(Searcher searcher)
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class Query
public boolean equals(Object o)
o
is equal to this.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.