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