Package org.apache.solr.search
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollapsingPostFilter(org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest request) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetCache()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.getField()getFilterCollector(org.apache.lucene.search.IndexSearcher indexSearcher) Returns a DelegatingCollector to be run after the main query and all of its filters, but before any sorting or grouping collectorsinthashCode()voidsetCache(boolean cache) voidvisit(org.apache.lucene.search.QueryVisitor visitor) Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getOptions, getOptionsString, setCostMethods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, sameClassAs, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.solr.search.ExtendedQuery
getCostAppliedQuery, setCost
-
Field Details
-
hint
-
-
Constructor Details
-
CollapsingPostFilter
public CollapsingPostFilter(org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest request)
-
-
Method Details
-
getField
-
setCache
public void setCache(boolean cache) - Specified by:
setCachein interfaceExtendedQuery- Overrides:
setCachein classExtendedQueryBase
-
getCache
public boolean getCache()Description copied from interface:ExtendedQueryShould this query be cached in the query cache or filter cache.- Specified by:
getCachein interfaceExtendedQuery- Overrides:
getCachein classExtendedQueryBase
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor) - Specified by:
visitin classorg.apache.lucene.search.Query
-
getCost
public 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. Otherwise, for smaller costs, this cost will be used forTwoPhaseIterator.matchCost().- Specified by:
getCostin interfaceExtendedQuery- Overrides:
getCostin classExtendedQueryBase
-
toString
- Overrides:
toStringin classExtendedQueryBase
-
getFilterCollector
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 interfacePostFilter
-