Package | Description |
---|---|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
Modifier and Type | Class and Description |
---|---|
private static class |
IndexReaderFunctions.NoCacheConstantLongValuesSource |
private static class |
IndexReaderFunctions.SumTotalTermFreqValuesSource |
private static class |
ValueSource.WrappedLongValuesSource |
Modifier and Type | Field and Description |
---|---|
(package private) LongValuesSource |
IndexReaderFunctions.NoCacheConstantLongValuesSource.parent |
Modifier and Type | Method and Description |
---|---|
LongValuesSource |
ValueSource.asLongValuesSource()
Expose this ValueSource as a LongValuesSource
|
LongValuesSource |
IndexReaderFunctions.SumTotalTermFreqValuesSource.rewrite(IndexSearcher searcher) |
LongValuesSource |
IndexReaderFunctions.NoCacheConstantLongValuesSource.rewrite(IndexSearcher reader) |
LongValuesSource |
ValueSource.WrappedLongValuesSource.rewrite(IndexSearcher searcher) |
static LongValuesSource |
IndexReaderFunctions.sumTotalTermFreq(java.lang.String field)
Creates a constant value source returning the sumTotalTermFreq for a field
|
Constructor and Description |
---|
NoCacheConstantLongValuesSource(long value,
LongValuesSource parent) |
Modifier and Type | Class and Description |
---|---|
private static class |
DoubleValuesSource.LongDoubleValuesSource |
private static class |
LongValuesSource.ConstantLongValuesSource |
private static class |
LongValuesSource.FieldValuesSource |
Modifier and Type | Field and Description |
---|---|
private LongValuesSource |
LongValuesSource.DoubleLongValuesSource.inner |
private LongValuesSource |
CoveringQuery.minimumNumberMatch |
private LongValuesSource |
CoveringQuery.CoveringWeight.minimumNumberMatch |
(package private) LongValuesSource |
LongValuesSource.LongValuesSortField.producer |
private LongValuesSource |
LongValuesSource.LongValuesComparatorSource.producer |
Modifier and Type | Method and Description |
---|---|
static LongValuesSource |
LongValuesSource.constant(long value)
Creates a LongValuesSource that always returns a constant value
|
static LongValuesSource |
LongValuesSource.fromIntField(java.lang.String field)
Creates a LongValuesSource that wraps an int-valued field
|
static LongValuesSource |
LongValuesSource.fromLongField(java.lang.String field)
Creates a LongValuesSource that wraps a long-valued field
|
abstract LongValuesSource |
LongValuesSource.rewrite(IndexSearcher searcher)
Return a LongValuesSource specialised for the given IndexSearcher
Implementations should assume that this will only be called once.
|
LongValuesSource |
LongValuesSource.ConstantLongValuesSource.rewrite(IndexSearcher searcher) |
LongValuesSource |
LongValuesSource.FieldValuesSource.rewrite(IndexSearcher searcher) |
LongValuesSource |
DoubleValuesSource.LongDoubleValuesSource.rewrite(IndexSearcher searcher) |
LongValuesSource |
DoubleValuesSource.toLongValuesSource()
Convert to a LongValuesSource by casting the double values to longs
|
Constructor and Description |
---|
CoveringQuery(java.util.Collection<Query> queries,
LongValuesSource minimumNumberMatch)
Sole constructor.
|
CoveringWeight(Query query,
java.util.Collection<Weight> weights,
LongValuesSource minimumNumberMatch) |
DoubleLongValuesSource(LongValuesSource inner) |
LongValuesComparatorSource(LongValuesSource producer) |
LongValuesSortField(LongValuesSource producer,
boolean reverse) |
Modifier and Type | Field and Description |
---|---|
private LongValuesSource |
DocumentValueSourceDictionary.weightsValueSource |
Constructor and Description |
---|
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource)
Creates a new dictionary with the contents of the fields named
field
for the terms and uses the weightsValueSource supplied to determine the
score. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource,
java.lang.String payload)
Creates a new dictionary with the contents of the fields named
field
for the terms, payloadField for the corresponding payloads
and uses the weightsValueSource supplied to determine the
score. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource,
java.lang.String payload,
java.lang.String contexts)
Creates a new dictionary with the contents of the fields named
field
for the terms, payload for the corresponding payloads, contexts
for the associated contexts and uses the weightsValueSource supplied
to determine the score. |