Class AnalyticsQuery

    • Constructor Detail

      • AnalyticsQuery

        public AnalyticsQuery()
        Use this constructor for single node analytics.
      • AnalyticsQuery

        public AnalyticsQuery​(MergeStrategy mergeStrategy)
        Use this constructor for distributed analytics.
        Parameters:
        mergeStrategy - defines the distributed merge strategy for this AnalyticsQuery
    • Method Detail

      • 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.
        Specified by:
        getCost in interface ExtendedQuery
        Overrides:
        getCost in class ExtendedQueryBase
      • equals

        public boolean equals​(Object o)
        Specified by:
        equals in class org.apache.lucene.search.Query
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.apache.lucene.search.Query
      • getFilterCollector

        public DelegatingCollector getFilterCollector​(org.apache.lucene.search.IndexSearcher searcher)
        Description copied from interface: PostFilter
        Returns a DelegatingCollector to be run after the main query and all of its filters, but before any sorting or grouping collectors
        Specified by:
        getFilterCollector in interface PostFilter
      • visit

        public void visit​(org.apache.lucene.search.QueryVisitor visitor)
        Overrides:
        visit in class org.apache.lucene.search.Query