Package org.apache.solr.search.facet
Class FacetContext
- java.lang.Object
-
- org.apache.solr.search.facet.FacetContext
-
public class FacetContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intIS_REFINEMENTstatic intIS_SHARDstatic intSKIP_FACET
-
Constructor Summary
Constructors Constructor Description FacetContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocSetgetBase()FacetDebugInfogetDebugInfo()Map<String,Object>getFacetInfo()FacetProcessor<?>getFacetProcessor()org.apache.lucene.search.QuerygetFilter()intgetFlags()FacetContextgetParent()QueryContextgetQueryContext()SolrQueryRequestgetRequest()SolrIndexSearchergetSearcher()booleanisShard()voidsetDebugInfo(FacetDebugInfo debugInfo)FacetContextsub(org.apache.lucene.search.Query filter, DocSet domain)
-
-
-
Field Detail
-
IS_SHARD
public static final int IS_SHARD
- See Also:
- Constant Field Values
-
IS_REFINEMENT
public static final int IS_REFINEMENT
- See Also:
- Constant Field Values
-
SKIP_FACET
public static final int SKIP_FACET
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDebugInfo
public void setDebugInfo(FacetDebugInfo debugInfo)
-
getDebugInfo
public FacetDebugInfo getDebugInfo()
-
isShard
public boolean isShard()
-
getFacetProcessor
public FacetProcessor<?> getFacetProcessor()
-
getQueryContext
public QueryContext getQueryContext()
-
getRequest
public SolrQueryRequest getRequest()
-
getSearcher
public SolrIndexSearcher getSearcher()
-
getFilter
public org.apache.lucene.search.Query getFilter()
-
getBase
public DocSet getBase()
-
getParent
public FacetContext getParent()
-
getFlags
public int getFlags()
-
sub
public FacetContext sub(org.apache.lucene.search.Query filter, DocSet domain)
- Parameters:
filter- The filter for the bucket that resulted in this context/domain. Can be null if this is the root context.domain- The resulting set of documents for this facet.
-
-