|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use IndexReader | |
org.apache.lucene.index | Code to maintain and access indices. |
org.apache.lucene.search | Table Of Contents |
org.apache.lucene.search.spans | The calculus of spans. |
Uses of IndexReader in org.apache.lucene.index |
Subclasses of IndexReader in org.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. |
class |
ParallelReader
An IndexReader which reads multiple, parallel indexes. |
Fields in org.apache.lucene.index declared as IndexReader | |
protected IndexReader |
FilterIndexReader.in
|
protected IndexReader |
IndexModifier.indexReader
|
Methods in org.apache.lucene.index that return IndexReader | |
static IndexReader |
IndexReader.open(String path)
Returns an IndexReader reading the index in an FSDirectory in the named path. |
static IndexReader |
IndexReader.open(File path)
Returns an IndexReader reading the index in an FSDirectory in the named path. |
static IndexReader |
IndexReader.open(Directory directory)
Returns an IndexReader reading the index in the given Directory. |
Methods in org.apache.lucene.index with parameters of type IndexReader | |
void |
IndexWriter.addIndexes(IndexReader[] readers)
Merges the provided indexes into this index. |
void |
ParallelReader.add(IndexReader reader)
Add an IndexReader. |
void |
ParallelReader.add(IndexReader reader,
boolean ignoreStoredFields)
Add an IndexReader whose stored fields will not be returned. |
Constructors in org.apache.lucene.index with parameters of type IndexReader | |
FilterIndexReader(IndexReader in)
Construct a FilterIndexReader based on the specified base reader. |
|
MultiReader(IndexReader[] subReaders)
Construct a MultiReader aggregating the named set of (sub)readers. |
|
MultipleTermPositions(IndexReader indexReader,
Term[] terms)
Creates a new MultipleTermPositions instance. |
Uses of IndexReader in org.apache.lucene.search |
Methods in org.apache.lucene.search that return IndexReader | |
IndexReader |
IndexSearcher.getIndexReader()
Return the IndexReader this searches. |
Methods in org.apache.lucene.search with parameters of type IndexReader | |
Query |
BooleanQuery.rewrite(IndexReader reader)
|
BitSet |
CachingWrapperFilter.bits(IndexReader reader)
|
Query |
ConstantScoreQuery.rewrite(IndexReader reader)
|
Scorer |
ConstantScoreQuery.ConstantWeight.scorer(IndexReader reader)
|
Explanation |
ConstantScoreQuery.ConstantWeight.explain(IndexReader reader,
int doc)
|
Query |
ConstantScoreRangeQuery.rewrite(IndexReader reader)
|
Query |
DisjunctionMaxQuery.rewrite(IndexReader reader)
Optimize our representation and our subqueries representations |
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[] |
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. |
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[] |
FieldCache.getFloats(IndexReader reader,
String field,
FieldCache.FloatParser parser)
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. |
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. |
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. |
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. |
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. |
Query |
FilteredQuery.rewrite(IndexReader reader)
Rewrites the wrapped query. |
protected FilteredTermEnum |
FuzzyQuery.getEnum(IndexReader reader)
|
Query |
FuzzyQuery.rewrite(IndexReader reader)
|
Query |
MultiPhraseQuery.rewrite(IndexReader reader)
|
protected abstract FilteredTermEnum |
MultiTermQuery.getEnum(IndexReader reader)
Construct the enumeration to be used, expanding the pattern term. |
Query |
MultiTermQuery.rewrite(IndexReader reader)
|
BitSet |
PrefixFilter.bits(IndexReader reader)
|
Query |
PrefixQuery.rewrite(IndexReader reader)
|
Query |
Query.rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries. |
BitSet |
QueryFilter.bits(IndexReader reader)
|
BitSet |
RangeFilter.bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not. |
Query |
RangeQuery.rewrite(IndexReader reader)
|
ScoreDocComparator |
SortComparator.newComparator(IndexReader reader,
String fieldname)
|
ScoreDocComparator |
SortComparatorSource.newComparator(IndexReader reader,
String fieldname)
Creates a comparator for the field in the given index. |
Scorer |
Weight.scorer(IndexReader reader)
Constructs a scorer for this. |
Explanation |
Weight.explain(IndexReader reader,
int doc)
An explanation of the score computation for the named document. |
protected FilteredTermEnum |
WildcardQuery.getEnum(IndexReader reader)
|
Query |
WildcardQuery.rewrite(IndexReader reader)
|
Constructors in org.apache.lucene.search with parameters of type IndexReader | |
ConstantScoreQuery.ConstantScorer(Similarity similarity,
IndexReader reader,
Weight w)
|
|
FieldSortedHitQueue(IndexReader reader,
SortField[] fields,
int size)
Creates a hit queue sorted by the given list of fields. |
|
FuzzyTermEnum(IndexReader reader,
Term term)
Creates a FuzzyTermEnum with an empty prefix and a minSimilarity of 0.5f. |
|
FuzzyTermEnum(IndexReader reader,
Term term,
float minSimilarity)
Creates a FuzzyTermEnum with an empty prefix. |
|
FuzzyTermEnum(IndexReader reader,
Term term,
float minSimilarity,
int prefixLength)
Constructor for enumeration of all terms from specified reader which share a prefix of
length prefixLength with term and which have a fuzzy similarity >
minSimilarity . |
|
IndexSearcher(IndexReader r)
Creates a searcher searching the provided index. |
|
TopFieldDocCollector(IndexReader reader,
Sort sort,
int numHits)
Construct to collect a given number of hits. |
|
WildcardTermEnum(IndexReader reader,
Term term)
Creates a new WildcardTermEnum . |
Uses of IndexReader in org.apache.lucene.search.spans |
Methods in org.apache.lucene.search.spans with parameters of type IndexReader | |
Spans |
SpanFirstQuery.getSpans(IndexReader reader)
|
Query |
SpanFirstQuery.rewrite(IndexReader reader)
|
Spans |
SpanNearQuery.getSpans(IndexReader reader)
|
Query |
SpanNearQuery.rewrite(IndexReader reader)
|
Spans |
SpanNotQuery.getSpans(IndexReader reader)
|
Query |
SpanNotQuery.rewrite(IndexReader reader)
|
Query |
SpanOrQuery.rewrite(IndexReader reader)
|
Spans |
SpanOrQuery.getSpans(IndexReader reader)
|
abstract Spans |
SpanQuery.getSpans(IndexReader reader)
Expert: Returns the matches for this query in an index. |
Spans |
SpanTermQuery.getSpans(IndexReader reader)
|
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |