Class CollapsingQParserPlugin.CollapsingPostFilter

java.lang.Object
org.apache.lucene.search.Query
org.apache.solr.search.ExtendedQueryBase
org.apache.solr.search.CollapsingQParserPlugin.CollapsingPostFilter
All Implemented Interfaces:
ExtendedQuery, PostFilter
Enclosing class:
CollapsingQParserPlugin

public static class CollapsingQParserPlugin.CollapsingPostFilter extends ExtendedQueryBase implements PostFilter
  • Field Details

  • Constructor Details

    • CollapsingPostFilter

      public CollapsingPostFilter(org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest request)
  • Method Details

    • getField

      public String getField()
    • setCache

      public void setCache(boolean cache)
      Specified by:
      setCache in interface ExtendedQuery
      Overrides:
      setCache in class ExtendedQueryBase
    • 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
      Overrides:
      getCache in class ExtendedQueryBase
    • hashCode

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

      public boolean equals(Object other)
      Specified by:
      equals in class org.apache.lucene.search.Query
    • visit

      public void visit(org.apache.lucene.search.QueryVisitor visitor)
      Specified by:
      visit in class org.apache.lucene.search.Query
    • 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
      Overrides:
      getCost in class ExtendedQueryBase
    • toString

      public String toString(String s)
      Overrides:
      toString in class ExtendedQueryBase
    • getFilterCollector

      public DelegatingCollector getFilterCollector(org.apache.lucene.search.IndexSearcher indexSearcher)
      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