public class SolrConstantScoreQuery extends ConstantScoreQuery implements ExtendedQuery
| Modifier and Type | Class and Description |
|---|---|
protected class |
SolrConstantScoreQuery.ConstantWeight |
ConstantScoreQuery.ConstantBulkScorerquery| Constructor and Description |
|---|
SolrConstantScoreQuery(Filter filter) |
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(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.
|
Filter |
getFilter()
Returns the encapsulated filter
|
int |
hashCode()
Returns a hash code value for this object.
|
Query |
rewrite(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.
|
getQuerypublic SolrConstantScoreQuery(Filter filter)
public Filter getFilter()
public void setCache(boolean cache)
setCache in interface ExtendedQuerypublic boolean getCache()
ExtendedQuerygetCache in interface ExtendedQuerypublic void setCacheSep(boolean cacheSep)
setCacheSep in interface ExtendedQuerypublic boolean getCacheSep()
ExtendedQuerygetCacheSep in interface ExtendedQuerypublic void setCost(int cost)
setCost in interface ExtendedQuerypublic int getCost()
ExtendedQuerygetCost in interface ExtendedQuerypublic Query rewrite(IndexReader reader) throws IOException
rewrite in class ConstantScoreQueryIOExceptionpublic Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
createWeight in class ConstantScoreQueryIOExceptionpublic String toString(String field)
toString in class ConstantScoreQuerypublic boolean equals(Object o)
o is equal to this.equals in class ConstantScoreQuerypublic int hashCode()
hashCode in class ConstantScoreQueryCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.