Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.function |
Programmatic control over documents scores.
|
Modifier and Type | Field and Description |
---|---|
static FieldCache.FloatParser |
FieldCache.DEFAULT_FLOAT_PARSER
The default parser for float values, which are encoded by
Float.toString(float) |
static FieldCache.FloatParser |
FieldCache.NUMERIC_UTILS_FLOAT_PARSER
A parser instance for float values encoded with
NumericUtils , e.g. when indexed
via NumericField /NumericTokenStream . |
Modifier and Type | Method and Description |
---|---|
float[] |
FieldCache.getFloats(IndexReader reader,
String field,
FieldCache.FloatParser parser)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
float[] |
FieldCache.getFloats(IndexReader reader,
String field,
FieldCache.FloatParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats and returns an array
of size reader.maxDoc() of the value each document
has in the given field. |
static FieldCacheRangeFilter<Float> |
FieldCacheRangeFilter.newFloatRange(String field,
FieldCache.FloatParser parser,
Float lowerVal,
Float upperVal,
boolean includeLower,
boolean includeUpper)
Creates a numeric range filter using
FieldCache.getFloats(IndexReader,String,FieldCache.FloatParser) . |
Constructor and Description |
---|
FloatFieldSource(String field,
FieldCache.FloatParser parser)
Create a cached float field source with a specific string-to-float parser.
|