Package | Description |
---|---|
gate.creole.annic.apache.lucene.index |
Code to maintain and access indices.
|
gate.creole.annic.apache.lucene.search | |
gate.creole.annic.lucene |
Modifier and Type | Class and Description |
---|---|
class |
FilterIndexReader
A
FilterIndexReader contains another IndexReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
class |
MultiReader
An IndexReader which reads multiple indexes, appending their content.
|
Modifier and Type | Field and Description |
---|---|
protected IndexReader |
FilterIndexReader.in |
Modifier and Type | Method and Description |
---|---|
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory.
|
static IndexReader |
IndexReader.open(File path)
Returns an IndexReader reading the index in an FSDirectory in the named
path.
|
static IndexReader |
IndexReader.open(String path)
Returns an IndexReader reading the index in an FSDirectory in the named
path.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexWriter.addIndexes(IndexReader[] readers)
Merges the provided indexes into this index.
|
Constructor and Description |
---|
FilterIndexReader(IndexReader in)
Construct a FilterIndexReader based on the specified base reader.
|
MultipleTermPositions(IndexReader indexReader,
Term[] terms)
Creates a new
MultipleTermPositions instance. |
MultiReader(IndexReader[] subReaders)
Construct a MultiReader aggregating the named set of (sub)readers.
|
Modifier and Type | Method and Description |
---|---|
abstract BitSet |
Filter.bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in
search results, and false for those that should not.
|
Explanation |
Weight.explain(IndexReader reader,
int doc)
An explanation of the score computation for the named document.
|
Object |
FieldCache.getAuto(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if
none is found reads
field to see if it contains integers, floats
or strings, and then calls one of the other methods in this class to get the
values. |
Comparable[] |
FieldCache.getCustom(IndexReader reader,
String field,
SortComparator comparator)
Checks the internal cache for an appropriate entry, and if none
is found reads the terms out of
field and calls the given SortComparator
to get the sort values. |
float[] |
FieldCache.getFloats(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if
none is found, reads the terms in
field as floats 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)
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. |
FieldCache.StringIndex |
FieldCache.getStringIndex(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none
is found reads the term values in
field and returns
an array of them in natural order, along with an array telling
which element in the term array each document uses. |
String[] |
FieldCache.getStrings(IndexReader reader,
String field)
Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in
field and returns an array
of size reader.maxDoc() containing the value each document
has in the given field. |
ScoreDocComparator |
SortComparatorSource.newComparator(IndexReader reader,
String fieldname)
Creates a comparator for the field in the given index.
|
ScoreDocComparator |
SortComparator.newComparator(IndexReader reader,
String fieldname) |
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
Query |
BooleanQuery.rewrite(IndexReader reader) |
Scorer |
Weight.scorer(IndexReader reader,
Searcher searcher)
Constructs a scorer for this.
|
Constructor and Description |
---|
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
Constructor and Description |
---|
LuceneIndexSearcher(IndexReader r)
Creates a searcher searching the provided index.
|
Copyright © 2024 GATE. All rights reserved.