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,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 booleangetCache()Should this query be cached in the query cache or filter cache.booleangetCacheSep()If true, the clauses of this boolean query should be cached separately.intgetCost()Returns the cost of this query, used to order checking of filters that are not cached.StringgetOptions()static StringgetOptionsString(ExtendedQuery q)voidsetCache(boolean cache)voidsetCacheSep(boolean cacheSep)voidsetCost(int cost)StringtoString(String field)
-
-
-
Method Detail
-
setCache
public void setCache(boolean cache)
- Specified by:
setCachein interfaceExtendedQuery
-
getCache
public boolean getCache()
Description copied from interface:ExtendedQueryShould this query be cached in the query cache or filter cache.- Specified by:
getCachein interfaceExtendedQuery
-
setCacheSep
public void setCacheSep(boolean cacheSep)
- Specified by:
setCacheSepin interfaceExtendedQuery
-
getCacheSep
public boolean getCacheSep()
Description copied from interface:ExtendedQueryIf true, the clauses of this boolean query should be cached separately. This is not yet implemented.- Specified by:
getCacheSepin interfaceExtendedQuery
-
setCost
public void setCost(int cost)
- Specified by:
setCostin interfaceExtendedQuery
-
getCost
public int getCost()
Description copied from interface:ExtendedQueryReturns 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.- Specified by:
getCostin interfaceExtendedQuery
-
getOptions
public String getOptions()
-
getOptionsString
public static String getOptionsString(ExtendedQuery q)
-
-