public class UnInvertedField extends DocTermOrds
DEFAULT_INDEX_INTERVAL_BITS, docsEnum, field, index, indexedTermsArray, maxTermDocFreq, numTermsInField, ordBase, phase1_time, prefix, sizeOfIndexedStrings, termInstances, tnums, total_time
Constructor and Description |
---|
UnInvertedField(String field,
SolrIndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
NamedList<Integer> |
getCounts(SolrIndexSearcher searcher,
DocSet baseDocs,
int offset,
int limit,
Integer mincount,
boolean missing,
String sort,
String prefix) |
int |
getNumTerms() |
StatsValues |
getStats(SolrIndexSearcher searcher,
DocSet baseDocs,
boolean calcDistinct,
String[] facet)
Collect statistics about the UninvertedField.
|
static UnInvertedField |
getUnInvertedField(String field,
SolrIndexSearcher searcher) |
long |
memSize() |
protected void |
setActualDocFreq(int termNum,
int docFreq) |
String |
toString() |
protected void |
visitTerm(TermsEnum te,
int termNum) |
getOrdTermsEnum, isEmpty, iterator, lookupTerm, numTerms, ramBytesUsed, uninvert
public UnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException
protected void visitTerm(TermsEnum te, int termNum) throws IOException
visitTerm
in class DocTermOrds
IOException
protected void setActualDocFreq(int termNum, int docFreq)
setActualDocFreq
in class DocTermOrds
public long memSize()
public int getNumTerms()
public NamedList<Integer> 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, boolean calcDistinct, 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 oncalcDistinct
- whether distinct values should be collected and countedfacet
- One or more fields to facet on.StatsValues
collectedIOException
- If there is a low-level I/O error.public static UnInvertedField getUnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.