Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.apache.lucene.index.IndexReader

Packages that use IndexReader
org.apache.lucene.index | Code to maintain and access indices.
org.apache.lucene.search | Code to search indices.
org.apache.lucene.search.function | Programmatic control over documents scores.
org.apache.lucene.search.payloads | The payloads package provides Query mechanisms for finding and using payloads.
org.apache.lucene.search.spans | The calculus of spans.
org.apache.lucene.util | Some utility classes.

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.
`class` | `SegmentReader` IndexReader implementation over a single segment.

Fields in org.apache.lucene.index declared as IndexReader
`protected IndexReader` | `FilterIndexReader.in`
`protected IndexReader[]` | `MultiReader.subReaders`

Methods in org.apache.lucene.index that return IndexReader
`IndexReader` | `IndexReader.clone(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `clone()` instead.
`IndexReader` | `MultiReader.clone(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `MultiReader.clone()` instead.
`IndexReader` | `ParallelReader.clone(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `ParallelReader.clone()` instead.
`IndexReader` | `SegmentReader.clone(boolean openReadOnly)` Deprecated.
`protected IndexReader` | `IndexReader.doOpenIfChanged()` If the index has changed since it was opened, open and return a new reader; else, return `null`.
`protected IndexReader` | `MultiReader.doOpenIfChanged()`
`protected IndexReader` | `ParallelReader.doOpenIfChanged()`
`protected IndexReader` | `SegmentReader.doOpenIfChanged()`
`protected IndexReader` | `IndexReader.doOpenIfChanged(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `doOpenIfChanged()` instead
`protected IndexReader` | `MultiReader.doOpenIfChanged(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `MultiReader.doOpenIfChanged()` instead.
`protected IndexReader` | `ParallelReader.doOpenIfChanged(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `ParallelReader.doOpenIfChanged()` instead.
`protected IndexReader` | `SegmentReader.doOpenIfChanged(boolean openReadOnly)` Deprecated.
`protected IndexReader` | `IndexReader.doOpenIfChanged(IndexCommit commit)` If the index has changed since it was opened, open and return a new reader; else, return `null`.
`protected IndexReader` | `IndexReader.doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)` If the index has changed since it was opened, open and return a new reader; else, return `null`.
`IndexReader` | `IndexWriter.getReader()` Deprecated. Please use `open(IndexWriter,boolean)` instead.
`IndexReader` | `IndexWriter.getReader(int termInfosIndexDivisor)` Deprecated. Please use `open(IndexWriter,boolean)` instead. Furthermore, this method cannot guarantee the reader (and its sub-readers) will be opened with the termInfosIndexDivisor setting because some of them may have already been opened according to `IndexWriterConfig.setReaderTermsIndexDivisor(int)`. You should set the requested termInfosIndexDivisor through `IndexWriterConfig.setReaderTermsIndexDivisor(int)` and use `IndexWriter.getReader()`.
`IndexReader[]` | `IndexReader.getSequentialSubReaders()` Expert: returns the sequential sub readers that this reader is logically composed of.
`IndexReader[]` | `MultiReader.getSequentialSubReaders()`
`IndexReader[]` | `FilterIndexReader.getSequentialSubReaders()`
`static IndexReader` | `IndexReader.open(Directory directory)` Returns a IndexReader reading the index in the given Directory, with readOnly=true.
`static IndexReader` | `IndexReader.open(Directory directory, boolean readOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `open(Directory)` instead
`static IndexReader` | `IndexReader.open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `open(Directory)` instead
`static IndexReader` | `IndexReader.open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)` Deprecated. Write support will be removed in Lucene 4.0. Use `open(Directory,int)` instead
`static IndexReader` | `IndexReader.open(Directory directory, int termInfosIndexDivisor)` Expert: Returns a IndexReader reading the index in the given Director and given termInfosIndexDivisor
`static IndexReader` | `IndexReader.open(IndexCommit commit)` Expert: returns an IndexReader reading the index in the given `IndexCommit`.
`static IndexReader` | `IndexReader.open(IndexCommit commit, boolean readOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `open(IndexCommit)` instead
`static IndexReader` | `IndexReader.open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `open(IndexCommit)` instead
`static IndexReader` | `IndexReader.open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)` Deprecated. Write support will be removed in Lucene 4.0. Use `open(IndexCommit,int)` instead
`static IndexReader` | `IndexReader.open(IndexCommit commit, int termInfosIndexDivisor)` Expert: returns an IndexReader reading the index in the given `IndexCommit` and termInfosIndexDivisor.
`static IndexReader` | `IndexReader.open(IndexWriter writer, boolean applyAllDeletes)` Open a near real time IndexReader from the `IndexWriter`.
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader)` If the index has changed since the provided reader was opened, open and return a new reader; else, return null.
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader, boolean readOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `openIfChanged(IndexReader)` instead
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader, IndexCommit commit)` If the IndexCommit differs from what the provided reader is searching, or the provided reader is not already read-only, open and return a new `readOnly=true` reader; else, return null.
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader, IndexWriter writer, boolean applyAllDeletes)` Expert: If there changes (committed or not) in the `IndexWriter` versus what the provided reader is searching, then open and return a new read-only IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).
`IndexReader` | `IndexReader.reopen()` Deprecated. Use `openIfChanged(IndexReader)` instead
`IndexReader` | `IndexReader.reopen(boolean openReadOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `openIfChanged(IndexReader)` instead
`IndexReader` | `IndexReader.reopen(IndexCommit commit)` Deprecated. Use `openIfChanged(IndexReader,IndexCommit)` instead
`IndexReader` | `IndexReader.reopen(IndexWriter writer, boolean applyAllDeletes)` Deprecated. Use `openIfChanged(IndexReader,IndexWriter,boolean)` instead

Methods in org.apache.lucene.index with parameters of type IndexReader
`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.
`void` | `IndexWriter.addIndexes(IndexReader... readers)` Merges the provided indexes into this index.
`PayloadProcessorProvider.ReaderPayloadProcessor` | `PayloadProcessorProvider.getReaderProcessor(IndexReader reader)` Returns a `PayloadProcessorProvider.ReaderPayloadProcessor` for the given `Directory`, through which `PayloadProcessorProvider.ReaderPayloadProcessor`s can be obtained for each `Term`, or `null` if none should be used.
`void` | `IndexReader.ReaderClosedListener.onClose(IndexReader reader)`
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader)` If the index has changed since the provided reader was opened, open and return a new reader; else, return null.
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader, boolean readOnly)` Deprecated. Write support will be removed in Lucene 4.0. Use `openIfChanged(IndexReader)` instead
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader, IndexCommit commit)` If the IndexCommit differs from what the provided reader is searching, or the provided reader is not already read-only, open and return a new `readOnly=true` reader; else, return null.
`static IndexReader` | `IndexReader.openIfChanged(IndexReader oldReader, IndexWriter writer, boolean applyAllDeletes)` Expert: If there changes (committed or not) in the `IndexWriter` versus what the provided reader is searching, then open and return a new read-only IndexReader searching both committed and uncommitted changes from the writer; else, return null (though, the current implementation never returns null).
`abstract void` | `IndexWriter.IndexReaderWarmer.warm(IndexReader reader)`

Constructors in org.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(IndexReader... subReaders)` Construct a MultiReader aggregating the named set of (sub)readers.
`MultiReader(IndexReader[] subReaders, boolean closeSubReaders)` Construct a MultiReader aggregating the named set of (sub)readers.

Uses of IndexReader in org.apache.lucene.search

Fields in org.apache.lucene.search declared as IndexReader
`protected IndexReader` | `FieldCacheDocIdSet.reader`
`protected IndexReader[]` | `IndexSearcher.subReaders`

Methods in org.apache.lucene.search that return IndexReader
`IndexReader` | `IndexSearcher.getIndexReader()` Return the `IndexReader` this searches.
`IndexReader[]` | `IndexSearcher.getSubReaders()` Returns the atomic subReaders used by this searcher.

Methods in org.apache.lucene.search with parameters of type IndexReader
`long` | `NRTManager.TrackingIndexWriter.addIndexes(IndexReader... readers)`
`SpanFilterResult` | `CachingSpanFilter.bitSpans(IndexReader reader)`
`SpanFilterResult` | `SpanQueryFilter.bitSpans(IndexReader reader)`
`abstract SpanFilterResult` | `SpanFilter.bitSpans(IndexReader reader)` Returns a SpanFilterResult with true for documents which should be permitted in search results, and false for those that should not and Spans for where the true docs match.
`protected DocIdSet` | `CachingWrapperFilter.docIdSetToCache(DocIdSet docIdSet, IndexReader reader)` Provide the DocIdSet to be cached, using the DocIdSet provided by the wrapped Filter.
`abstract Explanation` | `Weight.explain(IndexReader reader, int doc)` An explanation of the score computation for the named document.
`Explanation` | `ConstantScoreQuery.ConstantWeight.explain(IndexReader reader, int doc)`
`Explanation` | `DisjunctionMaxQuery.DisjunctionMaxWeight.explain(IndexReader reader, int doc)` Explain the score we computed for doc
`Explanation` | `BooleanQuery.BooleanWeight.explain(IndexReader reader, int doc)`
`protected void` | `IndexSearcher.gatherSubReaders(List<IndexReader> allSubReaders, IndexReader r)`
`byte[]` | `FieldCache.getBytes(IndexReader reader, String field)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as a single byte and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`byte[]` | `FieldCache.getBytes(IndexReader reader, String field, FieldCache.ByteParser parser)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as bytes and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`byte[]` | `FieldCache.getBytes(IndexReader reader, String field, FieldCache.ByteParser parser, boolean setDocsWithField)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as bytes and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`DocIdSet` | `FieldCacheTermsFilter.getDocIdSet(IndexReader reader)`
`abstract DocIdSet` | `FieldCacheRangeFilter.getDocIdSet(IndexReader reader)` This method is implemented for each data type
`DocIdSet` | `CachingSpanFilter.getDocIdSet(IndexReader reader)`
`abstract DocIdSet` | `Filter.getDocIdSet(IndexReader reader)` Creates a `DocIdSet` enumerating the documents that should be permitted in search results.
`DocIdSet` | `QueryWrapperFilter.getDocIdSet(IndexReader reader)`
`DocIdSet` | `MultiTermQueryWrapperFilter.getDocIdSet(IndexReader reader)` Returns a DocIdSet with documents that should be permitted in search results.
`DocIdSet` | `FieldValueFilter.getDocIdSet(IndexReader reader)`
`DocIdSet` | `CachingWrapperFilter.getDocIdSet(IndexReader reader)`
`DocIdSet` | `SpanQueryFilter.getDocIdSet(IndexReader reader)`
`Bits` | `FieldCache.getDocsWithField(IndexReader reader, String field)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` and returns a bit set at the size of `reader.maxDoc()`, with turned on bits for each docid that does have a value for this field.
`double[]` | `FieldCache.getDoubles(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.
`double[]` | `FieldCache.getDoubles(IndexReader reader, String field, FieldCache.DoubleParser parser)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as doubles and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`double[]` | `FieldCache.getDoubles(IndexReader reader, String field, FieldCache.DoubleParser parser, boolean setDocsWithField)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as doubles and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`protected FilteredTermEnum` | `NumericRangeQuery.getEnum(IndexReader reader)`
`protected FilteredTermEnum` | `PrefixQuery.getEnum(IndexReader reader)`
`protected abstract FilteredTermEnum` | `MultiTermQuery.getEnum(IndexReader reader)` Construct the enumeration to be used, expanding the pattern term.
`protected FilteredTermEnum` | `WildcardQuery.getEnum(IndexReader reader)`
`protected FilteredTermEnum` | `TermRangeQuery.getEnum(IndexReader reader)`
`protected FilteredTermEnum` | `FuzzyQuery.getEnum(IndexReader reader)`
`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.
`float[]` | `FieldCache.getFloats(IndexReader reader, String field, FieldCache.FloatParser parser, boolean setDocsWithField)` 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.
`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.
`long[]` | `FieldCache.getLongs(IndexReader reader, String field)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as longs and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`long[]` | `FieldCache.getLongs(IndexReader reader, String field, FieldCache.LongParser parser)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as longs and returns an array of size `reader.maxDoc()` of the value each document has in the given field.
`long[]` | `FieldCache.getLongs(IndexReader reader, String field, FieldCache.LongParser parser, boolean setDocsWithField)` Checks the internal cache for an appropriate entry, and if none is found, reads the terms in `field` as longs 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)` 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)` 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.
`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.
`protected FilteredTermEnum` | `MultiTermQuery.RewriteMethod.getTermsEnum(IndexReader reader, MultiTermQuery query)` Returns the `MultiTermQuery`s `FilteredTermEnum`
`IndexSearcher` | `SearcherFactory.newSearcher(IndexReader reader)` Returns a new IndexSearcher over the given reader.
`void` | `FieldCache.purge(IndexReader r)` Expert: drops all cache entries associated with this reader.
`Query` | `ConstantScoreQuery.rewrite(IndexReader reader)`
`Query` | `Query.rewrite(IndexReader reader)` Expert: called to re-write queries into primitive queries.
`Query` | `MultiTermQuery.rewrite(IndexReader reader)` To rewrite to a simpler form, instead return a simpler enum from `MultiTermQuery.getEnum(IndexReader)`.
`Query` | `DisjunctionMaxQuery.rewrite(IndexReader reader)` Optimize our representation and our subqueries representations
`Query` | `FilteredQuery.rewrite(IndexReader reader)` Rewrites the wrapped query.
`Query` | `BooleanQuery.rewrite(IndexReader reader)`
`Query` | `PhraseQuery.rewrite(IndexReader reader)`
`Query` | `MultiPhraseQuery.rewrite(IndexReader reader)`
`Query` | `NGramPhraseQuery.rewrite(IndexReader reader)`
`Q` | `ScoringRewrite.rewrite(IndexReader reader, MultiTermQuery query)`
`abstract Query` | `MultiTermQuery.RewriteMethod.rewrite(IndexReader reader, MultiTermQuery query)`
`Q` | `TopTermsRewrite.rewrite(IndexReader reader, MultiTermQuery query)`
`abstract Scorer` | `Weight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)` Returns a `Scorer` which scores documents in/out-of order according to `scoreDocsInOrder`.
`Scorer` | `ConstantScoreQuery.ConstantWeight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)`
`Scorer` | `DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)` Create the scorer used to score our associated DisjunctionMaxQuery
`Scorer` | `BooleanQuery.BooleanWeight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)`
`void` | `TopScoreDocCollector.setNextReader(IndexReader reader, int base)`
`void` | `TotalHitCountCollector.setNextReader(IndexReader reader, int docBase)`
`void` | `CachingCollector.setNextReader(IndexReader reader, int docBase)`
`void` | `MultiCollector.setNextReader(IndexReader reader, int o)`
`void` | `PositiveScoresOnlyCollector.setNextReader(IndexReader reader, int docBase)`
`abstract void` | `Collector.setNextReader(IndexReader reader, int docBase)` Called before collecting from each IndexReader.
`void` | `TimeLimitingCollector.setNextReader(IndexReader reader, int base)`
`abstract void` | `FieldComparator.setNextReader(IndexReader reader, int docBase)` Set a new Reader.
`void` | `FieldComparator.NumericComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.ByteComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.DocComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.DoubleComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.FloatComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.IntComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.LongComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.RelevanceComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.ShortComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.StringComparatorLocale.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.StringOrdValComparator.setNextReader(IndexReader reader, int docBase)`
`void` | `FieldComparator.StringValComparator.setNextReader(IndexReader reader, int docBase)`

Method parameters in org.apache.lucene.search with type arguments of type IndexReader
`protected void` | `IndexSearcher.gatherSubReaders(List<IndexReader> allSubReaders, IndexReader r)`

Constructors in org.apache.lucene.search with parameters of type IndexReader
`FieldCacheDocIdSet(IndexReader reader)`
`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.
`IndexSearcher(IndexReader r, ExecutorService executor)` Runs searches for each segment separately, using the provided ExecutorService.
`IndexSearcher(IndexReader reader, IndexReader[] subReaders, int[] docStarts)` Expert: directly specify the reader, subReaders and their docID starts.
`IndexSearcher(IndexReader reader, IndexReader[] subReaders, int[] docStarts)` Expert: directly specify the reader, subReaders and their docID starts.
`IndexSearcher(IndexReader reader, IndexReader[] subReaders, int[] docStarts, ExecutorService executor)` Expert: directly specify the reader, subReaders and their docID starts, and an ExecutorService.
`IndexSearcher(IndexReader reader, IndexReader[] subReaders, int[] docStarts, ExecutorService executor)` Expert: directly specify the reader, subReaders and their docID starts, and an ExecutorService.
`PrefixTermEnum(IndexReader reader, Term prefix)`
`SingleTermEnum(IndexReader reader, Term singleTerm)` Creates a new `SingleTermEnum`.
`TermRangeTermEnum(IndexReader reader, String field, String lowerTermText, String upperTermText, boolean includeLower, boolean includeUpper, Collator collator)` Enumerates all terms greater/equal than `lowerTerm` but less/equal than `upperTerm`.
`WildcardTermEnum(IndexReader reader, Term term)` Creates a new `WildcardTermEnum`.

Uses of IndexReader in org.apache.lucene.search.function

Fields in org.apache.lucene.search.function declared as IndexReader
`protected IndexReader` | `CustomScoreProvider.reader`

Methods in org.apache.lucene.search.function with parameters of type IndexReader
`abstract DocValues` | `FieldCacheSource.getCachedFieldValues(FieldCache cache, String field, IndexReader reader)` Return cached DocValues for input field and reader.
`DocValues` | `ShortFieldSource.getCachedFieldValues(FieldCache cache, String field, IndexReader reader)`
`DocValues` | `ByteFieldSource.getCachedFieldValues(FieldCache cache, String field, IndexReader reader)`
`DocValues` | `FloatFieldSource.getCachedFieldValues(FieldCache cache, String field, IndexReader reader)`
`DocValues` | `IntFieldSource.getCachedFieldValues(FieldCache cache, String field, IndexReader reader)`
`protected CustomScoreProvider` | `CustomScoreQuery.getCustomScoreProvider(IndexReader reader)` Returns a `CustomScoreProvider` that calculates the custom scores for the given `IndexReader`.
`abstract DocValues` | `ValueSource.getValues(IndexReader reader)` Return the DocValues used by the function query.
`DocValues` | `FieldCacheSource.getValues(IndexReader reader)`
`DocValues` | `OrdFieldSource.getValues(IndexReader reader)`
`DocValues` | `ReverseOrdFieldSource.getValues(IndexReader reader)`
`Query` | `ValueSourceQuery.rewrite(IndexReader reader)`
`Query` | `CustomScoreQuery.rewrite(IndexReader reader)`

Constructors in org.apache.lucene.search.function with parameters of type IndexReader
`CustomScoreProvider(IndexReader reader)` Creates a new instance of the provider class for the given `IndexReader`.

Uses of IndexReader in org.apache.lucene.search.payloads

Methods in org.apache.lucene.search.payloads with parameters of type IndexReader
`Explanation` | `PayloadTermQuery.PayloadTermWeight.explain(IndexReader reader, int doc)`
`Scorer` | `PayloadNearQuery.PayloadNearSpanWeight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)`
`Scorer` | `PayloadTermQuery.PayloadTermWeight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)`

Constructors in org.apache.lucene.search.payloads with parameters of type IndexReader
`PayloadSpanUtil(IndexReader reader)`

Uses of IndexReader in org.apache.lucene.search.spans

Methods in org.apache.lucene.search.spans with parameters of type IndexReader
`Explanation` | `SpanWeight.explain(IndexReader reader, int doc)`
`Spans` | `SpanPositionCheckQuery.getSpans(IndexReader reader)`
`Spans` | `SpanTermQuery.getSpans(IndexReader reader)`
`abstract Spans` | `SpanQuery.getSpans(IndexReader reader)` Expert: Returns the matches for this query in an index.
`Spans` | `FieldMaskingSpanQuery.getSpans(IndexReader reader)`
`Spans` | `SpanOrQuery.getSpans(IndexReader reader)`
`Spans` | `SpanNearQuery.getSpans(IndexReader reader)`
`Spans` | `SpanMultiTermQueryWrapper.getSpans(IndexReader reader)`
`Spans` | `SpanNotQuery.getSpans(IndexReader reader)`
`Query` | `SpanPositionCheckQuery.rewrite(IndexReader reader)`
`Query` | `FieldMaskingSpanQuery.rewrite(IndexReader reader)`
`Query` | `SpanOrQuery.rewrite(IndexReader reader)`
`Query` | `SpanNearQuery.rewrite(IndexReader reader)`
`Query` | `SpanMultiTermQueryWrapper.rewrite(IndexReader reader)`
`Query` | `SpanNotQuery.rewrite(IndexReader reader)`
`abstract SpanQuery` | `SpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader, MultiTermQuery query)`
`SpanQuery` | `SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader, MultiTermQuery query)`
`Scorer` | `SpanWeight.scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)`

Constructors in org.apache.lucene.search.spans with parameters of type IndexReader
`NearSpansOrdered(SpanNearQuery spanNearQuery, IndexReader reader)`
`NearSpansOrdered(SpanNearQuery spanNearQuery, IndexReader reader, boolean collectPayloads)`
`NearSpansUnordered(SpanNearQuery query, IndexReader reader)`
`SpanPositionCheckQuery.PositionCheckSpan(IndexReader reader)`

Uses of IndexReader in org.apache.lucene.util

Methods in org.apache.lucene.util with parameters of type IndexReader
`protected abstract void` | `ReaderUtil.Gather.add(int base, IndexReader r)`
`static void` | `ReaderUtil.gatherSubReaders(List<IndexReader> allSubReaders, IndexReader reader)` Gathers sub-readers from reader into a List.
`static Collection<String>` | `ReaderUtil.getIndexedFields(IndexReader reader)`
`static FieldInfos` | `ReaderUtil.getMergedFieldInfos(IndexReader reader)` Call this to get the (merged) FieldInfos for a composite reader

Method parameters in org.apache.lucene.util with type arguments of type IndexReader
`static void` | `ReaderUtil.gatherSubReaders(List<IndexReader> allSubReaders, IndexReader reader)` Gathers sub-readers from reader into a List.

Constructors in org.apache.lucene.util with parameters of type IndexReader
`ReaderUtil.Gather(IndexReader r)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES