org.apache.solr.search
Class CollapsingQParserPlugin.CollapsingPostFilter

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

public class CollapsingQParserPlugin.CollapsingPostFilter
extends ExtendedQueryBase
implements PostFilter, ScoreFilter


Field Summary
static int NULL_POLICY_COLLAPSE
           
static int NULL_POLICY_EXPAND
           
static int NULL_POLICY_IGNORE
           
 
Constructor Summary
CollapsingQParserPlugin.CollapsingPostFilter(SolrParams localParams, SolrParams params, SolrQueryRequest request)
           
 
Method Summary
 boolean equals(Object o)
           
 boolean getCache()
          Should this query be cached in the query cache or filter cache.
 boolean getCacheSep()
          If true, the clauses of this boolean query should be cached separately.
 int getCost()
          Returns the cost of this query, used to order checking of filters that are not cached.
 DelegatingCollector getFilterCollector(IndexSearcher indexSearcher)
          Returns a DelegatingCollector to be run after the main query and all of it's filters, but before any sorting or grouping collectors
 int hashCode()
           
 void setCache(boolean cache)
           
 void setCacheSep(boolean cacheSep)
           
 String toString(String s)
           
 
Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getOptions, getOptionsString, setCost
 
Methods inherited from class org.apache.lucene.search.Query
clone, createWeight, extractTerms, getBoost, rewrite, setBoost, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.solr.search.ExtendedQuery
setCost
 

Field Detail

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

CollapsingQParserPlugin.CollapsingPostFilter

public CollapsingQParserPlugin.CollapsingPostFilter(SolrParams localParams,
                                                    SolrParams params,
                                                    SolrQueryRequest request)
                                             throws IOException
Throws:
IOException
Method Detail

setCache

public void setCache(boolean cache)
Specified by:
setCache in interface ExtendedQuery
Overrides:
setCache in class ExtendedQueryBase

setCacheSep

public void setCacheSep(boolean cacheSep)
Specified by:
setCacheSep in interface ExtendedQuery
Overrides:
setCacheSep in class ExtendedQueryBase

getCacheSep

public boolean getCacheSep()
Description copied from interface: ExtendedQuery
If true, the clauses of this boolean query should be cached separately. This is not yet implemented.

Specified by:
getCacheSep in interface ExtendedQuery
Overrides:
getCacheSep 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()
Overrides:
hashCode in class Query

equals

public boolean equals(Object o)
Overrides:
equals in class 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.

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(IndexSearcher indexSearcher)
Description copied from interface: PostFilter
Returns a DelegatingCollector to be run after the main query and all of it's filters, but before any sorting or grouping collectors

Specified by:
getFilterCollector in interface PostFilter


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.