Package org.apache.solr.search
Class AnalyticsQuery
- java.lang.Object
- 
- org.apache.lucene.search.Query
- 
- org.apache.solr.search.ExtendedQueryBase
- 
- org.apache.solr.search.AnalyticsQuery
 
 
 
- 
- All Implemented Interfaces:
- ExtendedQuery,- PostFilter
 
 public abstract class AnalyticsQuery extends ExtendedQueryBase implements PostFilter Note: This API is experimental and may change in non backward-compatible ways in the future
- 
- 
Constructor SummaryConstructors Constructor Description AnalyticsQuery()Use this constructor for single node analytics.AnalyticsQuery(MergeStrategy mergeStrategy)Use this constructor for distributed analytics.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)abstract DelegatingCollectorgetAnalyticsCollector(ResponseBuilder rb, org.apache.lucene.search.IndexSearcher searcher)booleangetCache()Should this query be cached in the query cache or filter cache.intgetCost()Returns the cost of this query, used to order checking of filters that are not cached.DelegatingCollectorgetFilterCollector(org.apache.lucene.search.IndexSearcher searcher)Returns a DelegatingCollector to be run after the main query and all of its filters, but before any sorting or grouping collectorsinthashCode()voidvisit(org.apache.lucene.search.QueryVisitor visitor)- 
Methods inherited from class org.apache.solr.search.ExtendedQueryBasegetCacheSep, getOptions, getOptionsString, setCache, setCacheSep, setCost, toString
 - 
Methods inherited from class org.apache.lucene.search.QueryclassHash, createWeight, rewrite, sameClassAs, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.search.ExtendedQuerygetCacheSep, setCache, setCacheSep, setCost
 
- 
 
- 
- 
- 
Constructor Detail- 
AnalyticsQuerypublic AnalyticsQuery() Use this constructor for single node analytics.
 - 
AnalyticsQuerypublic AnalyticsQuery(MergeStrategy mergeStrategy) Use this constructor for distributed analytics.- Parameters:
- mergeStrategy- defines the distributed merge strategy for this AnalyticsQuery
 
 
- 
 - 
Method Detail- 
getCachepublic boolean getCache() Description copied from interface:ExtendedQueryShould this query be cached in the query cache or filter cache.- Specified by:
- getCachein interface- ExtendedQuery
- Overrides:
- getCachein class- ExtendedQueryBase
 
 - 
getCostpublic 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 interface- ExtendedQuery
- Overrides:
- getCostin class- ExtendedQueryBase
 
 - 
equalspublic boolean equals(Object o) - Specified by:
- equalsin class- org.apache.lucene.search.Query
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein class- org.apache.lucene.search.Query
 
 - 
getFilterCollectorpublic DelegatingCollector getFilterCollector(org.apache.lucene.search.IndexSearcher searcher) Description copied from interface:PostFilterReturns a DelegatingCollector to be run after the main query and all of its filters, but before any sorting or grouping collectors- Specified by:
- getFilterCollectorin interface- PostFilter
 
 - 
getAnalyticsCollectorpublic abstract DelegatingCollector getAnalyticsCollector(ResponseBuilder rb, org.apache.lucene.search.IndexSearcher searcher) 
 - 
visitpublic void visit(org.apache.lucene.search.QueryVisitor visitor) - Overrides:
- visitin class- org.apache.lucene.search.Query
 
 
- 
 
-