Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.function |
Programmatic control over documents scores.
|
Modifier and Type | Field | 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. |
Modifier and Type | Method | 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 | Description |
---|---|
IntFieldSource(String field,
FieldCache.IntParser parser) |
Create a cached int field source with a specific string-to-int parser.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.