public class FacetProcessor<FacetRequestT extends FacetRequest> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SlotAcc[] |
accs |
protected org.apache.solr.search.facet.CountSlotAcc |
countAcc |
protected org.apache.solr.search.facet.FacetContext |
fcontext |
protected FacetRequestT |
freq |
protected SimpleOrderedMap<Object> |
response |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAccs(int docCount,
int slotCount) |
static FacetProcessor<?> |
createProcessor(SolrQueryRequest req,
Map<String,Object> params,
DocSet docs)
factory method for invoking json facet framework as whole
|
void |
fillBucket(SimpleOrderedMap<Object> bucket,
Query q,
DocSet result) |
static DocSet |
getFieldMissing(SolrIndexSearcher searcher,
DocSet docs,
String fieldName) |
static Query |
getFieldMissingQuery(SolrIndexSearcher searcher,
String fieldName) |
Object |
getResponse() |
protected void |
handleDomainChanges() |
void |
process() |
protected void |
processStats(SimpleOrderedMap<Object> bucket,
DocSet docs,
int docCount) |
protected void |
processSubs(SimpleOrderedMap<Object> response,
Query filter,
DocSet domain) |
protected void |
resetStats() |
protected SimpleOrderedMap<Object> response
protected org.apache.solr.search.facet.FacetContext fcontext
protected FacetRequestT extends FacetRequest freq
protected SlotAcc[] accs
protected org.apache.solr.search.facet.CountSlotAcc countAcc
public void process()
throws IOException
IOExceptionpublic static FacetProcessor<?> createProcessor(SolrQueryRequest req, Map<String,Object> params, DocSet docs)
protected void handleDomainChanges()
throws IOException
IOExceptionpublic Object getResponse()
protected void createAccs(int docCount,
int slotCount)
throws IOException
IOExceptionprotected void resetStats()
protected void processStats(SimpleOrderedMap<Object> bucket, DocSet docs, int docCount) throws IOException
IOExceptionprotected void processSubs(SimpleOrderedMap<Object> response, Query filter, DocSet domain) throws IOException
IOExceptionpublic void fillBucket(SimpleOrderedMap<Object> bucket, Query q, DocSet result) throws IOException
IOExceptionpublic static DocSet getFieldMissing(SolrIndexSearcher searcher, DocSet docs, String fieldName) throws IOException
IOExceptionpublic static Query getFieldMissingQuery(SolrIndexSearcher searcher, String fieldName) throws IOException
IOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.