Uses of Class
org.apache.lucene.index.IndexReader
-
-
Uses of IndexReader in org.apache.lucene.index
Classes in org.apache.lucene.index with type parameters of type IndexReader Modifier and Type Class Description classBaseCompositeReader<R extends IndexReader>Base class for implementingCompositeReaders based on an array of sub-readers.Subclasses of IndexReader in org.apache.lucene.index Modifier and Type Class Description classBaseCompositeReader<R extends IndexReader>Base class for implementingCompositeReaders based on an array of sub-readers.classCodecReaderLeafReader implemented by codec APIs.classCompositeReaderInstances of this reader type can only be used to get stored fields from the underlying LeafReaders, but it is not possible to directly retrieve postings.classDirectoryReaderDirectoryReader is an implementation ofCompositeReaderthat can read indexes in aDirectory.classFilterCodecReaderAFilterCodecReadercontains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classFilterDirectoryReaderA FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.classFilterLeafReaderAFilterLeafReadercontains another LeafReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classLeafReaderLeafReaderis an abstract class, providing an interface for accessing an index.classMultiReaderACompositeReaderwhich reads multiple indexes, appending their content.classSegmentReaderIndexReader implementation over a single segment.classSoftDeletesDirectoryReaderWrapperThis reader filters out documents that have a doc values value in the given field and treat these documents as soft deleted.classStandardDirectoryReaderDefault implementation ofDirectoryReader.Methods in org.apache.lucene.index that return IndexReader Modifier and Type Method Description abstract IndexReaderIndexReaderContext. reader()Returns theIndexReader, this context represents.Methods in org.apache.lucene.index that return types with arguments of type IndexReader Modifier and Type Method Description protected abstract List<? extends IndexReader>CompositeReader. getSequentialSubReaders()Expert: returns the sequential sub readers that this reader is logically composed of.Methods in org.apache.lucene.index with parameters of type IndexReader Modifier and Type Method Description static intPointValues. getDocCount(IndexReader reader, String field)Return the cumulated number of docs that have points across all leaves of the givenIndexReader.static Collection<String>FieldInfos. getIndexedFields(IndexReader reader)Returns a set of names of fields that have a terms index.static byte[]PointValues. getMaxPackedValue(IndexReader reader, String field)Return the maximum packed values across all leaves of the givenIndexReader.static FieldInfosFieldInfos. getMergedFieldInfos(IndexReader reader)Call this to get the (merged) FieldInfos for a composite reader.static byte[]PointValues. getMinPackedValue(IndexReader reader, String field)Return the minimum packed values across all leaves of the givenIndexReader.static PostingsEnumMultiTerms. getTermPostingsEnum(IndexReader r, String field, BytesRef term)ReturnsPostingsEnumfor the specified field and term.static PostingsEnumMultiTerms. getTermPostingsEnum(IndexReader r, String field, BytesRef term, int flags)ReturnsPostingsEnumfor the specified field and term, with control over whether freqs, positions, offsets or payloads are required.static TermsMultiTerms. getTerms(IndexReader r, String field)This method may return null if the field does not exist or if it has no terms.voidIndexReader. registerParentReader(IndexReader reader)Expert: This method is called byIndexReaders which wrap other readers (e.g.static longPointValues. size(IndexReader reader, String field)Return the cumulated number of points across all leaves of the givenIndexReader.longIndexWriter. tryDeleteDocument(IndexReader readerIn, int docID)Expert: attempts to delete by document ID, as long as the provided reader is a near-real-time reader (fromDirectoryReader.open(IndexWriter)).longIndexWriter. tryUpdateDocValue(IndexReader readerIn, int docID, Field... fields)Expert: attempts to update doc values by document ID, as long as the provided reader is a near-real-time reader (fromDirectoryReader.open(IndexWriter)).Constructors in org.apache.lucene.index with parameters of type IndexReader Constructor Description BaseCompositeReader(R[] subReaders)Constructs aBaseCompositeReaderon the given subReaders.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.queries
Methods in org.apache.lucene.queries with parameters of type IndexReader Modifier and Type Method Description protected voidBlendedTermQuery. blend(TermStates[] contexts, int maxDoc, IndexReader reader)voidCommonTermsQuery. collectTermStates(IndexReader reader, List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms)QueryBlendedTermQuery. rewrite(IndexReader reader)QueryCommonTermsQuery. rewrite(IndexReader reader)QueryMinDocQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queries.function
Methods in org.apache.lucene.queries.function with parameters of type IndexReader Modifier and Type Method Description QueryFunctionScoreQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.search
Methods in org.apache.lucene.search that return IndexReader Modifier and Type Method Description IndexReaderIndexSearcher. getIndexReader()Return theIndexReaderthis searches.Methods in org.apache.lucene.search with parameters of type IndexReader Modifier and Type Method Description static IndexSearcherSearcherManager. getSearcher(SearcherFactory searcherFactory, IndexReader reader, IndexReader previousReader)Expert: creates a searcher from the providedIndexReaderusing the providedSearcherFactory.IndexSearcherSearcherFactory. newSearcher(IndexReader reader, IndexReader previousReader)Returns a new IndexSearcher over the given reader.QueryBlendedTermQuery. rewrite(IndexReader reader)QueryBooleanQuery. rewrite(IndexReader reader)QueryBoostQuery. rewrite(IndexReader reader)QueryConstantScoreQuery. rewrite(IndexReader reader)QueryCoveringQuery. rewrite(IndexReader reader)QueryDisjunctionMaxQuery. rewrite(IndexReader reader)Optimize our representation and our subqueries representationsQueryIndexOrDocValuesQuery. rewrite(IndexReader reader)QueryMultiPhraseQuery. rewrite(IndexReader reader)QueryMultiTermQuery. rewrite(IndexReader reader)To rewrite to a simpler form, instead return a simpler enum fromMultiTermQuery.getTermsEnum(Terms, AttributeSource).abstract QueryMultiTermQuery.RewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)QueryPhraseQuery. rewrite(IndexReader reader)QueryQuery. rewrite(IndexReader reader)Expert: called to re-write queries into primitive queries.QueryScoringRewrite. rewrite(IndexReader reader, MultiTermQuery query)QuerySynonymQuery. rewrite(IndexReader reader)QueryTermInSetQuery. rewrite(IndexReader reader)QueryTopTermsRewrite. rewrite(IndexReader reader, MultiTermQuery query)Constructors in org.apache.lucene.search with parameters of type IndexReader Constructor Description IndexSearcher(IndexReader r)Creates a searcher searching the provided index.IndexSearcher(IndexReader r, Executor executor)Runs searches for each segment separately, using the provided Executor. -
Uses of IndexReader in org.apache.lucene.search.highlight
Subclasses of IndexReader in org.apache.lucene.search.highlight Modifier and Type Class Description classTermVectorLeafReaderWraps a Terms with aLeafReader, typically from term vectors.Methods in org.apache.lucene.search.highlight with parameters of type IndexReader Modifier and Type Method Description Map<String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTermsWithScores(Query query, float boost, 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) -
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 QueryParentChildrenBlockJoinQuery. rewrite(IndexReader reader)QueryToChildBlockJoinQuery. rewrite(IndexReader reader)QueryToParentBlockJoinQuery. rewrite(IndexReader reader) -
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 QueryFieldMaskingSpanQuery. rewrite(IndexReader reader)QuerySpanBoostQuery. 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) -
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 SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir)protected Collection<DirectSpellChecker.ScoreTerm>DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir, int docfreq, int editDistance, float accuracy, CharsRefBuilder spare)Provide spelling corrections based on several parameters.SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir, SuggestMode suggestMode)SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir, SuggestMode suggestMode, float accuracy)Suggest similar words.String[]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). -
Uses of IndexReader in org.apache.lucene.search.suggest.document
Methods in org.apache.lucene.search.suggest.document with parameters of type IndexReader Modifier and Type Method Description QueryCompletionQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.search.uhighlight
Subclasses of IndexReader in org.apache.lucene.search.uhighlight Modifier and Type Class Description classOverlaySingleDocTermsLeafReaderOverlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is consulted. -
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.protected voidCustomFieldQuery. flatten(Query sourceQuery, IndexReader reader, Collection<Query> flatQueries, float boost)protected voidFieldQuery. flatten(Query sourceQuery, IndexReader reader, Collection<Query> flatQueries, float boost)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.String[]FastVectorHighlighter. getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, String storedField, Set<String> matchedFields, 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)Constructors in org.apache.lucene.search.vectorhighlight with parameters of type IndexReader Constructor Description CustomFieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch)CustomFieldQuery(Query query, IndexReader reader, FastVectorHighlighter highlighter)FieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch)FieldTermStack(IndexReader reader, int docId, String fieldName, FieldQuery fieldQuery)a constructor. -
Uses of IndexReader in org.elasticsearch.common.lucene.index
Subclasses of IndexReader in org.elasticsearch.common.lucene.index Modifier and Type Class Description classElasticsearchDirectoryReaderAFilterDirectoryReaderthat exposes Elasticsearch internal per shard / index information like the shard ID.classElasticsearchLeafReaderAFilterLeafReaderthat exposes Elasticsearch internal per shard / index information like the shard ID.Constructors in org.elasticsearch.common.lucene.index with parameters of type IndexReader Constructor Description FilterableTermsEnum(IndexReader reader, String field, int docsEnumFlag, Query filter)FreqTermsEnum(IndexReader reader, String field, boolean needDocFreq, boolean needTotalTermFreq, Query filter, BigArrays bigArrays) -
Uses of IndexReader in org.elasticsearch.common.lucene.search
Methods in org.elasticsearch.common.lucene.search with parameters of type IndexReader Modifier and Type Method Description QueryMoreLikeThisQuery. rewrite(IndexReader reader)QueryMultiPhrasePrefixQuery. rewrite(IndexReader reader)SpanQuerySpanBooleanQueryRewriteWithMaxClause. rewrite(IndexReader reader, MultiTermQuery query)Constructors in org.elasticsearch.common.lucene.search with parameters of type IndexReader Constructor Description XMoreLikeThis(IndexReader ir)Constructor requiring an IndexReader.XMoreLikeThis(IndexReader ir, TFIDFSimilarity sim) -
Uses of IndexReader in org.elasticsearch.common.lucene.search.function
Methods in org.elasticsearch.common.lucene.search.function with parameters of type IndexReader Modifier and Type Method Description protected ScoreFunctionFunctionScoreQuery.FilterScoreFunction. rewrite(IndexReader reader)QueryFunctionScoreQuery. rewrite(IndexReader reader)protected ScoreFunctionScoreFunction. rewrite(IndexReader reader)QueryScriptScoreQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.elasticsearch.common.lucene.uid
Methods in org.elasticsearch.common.lucene.uid with parameters of type IndexReader Modifier and Type Method Description static VersionsAndSeqNoResolver.DocIdAndSeqNoVersionsAndSeqNoResolver. loadDocIdAndSeqNo(IndexReader reader, Term term)Loads the internal docId and sequence number of the latest copy for a given uid from the provided reader.static VersionsAndSeqNoResolver.DocIdAndVersionVersionsAndSeqNoResolver. loadDocIdAndVersion(IndexReader reader, Term term, boolean loadSeqNo)Load the internal doc ID and version for the uid from the reader, returning null if the uid wasn't found, a doc ID and a version otherwise -
Uses of IndexReader in org.elasticsearch.index.engine
Methods in org.elasticsearch.index.engine with parameters of type IndexReader Modifier and Type Method Description protected DocsStatsEngine. docsStats(IndexReader indexReader)Constructors in org.elasticsearch.index.engine with parameters of type IndexReader Constructor Description Searcher(String source, IndexReader reader, Similarity similarity, QueryCache queryCache, QueryCachingPolicy queryCachingPolicy, Closeable onClose) -
Uses of IndexReader in org.elasticsearch.index.fielddata.ordinals
Methods in org.elasticsearch.index.fielddata.ordinals with parameters of type IndexReader Modifier and Type Method Description static IndexOrdinalsFieldDataGlobalOrdinalsBuilder. build(IndexReader indexReader, IndexOrdinalsFieldData indexFieldData, IndexSettings indexSettings, CircuitBreakerService breakerService, org.apache.logging.log4j.Logger logger, Function<SortedSetDocValues,ScriptDocValues<?>> scriptFunction)Build global ordinals for the providedIndexReader.static IndexOrdinalsFieldDataGlobalOrdinalsBuilder. buildEmpty(IndexSettings indexSettings, IndexReader indexReader, IndexOrdinalsFieldData indexFieldData) -
Uses of IndexReader in org.elasticsearch.index.fielddata.plain
Methods in org.elasticsearch.index.fielddata.plain with parameters of type IndexReader Modifier and Type Method Description voidDocValuesIndexFieldData. clear(IndexReader reader) -
Uses of IndexReader in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper with parameters of type IndexReader Modifier and Type Method Description MappedFieldType.RelationDateFieldMapper.DateFieldType. isFieldWithinQuery(IndexReader reader, Object from, Object to, boolean includeLower, boolean includeUpper, ZoneId timeZone, DateMathParser dateParser, QueryRewriteContext context)MappedFieldType.RelationMappedFieldType. isFieldWithinQuery(IndexReader reader, Object from, Object to, boolean includeLower, boolean includeUpper, ZoneId timeZone, DateMathParser dateMathParser, QueryRewriteContext context)Return whether all values of the givenIndexReaderare within the range, outside the range or cross the range.QueryTypeFieldMapper.TypesQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query that return IndexReader Modifier and Type Method Description IndexReaderQueryShardContext. getIndexReader()Return the currentIndexReader, ornullif no index reader is available, for instance if this rewrite context is used to index queries (percolation). -
Uses of IndexReader in org.elasticsearch.index.search
Methods in org.elasticsearch.index.search with parameters of type IndexReader Modifier and Type Method Description QueryESToParentBlockJoinQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.elasticsearch.index.termvectors
Methods in org.elasticsearch.index.termvectors with parameters of type IndexReader Modifier and Type Method Description static FieldsTermVectorsService. fields(IndexReader reader) -
Uses of IndexReader in org.elasticsearch.search.fetch
Methods in org.elasticsearch.search.fetch that return IndexReader Modifier and Type Method Description IndexReaderFetchSubPhase.HitContext. topLevelReader() -
Uses of IndexReader in org.elasticsearch.search.fetch.subphase.highlight
Methods in org.elasticsearch.search.fetch.subphase.highlight with parameters of type IndexReader Modifier and Type Method Description protected Field[]SourceScoreOrderFragmentsBuilder. getFields(IndexReader reader, int docId, String fieldName)protected Field[]SourceSimpleFragmentsBuilder. getFields(IndexReader reader, int docId, String fieldName)Constructors in org.elasticsearch.search.fetch.subphase.highlight with parameters of type IndexReader Constructor Description CustomQueryScorer(Query query, IndexReader reader, String field)CustomQueryScorer(Query query, IndexReader reader, String field, String defaultField) -
Uses of IndexReader in org.elasticsearch.search.internal
Constructors in org.elasticsearch.search.internal with parameters of type IndexReader Constructor Description ContextIndexSearcher(IndexReader reader, Similarity similarity, QueryCache queryCache, QueryCachingPolicy queryCachingPolicy) -
Uses of IndexReader in org.elasticsearch.search.suggest.phrase
Fields in org.elasticsearch.search.suggest.phrase declared as IndexReader Modifier and Type Field Description protected IndexReaderWordScorer. readerMethods in org.elasticsearch.search.suggest.phrase with parameters of type IndexReader Modifier and Type Method Description WordScorerWordScorer.WordScorerFactory. newScorer(IndexReader reader, Terms terms, String field, double realWordLikelihood, BytesRef separator)Constructors in org.elasticsearch.search.suggest.phrase with parameters of type IndexReader Constructor Description DirectCandidateGenerator(DirectSpellChecker spellchecker, String field, SuggestMode suggestMode, IndexReader reader, double nonErrorLikelihood, int numCandidates)DirectCandidateGenerator(DirectSpellChecker spellchecker, String field, SuggestMode suggestMode, IndexReader reader, double nonErrorLikelihood, int numCandidates, Analyzer preFilter, Analyzer postFilter, Terms terms)LinearInterpolatingScorer(IndexReader reader, Terms terms, String field, double realWordLikelihood, BytesRef separator, double trigramLambda, double bigramLambda, double unigramLambda)WordScorer(IndexReader reader, String field, double realWordLikelihood, BytesRef separator)WordScorer(IndexReader reader, Terms terms, String field, double realWordLikelihood, BytesRef separator)
-