Uses of Class
org.apache.lucene.index.IndexReader
Packages that use IndexReader
Package
Description
Automatically filter high-frequency stopwords.
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a
structured document).
Uses already seen data (the indexed documents) to classify new documents.
Utilities for evaluation, data preparation, etc.
Code to maintain and access indices.
High-performance single-document main memory Apache Lucene fulltext search index.
Miscellaneous Lucene utilities that don't really fit anywhere else.
Misc extensions of the Document/Field API.
Misc index tools and index support.
Monitoring framework
Filters and Queries that add to core Lucene.
Queries that compute score based upon a function.
Document similarity query generators.
The calculus of spans.
This package contains SrndQuery and its subclasses.
Additional queries (some may have caveats or limitations)
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Highlighting search terms.
Support for index-time and query-time joins.
This package contains several components useful to build a highlighter on top of the
Matches API.Suggest alternate spellings for words.
Support for Autocomplete/Autosuggest
Support for document suggestion
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
Another highlighter implementation based on term vectors.
-
Uses of IndexReader in org.apache.lucene.analysis.query
Constructors in org.apache.lucene.analysis.query with parameters of type IndexReaderModifierConstructorDescriptionQueryAutoStopWordAnalyzer(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(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(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(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(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.classification
Fields in org.apache.lucene.classification declared as IndexReaderModifier and TypeFieldDescriptionprivate final IndexReaderBM25NBClassifier.indexReaderIndexReaderused to access theClassifier's indexprotected final IndexReaderSimpleNaiveBayesClassifier.indexReaderIndexReaderused to access theClassifier's indexConstructors in org.apache.lucene.classification with parameters of type IndexReaderModifierConstructorDescriptionBM25NBClassifier(IndexReader indexReader, Analyzer analyzer, Query query, String classFieldName, String... textFieldNames) Creates a new NaiveBayes classifier.BooleanPerceptronClassifier(IndexReader indexReader, Analyzer analyzer, Query query, Integer batchSize, Double bias, String classFieldName, String textFieldName) Creates aBooleanPerceptronClassifierCachingNaiveBayesClassifier(IndexReader indexReader, Analyzer analyzer, Query query, String classFieldName, String... textFieldNames) Creates a new NaiveBayes classifier with inside caching.KNearestFuzzyClassifier(IndexReader indexReader, Similarity similarity, Analyzer analyzer, Query query, int k, String classFieldName, String... textFieldNames) Creates aKNearestFuzzyClassifier.KNearestNeighborClassifier(IndexReader indexReader, Similarity similarity, Analyzer analyzer, Query query, int k, int minDocsFreq, int minTermFreq, String classFieldName, String... textFieldNames) Creates aKNearestNeighborClassifier.SimpleNaiveBayesClassifier(IndexReader indexReader, Analyzer analyzer, Query query, String classFieldName, String... textFieldNames) Creates a new NaiveBayes classifier. -
Uses of IndexReader in org.apache.lucene.classification.document
Constructors in org.apache.lucene.classification.document with parameters of type IndexReaderModifierConstructorDescriptionKNearestNeighborDocumentClassifier(IndexReader indexReader, Similarity similarity, Query query, int k, int minDocsFreq, int minTermFreq, String classFieldName, Map<String, Analyzer> field2analyzer, String... textFieldNames) Creates aKNearestNeighborClassifier.SimpleNaiveBayesDocumentClassifier(IndexReader indexReader, Query query, String classFieldName, Map<String, Analyzer> field2analyzer, String... textFieldNames) Creates a new NaiveBayes classifier. -
Uses of IndexReader in org.apache.lucene.classification.utils
Methods in org.apache.lucene.classification.utils with parameters of type IndexReaderModifier and TypeMethodDescriptionprivate voidNearestFuzzyQuery.addTerms(IndexReader reader, NearestFuzzyQuery.FieldVals f, NearestFuzzyQuery.ScoreTermQueue q) static <T> ConfusionMatrixGenerator.ConfusionMatrixConfusionMatrixGenerator.getConfusionMatrix(IndexReader reader, Classifier<T> classifier, String classFieldName, String textFieldName, long timeoutMilliseconds) get theConfusionMatrixGenerator.ConfusionMatrixof a givenClassifier, generated on the givenIndexReader, class and text fields.private QueryNearestFuzzyQuery.newTermQuery(IndexReader reader, Term term) voidDatasetSplitter.split(IndexReader originalIndex, Directory trainingIndex, Directory testIndex, Directory crossValidationIndex, Analyzer analyzer, boolean termVectors, String classFieldName, String... fieldNames) Split a given index into 3 indexes for training, test and cross validation tasks respectively -
Uses of IndexReader in org.apache.lucene.index
Classes in org.apache.lucene.index with type parameters of type IndexReaderModifier and TypeClassDescriptionclassBaseCompositeReader<R extends IndexReader>Base class for implementingCompositeReaders based on an array of sub-readers.Subclasses of IndexReader in org.apache.lucene.indexModifier and TypeClassDescriptionclassBaseCompositeReader<R extends IndexReader>Base class for implementingCompositeReaders based on an array of sub-readers.classLeafReader implemented by codec APIs.classInstances 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.classDirectoryReader is an implementation ofCompositeReaderthat can read indexes in aDirectory.(package private) classclassTheExitableDirectoryReaderwraps a real indexDirectoryReaderand allows for aQueryTimeoutimplementation object to be checked periodically to see if the thread should exit or not.static classWrapper class for another FilterAtomicReader.classAFilterCodecReadercontains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classA FilterDirectoryReader wraps another DirectoryReader, allowing implementations to transform or extend it.classAFilterLeafReadercontains another LeafReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classLeafReaderis an abstract class, providing an interface for accessing an index.classACompositeReaderwhich reads multiple indexes, appending their content.classAnCompositeReaderwhich reads multiple, parallel indexes.classAnLeafReaderwhich reads multiple, parallel indexes.final classIndexReader implementation over a single segment.(package private) final classA mergedCodecReaderview of multipleCodecReader.final classThis reader filters out documents that have a doc values value in the given field and treat these documents as soft deleted.(package private) static final class(package private) static final classfinal classAnCodecReaderwhich supports sorting documents by a givenSort.final classDefault implementation ofDirectoryReader.Fields in org.apache.lucene.index declared as IndexReaderFields in org.apache.lucene.index with type parameters of type IndexReaderModifier and TypeFieldDescriptionprivate final Set<IndexReader> ParallelCompositeReader.completeReaderSetprivate final Set<IndexReader> IndexReader.parentReadersMethods in org.apache.lucene.index that return IndexReaderModifier and TypeMethodDescriptionabstract IndexReaderIndexReaderContext.reader()Returns theIndexReader, this context represents.Methods in org.apache.lucene.index that return types with arguments of type IndexReaderModifier and TypeMethodDescriptionprotected 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 IndexReaderModifier and TypeMethodDescriptionprivate IndexReaderContextCompositeReaderContext.Builder.build(CompositeReaderContext parent, IndexReader reader, int ord, int docBase) static BinaryDocValuesMultiDocValues.getBinaryValues(IndexReader r, String field) Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)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 BitsMultiBits.getLiveDocs(IndexReader reader) Returns a singleBitsinstance for this reader, merging live Documents on the fly.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 NumericDocValuesMultiDocValues.getNormValues(IndexReader r, String field) Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).static NumericDocValuesMultiDocValues.getNumericValues(IndexReader r, String field) Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)static SortedNumericDocValuesMultiDocValues.getSortedNumericValues(IndexReader r, String field) Returns a SortedNumericDocValues for a reader's docvalues (potentially merging on-the-fly)static SortedSetDocValuesMultiDocValues.getSortedSetValues(IndexReader r, String field) Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).static SortedDocValuesMultiDocValues.getSortedValues(IndexReader r, String field) Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).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.final 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)).private longIndexWriter.tryModifyDocument(IndexReader readerIn, int docID, IndexWriter.DocModifier toApply) 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 IndexReaderModifierConstructorDescriptionprotectedBaseCompositeReader(R[] subReaders, Comparator<R> subReadersSorter) 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.MultiReader(IndexReader[] subReaders, Comparator<IndexReader> subReadersSorter, boolean closeSubReaders) Construct a MultiReader aggregating the named set of (sub)readers.Constructor parameters in org.apache.lucene.index with type arguments of type IndexReaderModifierConstructorDescriptionMultiReader(IndexReader[] subReaders, Comparator<IndexReader> subReadersSorter, boolean closeSubReaders) Construct a MultiReader aggregating the named set of (sub)readers. -
Uses of IndexReader in org.apache.lucene.index.memory
Subclasses of IndexReader in org.apache.lucene.index.memoryModifier and TypeClassDescriptionprivate final classSearch support for Lucene framework integration; implements all methods required by the Lucene IndexReader contracts. -
Uses of IndexReader in org.apache.lucene.misc
Methods in org.apache.lucene.misc with parameters of type IndexReaderModifier and TypeMethodDescriptionstatic TermStats[]HighFreqTerms.getHighFreqTerms(IndexReader reader, int numTerms, String field, Comparator<TermStats> comparator) Returns TermStats[] ordered by the specified comparator -
Uses of IndexReader in org.apache.lucene.misc.document
Fields in org.apache.lucene.misc.document declared as IndexReaderConstructors in org.apache.lucene.misc.document with parameters of type IndexReader -
Uses of IndexReader in org.apache.lucene.misc.index
Subclasses of IndexReader in org.apache.lucene.misc.indexModifier and TypeClassDescriptionprivate static classprivate static final classThis class emulates deletions on the underlying index.private static final classprivate static classMethods in org.apache.lucene.misc.index with parameters of type IndexReaderModifier and TypeMethodDescriptionprivate static voidIndexRearranger.addOneSegment(IndexWriter writer, IndexReader reader, IndexRearranger.DocumentSelector selector) private static MultiPassIndexSplitter.FakeDeleteLeafIndexReader[]MultiPassIndexSplitter.FakeDeleteIndexReader.initSubReaders(IndexReader reader) voidMultiPassIndexSplitter.split(IndexReader in, Directory[] outputs, boolean seq) Split source index into multiple parts.Constructors in org.apache.lucene.misc.index with parameters of type IndexReader -
Uses of IndexReader in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor with parameters of type IndexReaderModifier and TypeMethodDescriptionTermsHashBuilder.newSearcher(IndexReader reader, IndexReader previousReader) Constructors in org.apache.lucene.monitor with parameters of type IndexReader -
Uses of IndexReader in org.apache.lucene.queries
Methods in org.apache.lucene.queries with parameters of type IndexReaderModifier and TypeMethodDescriptionvoidCommonTermsQuery.collectTermStates(IndexReader reader, List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms) -
Uses of IndexReader in org.apache.lucene.queries.function
Fields in org.apache.lucene.queries.function declared as IndexReaderModifier and TypeFieldDescription(package private) final IndexReaderFunctionQuery.AllScorer.readerMethods in org.apache.lucene.queries.function with parameters of type IndexReaderModifier and TypeMethodDescriptiondoubleIndexReaderFunctions.ReaderFunction.apply(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queries.mlt
Fields in org.apache.lucene.queries.mlt declared as IndexReaderConstructors in org.apache.lucene.queries.mlt with parameters of type IndexReaderModifierConstructorDescriptionConstructor requiring an IndexReader.MoreLikeThis(IndexReader ir, TFIDFSimilarity sim) -
Uses of IndexReader in org.apache.lucene.queries.spans
Methods in org.apache.lucene.queries.spans with parameters of type IndexReaderModifier and TypeMethodDescriptionabstract SpanQuerySpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader, MultiTermQuery query) SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader, MultiTermQuery query) -
Uses of IndexReader in org.apache.lucene.queryparser.surround.query
Fields in org.apache.lucene.queryparser.surround.query declared as IndexReaderMethods in org.apache.lucene.queryparser.surround.query that return IndexReaderMethods in org.apache.lucene.queryparser.surround.query with parameters of type IndexReaderModifier and TypeMethodDescriptionDistanceQuery.getSpanNearQuery(IndexReader reader, String fieldName, 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 IndexReaderModifierConstructorDescriptionSpanNearClauseFactory(IndexReader reader, String fieldName, BasicQueryFactory qf) -
Uses of IndexReader in org.apache.lucene.sandbox.queries
Methods in org.apache.lucene.sandbox.queries with parameters of type IndexReaderModifier and TypeMethodDescriptionprivate voidFuzzyLikeThisQuery.addTerms(IndexReader reader, FuzzyLikeThisQuery.FieldVals f, FuzzyLikeThisQuery.ScoreTermQueue q) private QueryFuzzyLikeThisQuery.newTermQuery(IndexReader reader, Term term) -
Uses of IndexReader in org.apache.lucene.sandbox.search
Methods in org.apache.lucene.sandbox.search with parameters of type IndexReaderModifier and TypeMethodDescriptionprivate voidCombinedFieldQuery.validateConsistentNorms(IndexReader reader) Constructors in org.apache.lucene.sandbox.search with parameters of type IndexReader -
Uses of IndexReader in org.apache.lucene.search
Fields in org.apache.lucene.search declared as IndexReaderMethods in org.apache.lucene.search that return IndexReaderModifier and TypeMethodDescriptionIndexSearcher.getIndexReader()Return theIndexReaderthis searches.Methods in org.apache.lucene.search with parameters of type IndexReaderModifier and TypeMethodDescription(package private) final voidTermCollectingRewrite.collectTerms(IndexReader reader, MultiTermQuery query, TermCollectingRewrite.TermCollector collector) private QueryAbstractKnnVectorQuery.createRewrittenQuery(IndexReader reader, TopDocs topK) (package private) static int[]AbstractKnnVectorQuery.findSegmentStarts(IndexReader reader, int[] docs) static IndexSearcherSearcherManager.getSearcher(SearcherFactory searcherFactory, IndexReader reader, IndexReader previousReader) Expert: creates a searcher from the providedIndexReaderusing the providedSearcherFactory.SearcherFactory.newSearcher(IndexReader reader, IndexReader previousReader) Returns a new IndexSearcher over the given reader.DocValuesRewriteMethod.rewrite(IndexReader reader, MultiTermQuery query) abstract QueryMultiTermQuery.RewriteMethod.rewrite(IndexReader reader, MultiTermQuery query) Query.rewrite(IndexReader reader) Deprecated.final QueryScoringRewrite.rewrite(IndexReader reader, MultiTermQuery query) final QueryTopTermsRewrite.rewrite(IndexReader reader, MultiTermQuery query) Constructors in org.apache.lucene.search with parameters of type IndexReaderModifierConstructorDescriptionCreates 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.highlightModifier and TypeClassDescriptionclassWraps a Terms with aLeafReader, typically from term vectors.(package private) static final classFields in org.apache.lucene.search.highlight declared as IndexReaderMethods in org.apache.lucene.search.highlight with parameters of type IndexReaderModifier and TypeMethodDescriptionstatic TokenStreamTokenSources.getAnyTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer) Deprecated.static TokenStreamTokenSources.getAnyTokenStream(IndexReader reader, int docId, String field, Document document, Analyzer analyzer) Deprecated.static final 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, Analyzer analyzer) Deprecated.static TokenStreamTokenSources.getTokenStreamWithOffsets(IndexReader reader, int docId, String field) Deprecated.WeightedSpanTermExtractor.getWeightedSpanTermsWithScores(Query query, float boost, TokenStream tokenStream, String fieldName, IndexReader reader) Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.private voidQueryScorer.init(Query query, String field, IndexReader reader, boolean expandMultiTermQuery) Constructors in org.apache.lucene.search.highlight with parameters of type IndexReaderModifierConstructorDescriptionQueryScorer(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 IndexReaderModifier and TypeMethodDescriptionstatic voidCheckJoinIndex.check(IndexReader reader, BitSetProducer parentsFilter) Check that the given index is good to use for block joins. -
Uses of IndexReader in org.apache.lucene.search.matchhighlight
Methods in org.apache.lucene.search.matchhighlight with parameters of type IndexReaderModifier and TypeMethodDescriptionMatchRegionRetriever.computeOffsetRetrievalStrategies(IndexReader reader, Analyzer analyzer) Compute default strategies for retrieving offsets fromMatchesIteratorinstances for a set of given fields. -
Uses of IndexReader in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as IndexReaderModifier and TypeFieldDescriptionprivate IndexReaderHighFrequencyDictionary.readerprivate IndexReaderLuceneDictionary.readerMethods in org.apache.lucene.search.spell with parameters of type IndexReaderModifier and TypeMethodDescriptionprivate intWordBreakSpellChecker.generateBreakUpSuggestions(Term term, IndexReader ir, int numberBreaks, int maxSuggestions, int useMinSuggestionFrequency, SuggestWord[] prefix, Queue<WordBreakSpellChecker.SuggestWordArrayWrapper> suggestions, int totalEvaluations, WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod) private SuggestWordWordBreakSpellChecker.generateSuggestWord(IndexReader ir, String fieldname, String text) 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.DirectSpellChecker.suggestSimilar(Term term, int numSug, IndexReader ir, SuggestMode suggestMode) 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).SuggestWord[][]WordBreakSpellChecker.suggestWordBreaks(Term term, int maxSuggestions, IndexReader ir, SuggestMode suggestMode, WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod) Generate suggestions by breaking the passed-in term into multiple words.WordBreakSpellChecker.suggestWordCombinations(Term[] terms, int maxSuggestions, IndexReader ir, SuggestMode suggestMode) Generate suggestions by combining one or more of the passed-in terms into single words.Constructors in org.apache.lucene.search.spell with parameters of type IndexReaderModifierConstructorDescriptionHighFrequencyDictionary(IndexReader reader, String field, float thresh) Creates a new Dictionary, pulling source terms from the specifiedfieldin the providedreader.LuceneDictionary(IndexReader reader, String field) Creates a new Dictionary, pulling source terms from the specifiedfieldin the providedreader -
Uses of IndexReader in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as IndexReaderModifier and TypeFieldDescriptionprotected final IndexReaderDocumentDictionary.readerIndexReaderto load documents fromConstructors in org.apache.lucene.search.suggest with parameters of type IndexReaderModifierConstructorDescriptionDocumentDictionary(IndexReader reader, String field, String weightField) Creates a new dictionary with the contents of the fields namedfieldfor the terms andweightFieldfor the weights that will be used for the corresponding terms.DocumentDictionary(IndexReader reader, String field, String weightField, String payloadField) Creates a new dictionary with the contents of the fields namedfieldfor the terms,weightFieldfor the weights that will be used for the the corresponding terms andpayloadFieldfor the corresponding payloads for the entry.DocumentDictionary(IndexReader reader, String field, String weightField, String payloadField, String contextsField) Creates a new dictionary with the contents of the fields namedfieldfor the terms,weightFieldfor the weights that will be used for the the corresponding terms,payloadFieldfor the corresponding payloads for the entry andcontextsFieldfor associated contexts.DocumentValueSourceDictionary(IndexReader reader, String field, LongValuesSource weightsValueSource) Creates a new dictionary with the contents of the fields namedfieldfor the terms and uses theweightsValueSourcesupplied to determine the score.DocumentValueSourceDictionary(IndexReader reader, String field, LongValuesSource weightsValueSource, String payload) Creates a new dictionary with the contents of the fields namedfieldfor the terms,payloadFieldfor the corresponding payloads and uses theweightsValueSourcesupplied to determine the score.DocumentValueSourceDictionary(IndexReader reader, String field, LongValuesSource weightsValueSource, String payload, String contexts) Creates a new dictionary with the contents of the fields namedfieldfor the terms,payloadfor the corresponding payloads,contextsfor the associated contexts and uses theweightsValueSourcesupplied to determine the score. -
Uses of IndexReader in org.apache.lucene.search.suggest.document
Constructors in org.apache.lucene.search.suggest.document with parameters of type IndexReaderModifierConstructorDescriptionSuggestIndexSearcher(IndexReader reader) Creates a searcher with document suggest capabilities forreader. -
Uses of IndexReader in org.apache.lucene.search.uhighlight
Subclasses of IndexReader in org.apache.lucene.search.uhighlightModifier and TypeClassDescriptionclassOverlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is consulted.private static final classNeeded to support the ability to highlight a query irrespective of the field a query refers to (aka requireFieldMatch=false).(package private) final classA filtered LeafReader that only includes the terms that are also in a provided set of terms.private static classWraps an IndexReader that remembers/caches the last call toTermVectors.get(int)so that if the next call has the same ID, then it is reused.Methods in org.apache.lucene.search.uhighlight that return IndexReaderModifier and TypeMethodDescription(package private) static IndexReaderUnifiedHighlighter.TermVectorReusingLeafReader.wrap(IndexReader reader) Methods in org.apache.lucene.search.uhighlight with parameters of type IndexReaderModifier and TypeMethodDescription(package private) static IndexReaderUnifiedHighlighter.TermVectorReusingLeafReader.wrap(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.search.vectorhighlight
Methods in org.apache.lucene.search.vectorhighlight with parameters of type IndexReaderModifier and TypeMethodDescription(package private) voidFieldQuery.QueryPhraseMap.add(Query query, IndexReader reader) BaseFragmentsBuilder.createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList) BaseFragmentsBuilder.createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, String[] preTags, String[] postTags, Encoder encoder) FragmentsBuilder.createFragment(IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList) create a fragment.FragmentsBuilder.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.final StringFastVectorHighlighter.getBestFragment(FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize) return the best fragment.final 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.final String[]FastVectorHighlighter.getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize, int maxNumFragments) return the best fragments.final 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.final 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.private FieldFragListFastVectorHighlighter.getFieldFragList(FragListBuilder fragListBuilder, FieldQuery fieldQuery, IndexReader reader, int docId, String matchedField, int fragCharSize) Build a FieldFragList for one field.private FieldFragListFastVectorHighlighter.getFieldFragList(FragListBuilder fragListBuilder, FieldQuery fieldQuery, IndexReader reader, int docId, Set<String> matchedFields, int fragCharSize) Build a FieldFragList for more than one field.FastVectorHighlighter.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 IndexReaderModifierConstructorDescriptionFieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch) FieldTermStack(IndexReader reader, int docId, String fieldName, FieldQuery fieldQuery) a constructor.
Query.rewrite(IndexSearcher)