Class ExtendedQueryBase

    • Constructor Detail

      • ExtendedQueryBase

        public ExtendedQueryBase()
    • Method Detail

      • 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 interface ExtendedQuery
      • 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 for TwoPhaseIterator.matchCost().
        Specified by:
        getCost in interface ExtendedQuery
      • getOptions

        public String getOptions()
      • toString

        public String toString​(String field)
        Specified by:
        toString in class org.apache.lucene.search.Query