|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use IndexReader | |
|---|---|
| gate.creole.annic.apache.lucene.index | Code to maintain and access indices. |
| gate.creole.annic.apache.lucene.search | Search over indices. |
| gate.creole.annic.lucene | |
| Uses of IndexReader in gate.creole.annic.apache.lucene.index |
|---|
| Subclasses of IndexReader in gate.creole.annic.apache.lucene.index | |
|---|---|
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. |
(package private) class |
SegmentReader
FIXME: Describe class SegmentReader here. |
| Fields in gate.creole.annic.apache.lucene.index declared as IndexReader | |
|---|---|
protected IndexReader |
FilterIndexReader.in
|
(package private) IndexReader |
SegmentMergeInfo.reader
|
protected IndexReader[] |
MultiTermDocs.readers
|
private IndexReader[] |
MultiReader.subReaders
|
| Methods in gate.creole.annic.apache.lucene.index that return IndexReader | |
|---|---|
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory. |
private static IndexReader |
IndexReader.open(Directory directory,
boolean closeDirectory)
|
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. |
(package private) IndexReader |
SegmentMerger.segmentReader(int i)
|
| Methods in gate.creole.annic.apache.lucene.index with parameters of type IndexReader | |
|---|---|
(package private) void |
SegmentMerger.add(IndexReader reader)
Add an IndexReader to the collection of readers that are to be merged |
void |
IndexWriter.addIndexes(IndexReader[] readers)
Merges the provided indexes into this index. |
private void |
MultiReader.initialize(IndexReader[] subReaders)
|
protected TermDocs |
MultiTermDocs.termDocs(IndexReader reader)
|
protected TermDocs |
MultiTermPositions.termDocs(IndexReader reader)
|
| Constructors in gate.creole.annic.apache.lucene.index with parameters of type IndexReader | |
|---|---|
FilterIndexReader(IndexReader in)
Construct a FilterIndexReader based on the specified base reader. |
|
MultipleTermPositions(IndexReader indexReader,
Term[] terms)
Creates a new MultipleTermPositions instance. |
|
MultiReader(Directory directory,
SegmentInfos sis,
boolean closeDirectory,
IndexReader[] subReaders)
Construct reading the named set of readers. |
|
MultiReader(IndexReader[] subReaders)
Construct a MultiReader aggregating the named set of (sub)readers. |
|
MultiTermDocs(IndexReader[] r,
int[] s)
|
|
MultiTermEnum(IndexReader[] readers,
int[] starts,
Term t)
|
|
MultiTermPositions(IndexReader[] r,
int[] s)
|
|
SegmentMergeInfo(int b,
TermEnum te,
IndexReader r)
|
|
| Uses of IndexReader in gate.creole.annic.apache.lucene.search |
|---|
| Fields in gate.creole.annic.apache.lucene.search declared as IndexReader | |
|---|---|
(package private) IndexReader |
FieldCacheImpl.Entry.reader
|
(package private) IndexReader |
IndexSearcher.reader
|
| Methods in gate.creole.annic.apache.lucene.search with parameters of type IndexReader | |
|---|---|
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. |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.comparatorAuto(IndexReader reader,
String fieldname)
Returns a comparator for sorting hits according to values in the given field. |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.comparatorFloat(IndexReader reader,
String fieldname)
Returns a comparator for sorting hits according to a field containing floats. |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.comparatorInt(IndexReader reader,
String fieldname)
Returns a comparator for sorting hits according to a field containing integers. |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.comparatorString(IndexReader reader,
String fieldname)
Returns a comparator for sorting hits according to a field containing strings. |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.comparatorStringLocale(IndexReader reader,
String fieldname,
Locale locale)
Returns a comparator for sorting hits according to a field containing strings. |
Explanation |
BooleanQuery.BooleanWeight.explain(IndexReader reader,
int doc)
|
Explanation |
PhraseQuery.PhraseWeight.explain(IndexReader reader,
int doc)
|
Explanation |
TermQuery.TermWeight.explain(IndexReader reader,
int doc)
|
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. |
Object |
FieldCacheImpl.getAuto(IndexReader reader,
String field)
removed for java 1.3 compatibility protected static final Object pFloats = Pattern.compile ("[0-9+\\-\\.eEfFdD]+"); |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.getCachedComparator(IndexReader reader,
String fieldname,
int type,
Locale locale,
SortComparatorSource factory)
|
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. |
Comparable[] |
FieldCacheImpl.getCustom(IndexReader reader,
String field,
SortComparator comparator)
|
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. |
float[] |
FieldCacheImpl.getFloats(IndexReader reader,
String 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. |
int[] |
FieldCacheImpl.getInts(IndexReader reader,
String 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. |
FieldCache.StringIndex |
FieldCacheImpl.getStringIndex(IndexReader reader,
String field)
|
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. |
String[] |
FieldCacheImpl.getStrings(IndexReader reader,
String field)
|
(package private) Object |
FieldCacheImpl.lookup(IndexReader reader,
String field,
int type)
See if an object is in the cache. |
(package private) static ScoreDocComparator |
FieldSortedHitQueue.lookup(IndexReader reader,
String field,
int type,
Object factory)
Returns a comparator if it is in the cache. |
(package private) Object |
FieldCacheImpl.lookup(IndexReader reader,
String field,
Object comparer)
See if a custom object is in the cache. |
ScoreDocComparator |
SortComparator.newComparator(IndexReader reader,
String fieldname)
|
ScoreDocComparator |
SortComparatorSource.newComparator(IndexReader reader,
String fieldname)
Creates a comparator for the field in the given index. |
Query |
BooleanQuery.rewrite(IndexReader reader)
|
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries. |
Scorer |
BooleanQuery.BooleanWeight.scorer(IndexReader reader,
Searcher searcher)
|
Scorer |
PhraseQuery.PhraseWeight.scorer(IndexReader reader,
Searcher searcher)
|
Scorer |
TermQuery.TermWeight.scorer(IndexReader reader,
Searcher searcher)
|
Scorer |
Weight.scorer(IndexReader reader,
Searcher searcher)
Constructs a scorer for this. |
(package private) Object |
FieldCacheImpl.store(IndexReader reader,
String field,
int type,
Object value)
Put an object into the cache. |
(package private) static Object |
FieldSortedHitQueue.store(IndexReader reader,
String field,
int type,
Object factory,
Object value)
Stores a comparator into the cache. |
(package private) Object |
FieldCacheImpl.store(IndexReader reader,
String field,
Object comparer,
Object value)
Put a custom object into the cache. |
| Constructors in gate.creole.annic.apache.lucene.search with parameters of type IndexReader | |
|---|---|
FieldCacheImpl.Entry(IndexReader reader,
String field,
int type)
Creates one of these objects. |
|
FieldCacheImpl.Entry(IndexReader reader,
String field,
Object custom)
Creates one of these objects for a custom comparator. |
|
FieldSortedHitQueue(IndexReader reader,
SortField[] fields,
int size)
Creates a hit queue sorted by the given list of fields. |
|
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index. |
|
IndexSearcher(IndexReader r,
boolean closeReader)
|
|
| Uses of IndexReader in gate.creole.annic.lucene |
|---|
| Constructors in gate.creole.annic.lucene with parameters of type IndexReader | |
|---|---|
LuceneIndexSearcher(IndexReader r)
Creates a searcher searching the provided index. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||