public final class IndexReaderFunctions extends Object
Modifier and Type | Method and Description |
---|---|
static DoubleValuesSource |
docCount(String field)
Creates a constant value source returning the docCount for a given field
|
static DoubleValuesSource |
docFreq(Term term)
Creates a constant value source returning the docFreq of a given term
|
static DoubleValuesSource |
maxDoc()
Creates a constant value source returning the index's maxDoc
|
static DoubleValuesSource |
numDeletedDocs()
Creates a constant value source returning the number of deleted docs in the index
|
static DoubleValuesSource |
numDocs()
Creates a constant value source returning the index's numDocs
|
static DoubleValuesSource |
sumDocFreq(String field)
Creates a constant value source returning the sumDocFreq for a given field
|
static LongValuesSource |
sumTotalTermFreq(String field)
Creates a constant value source returning the sumTotalTermFreq for a field
|
static DoubleValuesSource |
termFreq(Term term)
Creates a value source that returns the term freq of a given term for each document
|
static DoubleValuesSource |
totalTermFreq(Term term)
Creates a constant value source returning the totalTermFreq for a given term
|
public static DoubleValuesSource docFreq(Term term)
IndexReader.docFreq(Term)
public static DoubleValuesSource maxDoc()
IndexReader.maxDoc()
public static DoubleValuesSource numDocs()
IndexReader.numDocs()
public static DoubleValuesSource numDeletedDocs()
IndexReader.numDeletedDocs()
public static LongValuesSource sumTotalTermFreq(String field)
IndexReader.getSumTotalTermFreq(String)
public static DoubleValuesSource termFreq(Term term)
PostingsEnum.freq()
public static DoubleValuesSource totalTermFreq(Term term)
IndexReader.totalTermFreq(Term)
public static DoubleValuesSource sumDocFreq(String field)
IndexReader.getSumDocFreq(String)
public static DoubleValuesSource docCount(String field)
IndexReader.getDocCount(String)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.