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 Modifier and Type Field Description Stringhintstatic intNULL_POLICY_COLLAPSEstatic intNULL_POLICY_EXPANDstatic intNULL_POLICY_IGNORE
-
Constructor Summary
Constructors Constructor Description CollapsingPostFilter(SolrParams localParams, SolrParams params, SolrQueryRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)booleangetCache()Should this query be cached in the query cache or filter cache.booleangetCacheSep()If true, the clauses of this boolean query should be cached separately.intgetCost()Returns the cost of this query, used to order checking of filters that are not cached.StringgetField()DelegatingCollectorgetFilterCollector(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)voidsetCacheSep(boolean cacheSep)StringtoString(String s)voidvisit(org.apache.lucene.search.QueryVisitor visitor)-
Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getOptions, getOptionsString, setCost
-
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, sameClassAs, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.search.ExtendedQuery
setCost
-
-
-
-
Field Detail
-
hint
public String hint
-
NULL_POLICY_IGNORE
public static final int NULL_POLICY_IGNORE
- See Also:
- Constant Field Values
-
NULL_POLICY_COLLAPSE
public static final int NULL_POLICY_COLLAPSE
- See Also:
- Constant Field Values
-
NULL_POLICY_EXPAND
public static final int NULL_POLICY_EXPAND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CollapsingPostFilter
public CollapsingPostFilter(SolrParams localParams, SolrParams params, SolrQueryRequest request)
-
-
Method Detail
-
getField
public String getField()
-
setCache
public void setCache(boolean cache)
- Specified by:
setCachein interfaceExtendedQuery- Overrides:
setCachein classExtendedQueryBase
-
setCacheSep
public void setCacheSep(boolean cacheSep)
- Specified by:
setCacheSepin interfaceExtendedQuery- Overrides:
setCacheSepin classExtendedQueryBase
-
getCacheSep
public boolean getCacheSep()
Description copied from interface:ExtendedQueryIf true, the clauses of this boolean query should be cached separately. This is not yet implemented.- Specified by:
getCacheSepin interfaceExtendedQuery- Overrides:
getCacheSepin 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
public boolean equals(Object other)
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Overrides:
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.- Specified by:
getCostin interfaceExtendedQuery- Overrides:
getCostin classExtendedQueryBase
-
toString
public String toString(String s)
- Overrides:
toStringin classExtendedQueryBase
-
getFilterCollector
public DelegatingCollector getFilterCollector(org.apache.lucene.search.IndexSearcher indexSearcher)
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
-
-