Package org.apache.solr.search
Class ExtendedQueryBase
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.ExtendedQueryBase
-
- All Implemented Interfaces:
ExtendedQuery
- Direct Known Subclasses:
AnalyticsQuery
,CollapsingQParserPlugin.CollapsingPostFilter
,FilterQuery
,FunctionRangeQuery
,RankQuery
,SolrRangeQuery
,WrappedQuery
public abstract class ExtendedQueryBase extends org.apache.lucene.search.Query implements ExtendedQuery
-
-
Constructor Summary
Constructors Constructor Description ExtendedQueryBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCache()
Should this query be cached in the query cache or filter cache.int
getCost()
Returns the cost of this query, used to order checking of filters that are not cached.String
getOptions()
static String
getOptionsString(ExtendedQuery q)
void
setCache(boolean cache)
void
setCost(int cost)
String
toString(String field)
-
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, equals, hashCode, rewrite, rewrite, sameClassAs, toString, visit
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.search.ExtendedQuery
getCostAppliedQuery
-
-
-
-
Method Detail
-
setCache
public void setCache(boolean cache)
- Specified by:
setCache
in interfaceExtendedQuery
-
getCache
public boolean getCache()
Description copied from interface:ExtendedQuery
Should this query be cached in the query cache or filter cache.- Specified by:
getCache
in interfaceExtendedQuery
-
setCost
public void setCost(int cost)
- Specified by:
setCost
in interfaceExtendedQuery
-
getCost
public int getCost()
Description copied from interface:ExtendedQuery
Returns the cost of this query, used to order checking of filters that are not cached. If getCache()==false && getCost()>=100 && this instanceof PostFilter, then the PostFilter interface will be used for filtering. Otherwise, for smaller costs, this cost will be used forTwoPhaseIterator.matchCost()
.- Specified by:
getCost
in interfaceExtendedQuery
-
getOptions
public String getOptions()
-
getOptionsString
public static String getOptionsString(ExtendedQuery q)
-
-