public class UnInvertedField extends Object
Constructor and Description |
---|
UnInvertedField(String field,
SolrIndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
NamedList |
getCounts(SolrIndexSearcher searcher,
DocSet baseDocs,
int offset,
int limit,
Integer mincount,
boolean missing,
String sort,
String prefix) |
StatsValues |
getStats(SolrIndexSearcher searcher,
DocSet baseDocs,
String[] facet)
Collect statistics about the UninvertedField.
|
static UnInvertedField |
getUnInvertedField(String field,
SolrIndexSearcher searcher) |
long |
memSize() |
String |
toString() |
public UnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException
public long memSize()
public NamedList getCounts(SolrIndexSearcher searcher, DocSet baseDocs, int offset, int limit, Integer mincount, boolean missing, String sort, String prefix) throws IOException
IOException
public StatsValues getStats(SolrIndexSearcher searcher, DocSet baseDocs, String[] facet) throws IOException
getCounts(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.DocSet, int, int, Integer, boolean, String, String)
It can be used to calculate stats on multivalued fields.
This method is mainly used by the StatsComponent
.searcher
- The Searcher to use to gather the statisticsbaseDocs
- The DocSet
to gather the stats onfacet
- One or more fields to facet on.StatsValues
collectedIOException
public static UnInvertedField getUnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException