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