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.ShortParser |
FieldCache.DEFAULT_SHORT_PARSER
The default parser for short values, which are encoded by
Short.toString(short) |
Modifier and Type | Method and Description |
---|---|
short[] |
FieldCache.getShorts(IndexReader reader,
String field,
FieldCache.ShortParser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as shorts and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
short[] |
FieldCache.getShorts(IndexReader reader,
String field,
FieldCache.ShortParser parser,
boolean setDocsWithField)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in
field as shorts and returns an array of
size reader.maxDoc() of the value each document has in the
given field. |
static FieldCacheRangeFilter<Short> |
FieldCacheRangeFilter.newShortRange(String field,
FieldCache.ShortParser parser,
Short lowerVal,
Short upperVal,
boolean includeLower,
boolean includeUpper)
Creates a numeric range filter using
FieldCache.getShorts(IndexReader,String,FieldCache.ShortParser) . |
Constructor and Description |
---|
ShortFieldSource(String field,
FieldCache.ShortParser parser)
Create a cached short field source with a specific string-to-short parser.
|