Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Field and Description |
---|---|
static FieldCache.DoubleParser |
FieldCache.DEFAULT_DOUBLE_PARSER
The default parser for double values, which are encoded by
Double.toString(double) |
static FieldCache.DoubleParser |
FieldCache.NUMERIC_UTILS_DOUBLE_PARSER
A parser instance for double values encoded with
NumericUtils , e.g. when indexed
via NumericField /NumericTokenStream . |
Modifier and Type | Method and Description |
---|---|
double[] |
FieldCache.getDoubles(IndexReader reader,
String field,
FieldCache.DoubleParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as doubles and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
double[] |
FieldCache.getDoubles(IndexReader reader,
String field,
FieldCache.DoubleParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as doubles and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
static FieldCacheRangeFilter<Double> |
FieldCacheRangeFilter.newDoubleRange(String field,
FieldCache.DoubleParser parser,
Double lowerVal,
Double upperVal,
boolean includeLower,
boolean includeUpper)
Creates a numeric range filter using
FieldCache.getDoubles(IndexReader,String,FieldCache.DoubleParser) . |