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.IntParser |
FieldCache.DEFAULT_INT_PARSER
The default parser for int values, which are encoded by
Integer.toString(int) |
static FieldCache.IntParser |
FieldCache.NUMERIC_UTILS_INT_PARSER
A parser instance for int values encoded by
NumericUtils.intToPrefixCoded(int) , e.g. when indexed
via NumericField /NumericTokenStream . |
Modifier and Type | Method and Description |
---|---|
int[] |
FieldCache.getInts(IndexReader reader,
String field,
FieldCache.IntParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as integers and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
int[] |
FieldCache.getInts(IndexReader reader,
String field,
FieldCache.IntParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as integers and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
static FieldCacheRangeFilter<Integer> |
FieldCacheRangeFilter.newIntRange(String field,
FieldCache.IntParser parser,
Integer lowerVal,
Integer upperVal,
boolean includeLower,
boolean includeUpper)
Creates a numeric range filter using
FieldCache.getInts(IndexReader,String,FieldCache.IntParser) . |
Constructor and Description |
---|
IntFieldSource(String field,
FieldCache.IntParser parser)
Create a cached int field source with a specific string-to-int parser.
|