Package org.apache.solr.search
Interface ExtendedQuery
-
- All Known Subinterfaces:
PostFilter
- All Known Implementing Classes:
AbstractReRankQuery,AnalyticsQuery,CollapsingQParserPlugin.CollapsingPostFilter,ExportQParserPlugin.ExportQuery,ExtendedQueryBase,FilterQuery,FunctionRangeQuery,RankQuery,SolrConstantScoreQuery,SolrRangeQuery,WrappedQuery
public interface ExtendedQueryThe ExtendedQuery interface provides extra metadata to a query. Implementations of ExtendedQuery must also extend Query.
-
-
Method Summary
All Methods Instance Methods Abstract 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.voidsetCache(boolean cache)voidsetCacheSep(boolean cacheSep)voidsetCost(int cost)
-
-
-
Method Detail
-
getCache
boolean getCache()
Should this query be cached in the query cache or filter cache.
-
setCache
void setCache(boolean cache)
-
getCost
int getCost()
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.
-
setCost
void setCost(int cost)
-
getCacheSep
boolean getCacheSep()
If true, the clauses of this boolean query should be cached separately. This is not yet implemented.
-
setCacheSep
void setCacheSep(boolean cacheSep)
-
-