Uses of Class
org.apache.lucene.index.IndexReader
-
Packages that use IndexReader Package Description org.apache.lucene.analysis.query Automatically filter high-frequency stopwords.org.apache.lucene.benchmark.byTask Benchmarking Lucene By Tasks.org.apache.lucene.benchmark.byTask.tasks Extendable benchmark tasks.org.apache.lucene.facet.enhancements Enhanced category featuresorg.apache.lucene.facet.enhancements.association Association category enhancementsorg.apache.lucene.facet.index Indexing of document categoriesorg.apache.lucene.facet.index.params Indexing-time specifications for handling facetsorg.apache.lucene.facet.search Faceted Search APIorg.apache.lucene.facet.search.aggregator.association Association-based aggregators.org.apache.lucene.facet.search.cache Caching to speed up facets accumulation.org.apache.lucene.facet.search.params Parameters for Faceted Searchorg.apache.lucene.facet.search.params.association Association-based Parameters for Faceted Search.org.apache.lucene.facet.search.sampling Sampling for facets accumulationorg.apache.lucene.facet.taxonomy.directory Taxonomy implemented using a Lucene-Indexorg.apache.lucene.facet.util Various utilities for faceted searchorg.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.pruning Static Index Pruning Toolsorg.apache.lucene.misc Miscellaneous index tools.org.apache.lucene.queryParser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.search Code to search indices.org.apache.lucene.search.function Programmatic control over documents scores.org.apache.lucene.search.grouping This module enables search result grouping with Lucene, where hits with the same value in the specified single-valued group field are grouped together.org.apache.lucene.search.highlight The highlight package contains classes to provide "keyword in context" features typically used to highlight search terms in the text of results pages.org.apache.lucene.search.join This modules support index-time and query-time joins.org.apache.lucene.search.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search.regex Regular expression Query.org.apache.lucene.search.similar Document similarity query generators.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.vectorhighlight This is an another highlighter implementation.org.apache.lucene.spatial.geohash Support for Geohash encoding, decoding, and filtering.org.apache.lucene.spatial.tier Support for filtering based upon geographic location.org.apache.lucene.store.instantiated InstantiatedIndex, alternative RAM store for small corpora.org.apache.lucene.util Some utility classes. -
-
Uses of IndexReader in org.apache.lucene.analysis.query
Methods in org.apache.lucene.analysis.query with parameters of type IndexReader Modifier and Type Method Description intQueryAutoStopWordAnalyzer. addStopWords(IndexReader reader)Deprecated.Stopwords should be calculated at instantiation usingQueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader)intQueryAutoStopWordAnalyzer. addStopWords(IndexReader reader, float maxPercentDocs)Deprecated.Stowords should be calculated at instantiation usingQueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, float)intQueryAutoStopWordAnalyzer. addStopWords(IndexReader reader, int maxDocFreq)Deprecated.Stopwords should be calculated at instantiation usingQueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, int)intQueryAutoStopWordAnalyzer. addStopWords(IndexReader reader, String fieldName, float maxPercentDocs)Deprecated.Stowords should be calculated at instantiation usingQueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, Collection, float)intQueryAutoStopWordAnalyzer. addStopWords(IndexReader reader, String fieldName, int maxDocFreq)Deprecated.Stowords should be calculated at instantiation usingQueryAutoStopWordAnalyzer(Version, Analyzer, IndexReader, Collection, int)Constructors in org.apache.lucene.analysis.query with parameters of type IndexReader Constructor Description QueryAutoStopWordAnalyzer(Version matchVersion, Analyzer delegate, IndexReader indexReader)Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all indexed fields from terms with a document frequency percentage greater thanQueryAutoStopWordAnalyzer.defaultMaxDocFreqPercentQueryAutoStopWordAnalyzer(Version matchVersion, Analyzer delegate, IndexReader indexReader, float maxPercentDocs)Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all indexed fields from terms with a document frequency percentage greater than the given maxPercentDocsQueryAutoStopWordAnalyzer(Version matchVersion, Analyzer delegate, IndexReader indexReader, int maxDocFreq)Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all indexed fields from terms with a document frequency greater than the given maxDocFreqQueryAutoStopWordAnalyzer(Version matchVersion, Analyzer delegate, IndexReader indexReader, Collection<String> fields, float maxPercentDocs)Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the given selection of fields from terms with a document frequency percentage greater than the given maxPercentDocsQueryAutoStopWordAnalyzer(Version matchVersion, Analyzer delegate, IndexReader indexReader, Collection<String> fields, int maxDocFreq)Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the given selection of fields from terms with a document frequency greater than the given maxDocFreq -
Uses of IndexReader in org.apache.lucene.benchmark.byTask
Methods in org.apache.lucene.benchmark.byTask that return IndexReader Modifier and Type Method Description IndexReaderPerfRunData. getIndexReader()Methods in org.apache.lucene.benchmark.byTask with parameters of type IndexReader Modifier and Type Method Description voidPerfRunData. setIndexReader(IndexReader indexReader)Set the index reader. -
Uses of IndexReader in org.apache.lucene.benchmark.byTask.tasks
Methods in org.apache.lucene.benchmark.byTask.tasks with parameters of type IndexReader Modifier and Type Method Description abstract intBenchmarkHighlighter. doHighlight(IndexReader reader, int doc, String field, Document document, Analyzer analyzer, String text)protected DocumentReadTask. retrieveDoc(IndexReader ir, int id)protected DocumentSearchTravRetLoadFieldSelectorTask. retrieveDoc(IndexReader ir, int id) -
Uses of IndexReader in org.apache.lucene.facet.enhancements
Constructors in org.apache.lucene.facet.enhancements with parameters of type IndexReader Constructor Description EnhancementsPayloadIterator(List<CategoryEnhancement> enhancementsList, IndexReader indexReader, Term term)Constructor. -
Uses of IndexReader in org.apache.lucene.facet.enhancements.association
Constructors in org.apache.lucene.facet.enhancements.association with parameters of type IndexReader Constructor Description AssociationsPayloadIterator(IndexReader reader, String field)Construct a new association-iterator, initializing the inner payload iterator, with the supplied term and checking whether there are any associations within the given index -
Uses of IndexReader in org.apache.lucene.facet.index
Methods in org.apache.lucene.facet.index with parameters of type IndexReader Modifier and Type Method Description PayloadProcessorProvider.ReaderPayloadProcessorFacetsPayloadProcessorProvider. getReaderProcessor(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.facet.index.params
Methods in org.apache.lucene.facet.index.params with parameters of type IndexReader Modifier and Type Method Description CategoryListIteratorCategoryListParams. createCategoryListIterator(IndexReader reader, int partition)Create the category list iterator for the specified partition. -
Uses of IndexReader in org.apache.lucene.facet.search
Fields in org.apache.lucene.facet.search declared as IndexReader Modifier and Type Field Description protected IndexReaderFacetsAccumulator. indexReaderMethods in org.apache.lucene.facet.search with parameters of type IndexReader Modifier and Type Method Description TotalFacetCountsTotalFacetCountsCache. getTotalCounts(IndexReader indexReader, TaxonomyReader taxonomy, FacetIndexingParams facetIndexingParams, CategoryListCache clCache)Get the total facet counts for a reader/taxonomy pair and facet indexing parameters.protected FacetsAccumulatorFacetsCollector. initFacetsAccumulator(FacetSearchParams facetSearchParams, IndexReader indexReader, TaxonomyReader taxonomyReader)Create theFacetsAccumulatorto be used.protected ScoredDocIdCollectorFacetsCollector. initScoredDocCollector(FacetSearchParams facetSearchParams, IndexReader indexReader, TaxonomyReader taxonomyReader)Create aScoredDocIdCollectorto be used as the first phase of the facet collection.voidTotalFacetCountsCache. load(File inputFile, IndexReader indexReader, TaxonomyReader taxonomy, FacetIndexingParams facetIndexingParams)LoadTotalFacetCountsmatching input parameters from the provided outputFile and add them into the cache for the provided indexReader, taxonomy, and facetIndexingParams.voidFacetsCollector. setNextReader(IndexReader reader, int docBase)voidScoredDocIdCollector. setNextReader(IndexReader reader, int base)voidTotalFacetCountsCache. store(File outputFile, IndexReader indexReader, TaxonomyReader taxonomy, FacetIndexingParams facetIndexingParams, CategoryListCache clCache)Store theTotalFacetCountsmatching input parameters into the provided outputFile, making them available for a later call toTotalFacetCountsCache.load(File, IndexReader, TaxonomyReader, FacetIndexingParams). -
Uses of IndexReader in org.apache.lucene.facet.search.aggregator.association
Constructors in org.apache.lucene.facet.search.aggregator.association with parameters of type IndexReader Constructor Description AssociationFloatSumAggregator(String field, IndexReader reader, float[] sumArray)AssociationFloatSumAggregator(IndexReader reader, float[] sumArray)AssociationIntSumAggregator(String field, IndexReader reader, int[] sumArray)AssociationIntSumAggregator(IndexReader reader, int[] sumArray) -
Uses of IndexReader in org.apache.lucene.facet.search.cache
Methods in org.apache.lucene.facet.search.cache with parameters of type IndexReader Modifier and Type Method Description voidCategoryListCache. loadAndRegister(CategoryListParams clp, IndexReader reader, TaxonomyReader taxo, FacetIndexingParams iparams)Load and registerCategoryListData. -
Uses of IndexReader in org.apache.lucene.facet.search.params
Methods in org.apache.lucene.facet.search.params with parameters of type IndexReader Modifier and Type Method Description AggregatorCountFacetRequest. createAggregator(boolean useComplements, FacetArrays arrays, IndexReader reader, TaxonomyReader taxonomy)abstract AggregatorFacetRequest. createAggregator(boolean useComplements, FacetArrays arrays, IndexReader indexReader, TaxonomyReader taxonomy)Create an aggregator for this facet request.AggregatorScoreFacetRequest. createAggregator(boolean useComplements, FacetArrays arrays, IndexReader reader, TaxonomyReader taxonomy)CategoryListIteratorFacetRequest. createCategoryListIterator(IndexReader reader, TaxonomyReader taxo, FacetSearchParams sParams, int partition)Create the category list iterator for the specified partition. -
Uses of IndexReader in org.apache.lucene.facet.search.params.association
Methods in org.apache.lucene.facet.search.params.association with parameters of type IndexReader Modifier and Type Method Description AggregatorAssociationFloatSumFacetRequest. createAggregator(boolean useComplements, FacetArrays arrays, IndexReader reader, TaxonomyReader taxonomy)AggregatorAssociationIntSumFacetRequest. createAggregator(boolean useComplements, FacetArrays arrays, IndexReader reader, TaxonomyReader taxonomy) -
Uses of IndexReader in org.apache.lucene.facet.search.sampling
Methods in org.apache.lucene.facet.search.sampling with parameters of type IndexReader Modifier and Type Method Description SampleFixerSampler. getSampleFixer(IndexReader indexReader, TaxonomyReader taxonomyReader, FacetSearchParams searchParams)Get a fixer of sample facet accumulation results.Constructors in org.apache.lucene.facet.search.sampling with parameters of type IndexReader Constructor Description SamplingAccumulator(Sampler sampler, FacetSearchParams searchParams, IndexReader indexReader, TaxonomyReader taxonomyReader)Constructor...SamplingAccumulator(Sampler sampler, FacetSearchParams searchParams, IndexReader indexReader, TaxonomyReader taxonomyReader, IntArrayAllocator intArrayAllocator, FloatArrayAllocator floatArrayAllocator)Constructor... -
Uses of IndexReader in org.apache.lucene.facet.taxonomy.directory
Methods in org.apache.lucene.facet.taxonomy.directory that return IndexReader Modifier and Type Method Description protected IndexReaderDirectoryTaxonomyReader. openIndexReader(Directory directory)protected IndexReaderDirectoryTaxonomyWriter. openReader() -
Uses of IndexReader in org.apache.lucene.facet.util
Methods in org.apache.lucene.facet.util with parameters of type IndexReader Modifier and Type Method Description static ScoredDocIDsScoredDocIdsUtils. createAllDocsScoredDocIDs(IndexReader reader)Creates aScoredDocIDswhich returns document IDs all non-deleted doc ids according to the given reader.static ScoredDocIDsScoredDocIdsUtils. getComplementSet(ScoredDocIDs docids, IndexReader reader)Create a complement of the input set. -
Uses of IndexReader in org.apache.lucene.index
Subclasses of IndexReader in org.apache.lucene.index Modifier and Type Class Description classFilterIndexReaderAFilterIndexReadercontains another IndexReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classMultiReaderAn IndexReader which reads multiple indexes, appending their content.classParallelReaderAn IndexReader which reads multiple, parallel indexes.classPruningReaderThis class produces a subset of the input index, by removing some postings data according to rules implemented in aTermPruningPolicy, and optionally it can also remove stored fields of documents according to rules implemented in aStorePruningPolicy.classSegmentReaderIndexReader implementation over a single segment.classSlowMultiReaderWrapperActs like Lucene 4.x's SlowMultiReaderWrapper for testing of top-level MultiTermEnum, MultiTermDocs, ...Fields in org.apache.lucene.index declared as IndexReader Modifier and Type Field Description protected IndexReaderFilterIndexReader. inprotected IndexReader[]MultiReader. subReadersMethods in org.apache.lucene.index that return IndexReader Modifier and Type Method Description IndexReaderIndexReader. clone(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.IndexReaderMultiReader. clone(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.IndexReaderParallelReader. clone(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.IndexReaderSegmentReader. clone(boolean openReadOnly)Deprecated.protected IndexReaderIndexReader. doOpenIfChanged()If the index has changed since it was opened, open and return a new reader; else, returnnull.protected IndexReaderIndexReader. doOpenIfChanged(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.protected IndexReaderIndexReader. doOpenIfChanged(IndexCommit commit)If the index has changed since it was opened, open and return a new reader; else, returnnull.protected IndexReaderIndexReader. doOpenIfChanged(IndexWriter writer, boolean applyAllDeletes)If the index has changed since it was opened, open and return a new reader; else, returnnull.protected IndexReaderMultiReader. doOpenIfChanged()protected IndexReaderMultiReader. doOpenIfChanged(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.protected IndexReaderParallelReader. doOpenIfChanged()protected IndexReaderParallelReader. doOpenIfChanged(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.protected IndexReaderSegmentReader. doOpenIfChanged()protected IndexReaderSegmentReader. doOpenIfChanged(boolean openReadOnly)Deprecated.IndexReaderIndexWriter. getReader()Deprecated.Please useopen(IndexWriter,boolean)instead.IndexReaderIndexWriter. getReader(int termInfosIndexDivisor)Deprecated.Please useopen(IndexWriter,boolean)instead.IndexReaderRandomIndexWriter. getReader()IndexReaderRandomIndexWriter. getReader(boolean applyDeletions)IndexReader[]FilterIndexReader. getSequentialSubReaders()IndexReader[]IndexReader. getSequentialSubReaders()Expert: returns the sequential sub readers that this reader is logically composed of.IndexReader[]MultiReader. getSequentialSubReaders()IndexReader[]PruningReader. getSequentialSubReaders()IndexReader[]SlowMultiReaderWrapper. getSequentialSubReaders()static IndexReaderIndexReader. open(IndexCommit commit)Expert: returns an IndexReader reading the index in the givenIndexCommit.static IndexReaderIndexReader. open(IndexCommit commit, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(IndexCommit commit, int termInfosIndexDivisor)Expert: returns an IndexReader reading the index in the givenIndexCommitand termInfosIndexDivisor.static IndexReaderIndexReader. open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(IndexCommit commit, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(IndexWriter writer, boolean applyAllDeletes)Open a near real time IndexReader from theIndexWriter.static IndexReaderIndexReader. open(Directory directory)Returns a IndexReader reading the index in the given Directory, with readOnly=true.static IndexReaderIndexReader. open(Directory directory, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(Directory directory, int termInfosIndexDivisor)Expert: Returns a IndexReader reading the index in the given Director and given termInfosIndexDivisorstatic IndexReaderIndexReader. open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. open(Directory directory, IndexDeletionPolicy deletionPolicy, boolean readOnly, int termInfosIndexDivisor)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. openIfChanged(IndexReader oldReader)If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static IndexReaderIndexReader. openIfChanged(IndexReader oldReader, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. 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 newreadOnly=truereader; else, return null.static IndexReaderIndexReader. openIfChanged(IndexReader oldReader, IndexWriter writer, boolean applyAllDeletes)Expert: If there changes (committed or not) in theIndexWriterversus 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).IndexReaderIndexReader. reopen()Deprecated.UseopenIfChanged(IndexReader)insteadIndexReaderIndexReader. reopen(boolean openReadOnly)Deprecated.Write support will be removed in Lucene 4.0.IndexReaderIndexReader. reopen(IndexCommit commit)Deprecated.UseopenIfChanged(IndexReader,IndexCommit)insteadIndexReaderIndexReader. reopen(IndexWriter writer, boolean applyAllDeletes)Deprecated.UseopenIfChanged(IndexReader,IndexWriter,boolean)insteadMethods in org.apache.lucene.index with parameters of type IndexReader Modifier and Type Method Description voidTermVectorAccessor. accept(IndexReader indexReader, int documentNumber, String fieldName, TermVectorMapper mapper)Visits the TermVectorMapper and populates it with terms available for a given document, either via a vector created at index time or by resolving them from the inverted index.voidParallelReader. add(IndexReader reader)Add an IndexReader.voidParallelReader. add(IndexReader reader, boolean ignoreStoredFields)Add an IndexReader whose stored fields will not be returned.voidIndexWriter. addIndexes(IndexReader... readers)Merges the provided indexes into this index.voidRandomIndexWriter. addIndexes(IndexReader... readers)PayloadProcessorProvider.ReaderPayloadProcessorPayloadProcessorProvider. getReaderProcessor(IndexReader reader)Returns aPayloadProcessorProvider.ReaderPayloadProcessorfor the givenDirectory, through whichPayloadProcessorProvider.PayloadProcessors can be obtained for eachTerm, ornullif none should be used.voidIndexReader.ReaderClosedListener. onClose(IndexReader reader)static IndexReaderIndexReader. openIfChanged(IndexReader oldReader)If the index has changed since the provided reader was opened, open and return a new reader; else, return null.static IndexReaderIndexReader. openIfChanged(IndexReader oldReader, boolean readOnly)Deprecated.Write support will be removed in Lucene 4.0.static IndexReaderIndexReader. 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 newreadOnly=truereader; else, return null.static IndexReaderIndexReader. openIfChanged(IndexReader oldReader, IndexWriter writer, boolean applyAllDeletes)Expert: If there changes (committed or not) in theIndexWriterversus 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).voidMultiPassIndexSplitter. split(IndexReader input, Directory[] outputs, boolean seq)Deprecated.voidMultiPassIndexSplitter. split(Version version, IndexReader input, Directory[] outputs, boolean seq)Split source index into multiple parts.abstract voidIndexWriter.IndexReaderWarmer. warm(IndexReader reader)Constructors in org.apache.lucene.index with parameters of type IndexReader Constructor Description FilterIndexReader(IndexReader in)Construct a FilterIndexReader based on the specified base reader.MultipleTermPositions(IndexReader indexReader, Term[] terms)Creates a newMultipleTermPositionsinstance.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.PruningReader(IndexReader in, StorePruningPolicy storePolicy, TermPruningPolicy termPolicy)Constructor.SlowMultiReaderWrapper(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.index.pruning
Fields in org.apache.lucene.index.pruning declared as IndexReader Modifier and Type Field Description protected IndexReaderStorePruningPolicy. inprotected IndexReaderTermPruningPolicy. inConstructors in org.apache.lucene.index.pruning with parameters of type IndexReader Constructor Description CarmelTopKTermPruningPolicy(IndexReader in, Map<String,Integer> fieldFlags)Constructor with default parametersCarmelTopKTermPruningPolicy(IndexReader in, Map<String,Integer> fieldFlags, int k, float epsilon, int r, Similarity sim)Constructor with specific settingsCarmelUniformTermPruningPolicy(IndexReader in, Map<String,Integer> fieldFlags, Map<String,Float> thresholds, float defThreshold, Similarity sim)RIDFTermPruningPolicy(IndexReader in, Map<String,Integer> fieldFlags, Map<String,Double> thresholds, double defThreshold)StorePruningPolicy(IndexReader in, Map<String,Integer> fieldFlags)Constructs a policy.TermPruningPolicy(IndexReader in, Map<String,Integer> fieldFlags)Construct a policy.TFTermPruningPolicy(IndexReader in, Map<String,Integer> fieldFlags, Map<String,Integer> thresholds, int defThreshold) -
Uses of IndexReader in org.apache.lucene.misc
Methods in org.apache.lucene.misc with parameters of type IndexReader Modifier and Type Method Description static org.apache.lucene.misc.TermStats[]HighFreqTerms. getHighFreqTerms(IndexReader reader, int numTerms, String field)static longHighFreqTerms. getTotalTermFreq(IndexReader reader, Term term)static org.apache.lucene.misc.TermStats[]HighFreqTerms. sortByTotalTermFreq(IndexReader reader, org.apache.lucene.misc.TermStats[] terms)Takes array of TermStats. -
Uses of IndexReader in org.apache.lucene.queryParser.surround.query
Methods in org.apache.lucene.queryParser.surround.query that return IndexReader Modifier and Type Method Description IndexReaderSpanNearClauseFactory. getIndexReader()Methods in org.apache.lucene.queryParser.surround.query with parameters of type IndexReader Modifier and Type Method Description QueryDistanceQuery. getSpanNearQuery(IndexReader reader, String fieldName, float boost, BasicQueryFactory qf)abstract voidSimpleTerm. visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv)voidSrndPrefixQuery. visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv)voidSrndTermQuery. visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv)voidSrndTruncQuery. visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv)Constructors in org.apache.lucene.queryParser.surround.query with parameters of type IndexReader Constructor Description SpanNearClauseFactory(IndexReader reader, String fieldName, BasicQueryFactory qf) -
Uses of IndexReader in org.apache.lucene.search
Fields in org.apache.lucene.search declared as IndexReader Modifier and Type Field Description protected IndexReaderFieldCacheDocIdSet. readerprotected static IndexReaderSearchEquivalenceTestBase. readerprotected IndexReader[]IndexSearcher. subReadersMethods in org.apache.lucene.search that return IndexReader Modifier and Type Method Description IndexReaderIndexSearcher. getIndexReader()Return theIndexReaderthis searches.IndexReader[]IndexSearcher. getSubReaders()Returns the atomic subReaders used by this searcher.Methods in org.apache.lucene.search with parameters of type IndexReader Modifier and Type Method Description longNRTManager.TrackingIndexWriter. addIndexes(IndexReader... readers)SpanFilterResultCachingSpanFilter. bitSpans(IndexReader reader)abstract SpanFilterResultSpanFilter. 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.SpanFilterResultSpanQueryFilter. bitSpans(IndexReader reader)protected DocIdSetCachingWrapperFilter. docIdSetToCache(DocIdSet docIdSet, IndexReader reader)Provide the DocIdSet to be cached, using the DocIdSet provided by the wrapped Filter.ExplanationBooleanQuery.BooleanWeight. explain(IndexReader reader, int doc)ExplanationConstantScoreQuery.ConstantWeight. explain(IndexReader reader, int doc)ExplanationDisjunctionMaxQuery.DisjunctionMaxWeight. explain(IndexReader reader, int doc)Explain the score we computed for docabstract ExplanationWeight. explain(IndexReader reader, int doc)An explanation of the score computation for the named document.protected voidIndexSearcher. 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 infieldas a single byte and returns an array of sizereader.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 infieldas bytes and returns an array of sizereader.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 infieldas bytes and returns an array of sizereader.maxDoc()of the value each document has in the given field.DocIdSetBooleanFilter. getDocIdSet(IndexReader reader)Returns the a DocIdSetIterator representing the Boolean composition of the filters that have been added.DocIdSetCachingSpanFilter. getDocIdSet(IndexReader reader)DocIdSetCachingWrapperFilter. getDocIdSet(IndexReader reader)DocIdSetCachingWrapperFilterHelper. getDocIdSet(IndexReader reader)DocIdSetChainedFilter. getDocIdSet(IndexReader reader)DocIdSetDuplicateFilter. getDocIdSet(IndexReader reader)abstract DocIdSetFieldCacheRangeFilter. getDocIdSet(IndexReader reader)This method is implemented for each data typeDocIdSetFieldCacheTermsFilter. getDocIdSet(IndexReader reader)DocIdSetFieldValueFilter. getDocIdSet(IndexReader reader)abstract DocIdSetFilter. getDocIdSet(IndexReader reader)Creates aDocIdSetenumerating the documents that should be permitted in search results.DocIdSetMultiTermQueryWrapperFilter. getDocIdSet(IndexReader reader)Returns a DocIdSet with documents that should be permitted in search results.DocIdSetQueryWrapperFilter. getDocIdSet(IndexReader reader)DocIdSetRemoteCachingWrapperFilter. getDocIdSet(IndexReader reader)Deprecated.Uses theFilterManagerto keep the cache for a filter on the searcher side of a remote connection.DocIdSetSpanQueryFilter. getDocIdSet(IndexReader reader)DocIdSetTermsFilter. getDocIdSet(IndexReader reader)BitsFieldCache. getDocsWithField(IndexReader reader, String field)Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldand returns a bit set at the size ofreader.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 infieldas integers and returns an array of sizereader.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 infieldas doubles and returns an array of sizereader.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 infieldas doubles and returns an array of sizereader.maxDoc()of the value each document has in the given field.protected FilteredTermEnumFuzzyQuery. getEnum(IndexReader reader)protected abstract FilteredTermEnumMultiTermQuery. getEnum(IndexReader reader)Construct the enumeration to be used, expanding the pattern term.protected FilteredTermEnumNumericRangeQuery. getEnum(IndexReader reader)protected FilteredTermEnumPrefixQuery. getEnum(IndexReader reader)protected FilteredTermEnumTermRangeQuery. getEnum(IndexReader reader)protected FilteredTermEnumWildcardQuery. 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 infieldas floats and returns an array of sizereader.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 infieldas floats and returns an array of sizereader.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 infieldas floats and returns an array of sizereader.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 infieldas integers and returns an array of sizereader.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 infieldas integers and returns an array of sizereader.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 infieldas integers and returns an array of sizereader.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 infieldas longs and returns an array of sizereader.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 infieldas longs and returns an array of sizereader.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 infieldas longs and returns an array of sizereader.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 infieldas shorts and returns an array of sizereader.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 infieldas shorts and returns an array of sizereader.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 infieldas shorts and returns an array of sizereader.maxDoc()of the value each document has in the given field.FieldCache.StringIndexFieldCache. getStringIndex(IndexReader reader, String field)Checks the internal cache for an appropriate entry, and if none is found reads the term values infieldand 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 infieldand returns an array of sizereader.maxDoc()containing the value each document has in the given field.protected FilteredTermEnumMultiTermQuery.RewriteMethod. getTermsEnum(IndexReader reader, MultiTermQuery query)Returns theMultiTermQuerysFilteredTermEnumIndexSearcherSearcherFactory. newSearcher(IndexReader reader)Returns a new IndexSearcher over the given reader.voidFieldCache. purge(IndexReader r)Expert: drops all cache entries associated with this reader.QueryBooleanQuery. rewrite(IndexReader reader)QueryBoostingQuery. rewrite(IndexReader reader)QueryConstantScoreQuery. rewrite(IndexReader reader)QueryDisjunctionMaxQuery. rewrite(IndexReader reader)Optimize our representation and our subqueries representationsQueryFilteredQuery. rewrite(IndexReader reader)Rewrites the wrapped query.QueryFuzzyLikeThisQuery. rewrite(IndexReader reader)QueryMultiPhraseQuery. rewrite(IndexReader reader)QueryMultiTermQuery. rewrite(IndexReader reader)To rewrite to a simpler form, instead return a simpler enum fromMultiTermQuery.getEnum(IndexReader).abstract QueryMultiTermQuery.RewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)QueryNGramPhraseQuery. rewrite(IndexReader reader)QueryPhraseQuery. rewrite(IndexReader reader)QueryQuery. rewrite(IndexReader reader)Expert: called to re-write queries into primitive queries.QScoringRewrite. rewrite(IndexReader reader, MultiTermQuery query)QTopTermsRewrite. rewrite(IndexReader reader, MultiTermQuery query)ScorerBooleanQuery.BooleanWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)ScorerConstantScoreQuery.ConstantWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)ScorerDisjunctionMaxQuery.DisjunctionMaxWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)Create the scorer used to score our associated DisjunctionMaxQueryabstract ScorerWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)Returns aScorerwhich scores documents in/out-of order according toscoreDocsInOrder.voidCachingCollector. setNextReader(IndexReader reader, int docBase)voidCheckHits.ExplanationAsserter. setNextReader(IndexReader reader, int docBase)voidCheckHits.SetCollector. setNextReader(IndexReader reader, int docBase)abstract voidCollector. setNextReader(IndexReader reader, int docBase)Called before collecting from each IndexReader.voidFieldComparator.ByteComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.DocComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.DoubleComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.FloatComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.IntComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.LongComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.NumericComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.RelevanceComparator. setNextReader(IndexReader reader, int docBase)abstract voidFieldComparator. setNextReader(IndexReader reader, int docBase)Set a new Reader.voidFieldComparator.ShortComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.StringComparatorLocale. setNextReader(IndexReader reader, int docBase)voidFieldComparator.StringOrdValComparator. setNextReader(IndexReader reader, int docBase)voidFieldComparator.StringValComparator. setNextReader(IndexReader reader, int docBase)voidMultiCollector. setNextReader(IndexReader reader, int o)voidPositiveScoresOnlyCollector. setNextReader(IndexReader reader, int docBase)voidTimeLimitingCollector. setNextReader(IndexReader reader, int base)voidTopScoreDocCollector. setNextReader(IndexReader reader, int base)voidTotalHitCountCollector. setNextReader(IndexReader reader, int docBase)Method parameters in org.apache.lucene.search with type arguments of type IndexReader Modifier and Type Method Description protected voidIndexSearcher. gatherSubReaders(List<IndexReader> allSubReaders, IndexReader r)Constructors in org.apache.lucene.search with parameters of type IndexReader Constructor Description AssertingIndexSearcher(IndexReader r)AssertingIndexSearcher(IndexReader r, ExecutorService ex)ExplanationAssertingSearcher(IndexReader r)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 specifiedreaderwhich share a prefix of lengthprefixLengthwithtermand 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, 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 newSingleTermEnum.TermRangeTermEnum(IndexReader reader, String field, String lowerTermText, String upperTermText, boolean includeLower, boolean includeUpper, Collator collator)Enumerates all terms greater/equal thanlowerTermbut less/equal thanupperTerm.WildcardTermEnum(IndexReader reader, Term term)Creates a newWildcardTermEnum. -
Uses of IndexReader in org.apache.lucene.search.function
Fields in org.apache.lucene.search.function declared as IndexReader Modifier and Type Field Description protected IndexReaderCustomScoreProvider. readerMethods in org.apache.lucene.search.function with parameters of type IndexReader Modifier and Type Method Description DocValuesByteFieldSource. getCachedFieldValues(FieldCache cache, String field, IndexReader reader)abstract DocValuesFieldCacheSource. getCachedFieldValues(FieldCache cache, String field, IndexReader reader)Return cached DocValues for input field and reader.DocValuesFloatFieldSource. getCachedFieldValues(FieldCache cache, String field, IndexReader reader)DocValuesIntFieldSource. getCachedFieldValues(FieldCache cache, String field, IndexReader reader)DocValuesShortFieldSource. getCachedFieldValues(FieldCache cache, String field, IndexReader reader)protected CustomScoreProviderCustomScoreQuery. getCustomScoreProvider(IndexReader reader)Returns aCustomScoreProviderthat calculates the custom scores for the givenIndexReader.DocValuesFieldCacheSource. getValues(IndexReader reader)DocValuesOrdFieldSource. getValues(IndexReader reader)DocValuesReverseOrdFieldSource. getValues(IndexReader reader)abstract DocValuesValueSource. getValues(IndexReader reader)Return the DocValues used by the function query.QueryCustomScoreQuery. rewrite(IndexReader reader)QueryValueSourceQuery. rewrite(IndexReader reader)Constructors in org.apache.lucene.search.function with parameters of type IndexReader Constructor Description CustomScoreProvider(IndexReader reader)Creates a new instance of the provider class for the givenIndexReader. -
Uses of IndexReader in org.apache.lucene.search.grouping
Methods in org.apache.lucene.search.grouping with parameters of type IndexReader Modifier and Type Method Description voidAbstractFirstPassGroupingCollector. setNextReader(IndexReader reader, int docBase)voidAbstractSecondPassGroupingCollector. setNextReader(IndexReader reader, int docBase)voidBlockGroupingCollector. setNextReader(IndexReader reader, int docBase)voidTermAllGroupsCollector. setNextReader(IndexReader reader, int docBase)voidTermFirstPassGroupingCollector. setNextReader(IndexReader reader, int docBase)voidTermSecondPassGroupingCollector. setNextReader(IndexReader reader, int docBase) -
Uses of IndexReader in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight that return IndexReader Modifier and Type Method Description protected IndexReaderWeightedSpanTermExtractor. getReaderForField(String field)Methods in org.apache.lucene.search.highlight with parameters of type IndexReader Modifier and Type Method Description static TokenStreamTokenSources. getAnyTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer)A convenience method that tries a number of approaches to getting a token stream.static TokenStreamTokenSources. getAnyTokenStream(IndexReader reader, int docId, String field, Document doc, Analyzer analyzer)A convenience method that tries to first get a TermPositionVector for the specified docId, then, falls back to using the passed inDocumentto retrieve the TokenStream.static WeightedTerm[]QueryTermExtractor. getIdfWeightedTerms(Query query, IndexReader reader, String fieldName)Extracts all terms texts of a given Query into an array of WeightedTermsstatic TokenStreamTokenSources. getTokenStream(IndexReader reader, int docId, String field)static TokenStreamTokenSources. getTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer)Map<String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTermsWithScores(Query query, TokenStream tokenStream, String fieldName, IndexReader reader)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.Constructors in org.apache.lucene.search.highlight with parameters of type IndexReader Constructor Description QueryScorer(Query query, IndexReader reader, String field)QueryScorer(Query query, IndexReader reader, String field, String defaultField)QueryTermScorer(Query query, IndexReader reader, String fieldName) -
Uses of IndexReader in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type IndexReader Modifier and Type Method Description DocIdSetRawTermFilter. getDocIdSet(IndexReader reader)QueryToChildBlockJoinQuery. rewrite(IndexReader reader)QueryToParentBlockJoinQuery. rewrite(IndexReader reader)voidToParentBlockJoinCollector. setNextReader(IndexReader reader, int docBase) -
Uses of IndexReader in org.apache.lucene.search.payloads
Methods in org.apache.lucene.search.payloads with parameters of type IndexReader Modifier and Type Method Description ExplanationPayloadTermQuery.PayloadTermWeight. explain(IndexReader reader, int doc)ScorerPayloadNearQuery.PayloadNearSpanWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)ScorerPayloadTermQuery.PayloadTermWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)Constructors in org.apache.lucene.search.payloads with parameters of type IndexReader Constructor Description PayloadSpanUtil(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.search.regex
Methods in org.apache.lucene.search.regex with parameters of type IndexReader Modifier and Type Method Description protected FilteredTermEnumRegexQuery. getEnum(IndexReader reader)Constructors in org.apache.lucene.search.regex with parameters of type IndexReader Constructor Description RegexTermEnum(IndexReader reader, Term term, RegexCapabilities regexImpl) -
Uses of IndexReader in org.apache.lucene.search.similar
Methods in org.apache.lucene.search.similar with parameters of type IndexReader Modifier and Type Method Description QueryMoreLikeThisQuery. rewrite(IndexReader reader)Constructors in org.apache.lucene.search.similar with parameters of type IndexReader Constructor Description MoreLikeThis(IndexReader ir)Constructor requiring an IndexReader.MoreLikeThis(IndexReader ir, Similarity sim) -
Uses of IndexReader in org.apache.lucene.search.spans
Methods in org.apache.lucene.search.spans with parameters of type IndexReader Modifier and Type Method Description ExplanationSpanWeight. explain(IndexReader reader, int doc)SpansFieldMaskingSpanQuery. getSpans(IndexReader reader)SpansSpanMultiTermQueryWrapper. getSpans(IndexReader reader)SpansSpanNearQuery. getSpans(IndexReader reader)SpansSpanNotQuery. getSpans(IndexReader reader)SpansSpanOrQuery. getSpans(IndexReader reader)SpansSpanPositionCheckQuery. getSpans(IndexReader reader)abstract SpansSpanQuery. getSpans(IndexReader reader)Expert: Returns the matches for this query in an index.SpansSpanTermQuery. getSpans(IndexReader reader)QueryFieldMaskingSpanQuery. rewrite(IndexReader reader)QuerySpanMultiTermQueryWrapper. rewrite(IndexReader reader)abstract SpanQuerySpanMultiTermQueryWrapper.SpanRewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)SpanQuerySpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite. rewrite(IndexReader reader, MultiTermQuery query)QuerySpanNearQuery. rewrite(IndexReader reader)QuerySpanNotQuery. rewrite(IndexReader reader)QuerySpanOrQuery. rewrite(IndexReader reader)QuerySpanPositionCheckQuery. rewrite(IndexReader reader)ScorerSpanWeight. scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)Constructors in org.apache.lucene.search.spans with parameters of type IndexReader Constructor Description NearSpansOrdered(SpanNearQuery spanNearQuery, IndexReader reader)NearSpansOrdered(SpanNearQuery spanNearQuery, IndexReader reader, boolean collectPayloads)NearSpansUnordered(SpanNearQuery query, IndexReader reader)PositionCheckSpan(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell with parameters of type IndexReader Modifier and Type Method Description String[]SpellChecker. suggestSimilar(String word, int numSug, IndexReader ir, String field, boolean morePopular)Deprecated.use suggestSimilar(String, int, IndexReader, String, SuggestMode) SuggestMode.SUGGEST_WHEN_NOT_IN_INDEX instead of morePopular=false SuggestMode.SuGGEST_MORE_POPULAR instead of morePopular=trueString[]SpellChecker. suggestSimilar(String word, int numSug, IndexReader ir, String field, boolean morePopular, float accuracy)Deprecated.use suggestSimilar(String, int, IndexReader, String, SuggestMode, float) SuggestMode.SUGGEST_WHEN_NOT_IN_INDEX instead of morePopular=false SuggestMode.SuGGEST_MORE_POPULAR instead of morePopular=trueString[]SpellChecker. suggestSimilar(String word, int numSug, IndexReader ir, String field, SuggestMode suggestMode)String[]SpellChecker. suggestSimilar(String word, int numSug, IndexReader ir, String field, SuggestMode suggestMode, float accuracy)Suggest similar words (optionally restricted to a field of an index).Constructors in org.apache.lucene.search.spell with parameters of type IndexReader Constructor Description HighFrequencyDictionary(IndexReader reader, String field, float thresh)LuceneDictionary(IndexReader reader, String field) -
Uses of IndexReader in org.apache.lucene.search.vectorhighlight
Methods in org.apache.lucene.search.vectorhighlight with parameters of type IndexReader Modifier and Type Method Description StringBaseFragmentsBuilder. createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList)StringBaseFragmentsBuilder. createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, String[] preTags, String[] postTags, Encoder encoder)StringFragmentsBuilder. createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList)create a fragment.StringFragmentsBuilder. createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, String[] preTags, String[] postTags, Encoder encoder)create a fragment.String[]BaseFragmentsBuilder. createFragments(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments)String[]BaseFragmentsBuilder. createFragments(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments, String[] preTags, String[] postTags, Encoder encoder)String[]FragmentsBuilder. createFragments(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments)create multiple fragments.String[]FragmentsBuilder. createFragments(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments, String[] preTags, String[] postTags, Encoder encoder)create multiple fragments.StringFastVectorHighlighter. getBestFragment(FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize)return the best fragment.StringFastVectorHighlighter. getBestFragment(FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize, FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder, String[] preTags, String[] postTags, Encoder encoder)return the best fragment.String[]FastVectorHighlighter. getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize, int maxNumFragments)return the best fragments.String[]FastVectorHighlighter. getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize, int maxNumFragments, FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder, String[] preTags, String[] postTags, Encoder encoder)return the best fragments.FieldQueryFastVectorHighlighter. getFieldQuery(Query query, IndexReader reader)create aFieldQueryobject.protected Field[]BaseFragmentsBuilder. getFields(IndexReader reader, int docId, String fieldName)protected String[]BaseFragmentsBuilder. getFieldValues(IndexReader reader, int docId, String fieldName)Deprecated.Constructors in org.apache.lucene.search.vectorhighlight with parameters of type IndexReader Constructor Description FieldTermStack(IndexReader reader, int docId, String fieldName, FieldQuery fieldQuery)a constructor. -
Uses of IndexReader in org.apache.lucene.spatial.geohash
Methods in org.apache.lucene.spatial.geohash with parameters of type IndexReader Modifier and Type Method Description DocIdSetGeoHashDistanceFilter. getDocIdSet(IndexReader reader)Deprecated. -
Uses of IndexReader in org.apache.lucene.spatial.tier
Methods in org.apache.lucene.spatial.tier with parameters of type IndexReader Modifier and Type Method Description DocIdSetCartesianShapeFilter. getDocIdSet(IndexReader reader)Deprecated.DocIdSetLatLongDistanceFilter. getDocIdSet(IndexReader reader)Deprecated. -
Uses of IndexReader in org.apache.lucene.store.instantiated
Subclasses of IndexReader in org.apache.lucene.store.instantiated Modifier and Type Class Description classInstantiatedIndexReaderDeprecated.contrib/instantiated will be removed in 4.0; you can use the memory codec to hold all postings in RAMMethods in org.apache.lucene.store.instantiated with parameters of type IndexReader Modifier and Type Method Description voidInstantiatedIndexWriter. addIndexes(IndexReader[] readers)Deprecated.Constructors in org.apache.lucene.store.instantiated with parameters of type IndexReader Constructor Description InstantiatedIndex(IndexReader sourceIndexReader)Deprecated.Creates a new instantiated index that looks just like the index in a specific state as represented by a reader.InstantiatedIndex(IndexReader sourceIndexReader, Set<String> fields)Deprecated.Creates a new instantiated index that looks just like the index in a specific state as represented by a reader. -
Uses of IndexReader in org.apache.lucene.util
Methods in org.apache.lucene.util with parameters of type IndexReader Modifier and Type Method Description protected abstract voidReaderUtil.Gather. add(int base, IndexReader r)static voidReaderUtil. gatherSubReaders(List<IndexReader> allSubReaders, IndexReader reader)Gathers sub-readers from reader into a List.static Collection<String>ReaderUtil. getIndexedFields(IndexReader reader)static FieldInfosReaderUtil. getMergedFieldInfos(IndexReader reader)Call this to get the (merged) FieldInfos for a composite readerstatic IndexSearcherLuceneTestCase. newSearcher(IndexReader r)create a new searcher over the reader.static IndexSearcherLuceneTestCase. newSearcher(IndexReader r, boolean maybeWrap)create a new searcher over the reader.Method parameters in org.apache.lucene.util with type arguments of type IndexReader Modifier and Type Method Description static voidReaderUtil. 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 Constructor Description Gather(IndexReader r)
-