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 int
IS_REFINEMENT
static int
IS_SHARD
static int
SKIP_FACET
-
Constructor Summary
Constructors Constructor Description FacetContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocSet
getBase()
FacetDebugInfo
getDebugInfo()
Map<String,Object>
getFacetInfo()
FacetProcessor<?>
getFacetProcessor()
org.apache.lucene.search.Query
getFilter()
int
getFlags()
FacetContext
getParent()
QueryContext
getQueryContext()
SolrQueryRequest
getRequest()
SolrIndexSearcher
getSearcher()
boolean
isShard()
void
setDebugInfo(FacetDebugInfo debugInfo)
FacetContext
sub(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.
-
-