public class SolrConstantScoreQuery extends org.apache.lucene.search.ConstantScoreQuery implements ExtendedQuery
Modifier and Type | Class and Description |
---|---|
protected class |
SolrConstantScoreQuery.ConstantWeight |
Constructor and Description |
---|
SolrConstantScoreQuery(org.apache.lucene.search.Filter filter) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores) |
boolean |
equals(Object o)
Returns true if
o is equal to this. |
boolean |
getCache()
Should this query be cached in the query cache or filter cache.
|
boolean |
getCacheSep()
If true, the clauses of this boolean query should be cached separately.
|
int |
getCost()
Returns the cost of this query, used to order checking of filters that are not cached.
|
org.apache.lucene.search.Filter |
getFilter()
Returns the encapsulated filter
|
int |
hashCode()
Returns a hash code value for this object.
|
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
void |
setCache(boolean cache) |
void |
setCacheSep(boolean cacheSep) |
void |
setCost(int cost) |
String |
toString(String field)
Prints a user-readable version of this query.
|
public SolrConstantScoreQuery(org.apache.lucene.search.Filter filter)
public org.apache.lucene.search.Filter getFilter()
public void setCache(boolean cache)
setCache
in interface ExtendedQuery
public boolean getCache()
ExtendedQuery
getCache
in interface ExtendedQuery
public void setCacheSep(boolean cacheSep)
setCacheSep
in interface ExtendedQuery
public boolean getCacheSep()
ExtendedQuery
getCacheSep
in interface ExtendedQuery
public void setCost(int cost)
setCost
in interface ExtendedQuery
public int getCost()
ExtendedQuery
getCost
in interface ExtendedQuery
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class org.apache.lucene.search.ConstantScoreQuery
IOException
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores) throws IOException
createWeight
in class org.apache.lucene.search.ConstantScoreQuery
IOException
public String toString(String field)
toString
in class org.apache.lucene.search.ConstantScoreQuery
public boolean equals(Object o)
o
is equal to this.equals
in class org.apache.lucene.search.ConstantScoreQuery
public int hashCode()
hashCode
in class org.apache.lucene.search.ConstantScoreQuery
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.