public class UnInvertedField
extends org.apache.lucene.index.DocTermOrds
| 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(org.apache.lucene.index.TermsEnum te,
int termNum) |
public UnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOExceptionprotected void visitTerm(org.apache.lucene.index.TermsEnum te,
int termNum)
throws IOException
visitTerm in class org.apache.lucene.index.DocTermOrdsIOExceptionprotected void setActualDocFreq(int termNum,
int docFreq)
setActualDocFreq in class org.apache.lucene.index.DocTermOrdspublic 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
IOExceptionpublic 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
IOExceptionCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.