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.classification Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).org.apache.lucene.classification.document Uses already seen data (the indexed documents) to classify new documents.org.apache.lucene.classification.utils Utilities for evaluation, data preparation, etc.org.apache.lucene.document The logical representation of aDocumentfor indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.misc Miscellaneous index tools.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.queries Filters and Queries that add to core Lucene.org.apache.lucene.queries.function Queries that compute score based upon a function.org.apache.lucene.queries.mlt Document similarity query generators.org.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.queryparser.complexPhrase QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"org.apache.lucene.queryparser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.sandbox.queries Additional queries (some may have caveats or limitations)org.apache.lucene.search Code to search indices.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.search.uhighlight The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.org.apache.lucene.search.vectorhighlight 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 IndexReader Constructor Description QueryAutoStopWordAnalyzer(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, java.util.Collection<java.lang.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, java.util.Collection<java.lang.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 IndexReader Modifier and Type Field Description private IndexReaderBM25NBClassifier. indexReaderIndexReaderused to access theClassifier's indexprotected IndexReaderSimpleNaiveBayesClassifier. indexReaderIndexReaderused to access theClassifier's indexMethods in org.apache.lucene.classification with parameters of type IndexReader Modifier and Type Method Description private voidBooleanPerceptronClassifier. updateWeights(IndexReader indexReader, int docId, java.lang.Boolean assignedClass, java.util.SortedMap<java.lang.String,java.lang.Double> weights, double modifier, boolean updateFST)Constructors in org.apache.lucene.classification with parameters of type IndexReader Constructor Description BM25NBClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates a new NaiveBayes classifier.BooleanPerceptronClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.Integer batchSize, java.lang.Double bias, java.lang.String classFieldName, java.lang.String textFieldName)Creates aBooleanPerceptronClassifierCachingNaiveBayesClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates a new NaiveBayes classifier with inside caching.KNearestFuzzyClassifier(IndexReader indexReader, Similarity similarity, Analyzer analyzer, Query query, int k, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates aKNearestFuzzyClassifier.KNearestNeighborClassifier(IndexReader indexReader, Similarity similarity, Analyzer analyzer, Query query, int k, int minDocsFreq, int minTermFreq, java.lang.String classFieldName, java.lang.String... textFieldNames)Creates aKNearestNeighborClassifier.SimpleNaiveBayesClassifier(IndexReader indexReader, Analyzer analyzer, Query query, java.lang.String classFieldName, java.lang.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 IndexReader Constructor Description KNearestNeighborDocumentClassifier(IndexReader indexReader, Similarity similarity, Query query, int k, int minDocsFreq, int minTermFreq, java.lang.String classFieldName, java.util.Map<java.lang.String,Analyzer> field2analyzer, java.lang.String... textFieldNames)Creates aKNearestNeighborClassifier.SimpleNaiveBayesDocumentClassifier(IndexReader indexReader, Query query, java.lang.String classFieldName, java.util.Map<java.lang.String,Analyzer> field2analyzer, java.lang.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 IndexReader Modifier and Type Method Description private voidNearestFuzzyQuery. addTerms(IndexReader reader, NearestFuzzyQuery.FieldVals f, NearestFuzzyQuery.ScoreTermQueue q)private DocumentDatasetSplitter. createNewDoc(IndexReader originalIndex, FieldType ft, ScoreDoc scoreDoc, java.lang.String[] fieldNames)static <T> ConfusionMatrixGenerator.ConfusionMatrixConfusionMatrixGenerator. getConfusionMatrix(IndexReader reader, Classifier<T> classifier, java.lang.String classFieldName, java.lang.String textFieldName, long timeoutMilliseconds)get theConfusionMatrixGenerator.ConfusionMatrixof a givenClassifier, generated on the givenIndexReader, class and text fields.private QueryNearestFuzzyQuery. newTermQuery(IndexReader reader, Term term)QueryNearestFuzzyQuery. rewrite(IndexReader reader)voidDatasetSplitter. split(IndexReader originalIndex, Directory trainingIndex, Directory testIndex, Directory crossValidationIndex, Analyzer analyzer, boolean termVectors, java.lang.String classFieldName, java.lang.String... fieldNames)Split a given index into 3 indexes for training, test and cross validation tasks respectively -
Uses of IndexReader in org.apache.lucene.document
Fields in org.apache.lucene.document declared as IndexReader Modifier and Type Field Description private IndexReaderLazyDocument. readerMethods in org.apache.lucene.document with parameters of type IndexReader Modifier and Type Method Description (package private) static floatFeatureField. computePivotFeatureValue(IndexReader reader, java.lang.String featureField, java.lang.String featureName)Compute a feature value that may be used as thepivotparameter of theFeatureField.newSaturationQuery(String, String, float, float)andFeatureField.newSigmoidQuery(String, String, float, float, float)factory methods.QueryBinaryRangeFieldRangeQuery. rewrite(IndexReader reader)QueryDoubleRangeSlowRangeQuery. rewrite(IndexReader reader)(package private) FeatureField.FeatureFunctionFeatureField.FeatureFunction. rewrite(IndexReader reader)FeatureField.FeatureFunctionFeatureField.SaturationFunction. rewrite(IndexReader reader)QueryFeatureQuery. rewrite(IndexReader reader)QueryFloatRangeSlowRangeQuery. rewrite(IndexReader reader)QueryIntRangeSlowRangeQuery. rewrite(IndexReader reader)QueryLongRangeSlowRangeQuery. rewrite(IndexReader reader)QuerySortedNumericDocValuesRangeQuery. rewrite(IndexReader reader)QuerySortedSetDocValuesRangeQuery. rewrite(IndexReader reader)Constructors in org.apache.lucene.document with parameters of type IndexReader Constructor Description LazyDocument(IndexReader reader, int docID) -
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.(package private) classDocValuesLeafReaderclassExitableDirectoryReaderTheExitableDirectoryReaderwraps a real indexDirectoryReaderand allows for aQueryTimeoutimplementation object to be checked periodically to see if the thread should exit or not.static classExitableDirectoryReader.ExitableFilterAtomicReaderWrapper class for another FilterAtomicReader.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.(package private) classMergeReaderWrapperThis is a hack to make index sorting fast, with aLeafReaderthat always returns merge instances when you ask for the codec readers.private static classMultiPassIndexSplitter.FakeDeleteIndexReaderThis class emulates deletions on the underlying index.private static classMultiPassIndexSplitter.FakeDeleteLeafIndexReaderclassMultiReaderACompositeReaderwhich reads multiple indexes, appending their content.classParallelCompositeReaderAnCompositeReaderwhich reads multiple, parallel indexes.classParallelLeafReaderAnLeafReaderwhich reads multiple, parallel indexes.private static classPKIndexSplitter.DocumentFilteredLeafIndexReaderclassSegmentReaderIndexReader 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.(package private) static classSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader(package private) static classSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReaderclassSortingCodecReaderAnCodecReaderwhich supports sorting documents by a givenSort.classStandardDirectoryReaderDefault implementation ofDirectoryReader.Fields in org.apache.lucene.index declared as IndexReader Modifier and Type Field Description private R[]BaseCompositeReader. subReadersFields in org.apache.lucene.index with type parameters of type IndexReader Modifier and Type Field Description private java.util.Set<IndexReader>ParallelCompositeReader. completeReaderSetprivate java.util.Set<IndexReader>IndexReader. parentReadersMethods 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 java.util.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 private IndexReaderContextCompositeReaderContext.Builder. build(CompositeReaderContext parent, IndexReader reader, int ord, int docBase)static BinaryDocValuesMultiDocValues. getBinaryValues(IndexReader r, java.lang.String field)Returns a BinaryDocValues for a reader's docvalues (potentially merging on-the-fly)static intPointValues. getDocCount(IndexReader reader, java.lang.String field)Return the cumulated number of docs that have points across all leaves of the givenIndexReader.static java.util.Collection<java.lang.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, java.lang.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, java.lang.String field)Return the minimum packed values across all leaves of the givenIndexReader.static NumericDocValuesMultiDocValues. getNormValues(IndexReader r, java.lang.String field)Returns a NumericDocValues for a reader's norms (potentially merging on-the-fly).static NumericDocValuesMultiDocValues. getNumericValues(IndexReader r, java.lang.String field)Returns a NumericDocValues for a reader's docvalues (potentially merging on-the-fly)static SortedNumericDocValuesMultiDocValues. getSortedNumericValues(IndexReader r, java.lang.String field)Returns a SortedNumericDocValues for a reader's docvalues (potentially merging on-the-fly)static SortedSetDocValuesMultiDocValues. getSortedSetValues(IndexReader r, java.lang.String field)Returns a SortedSetDocValues for a reader's docvalues (potentially doing extremely slow things).static SortedDocValuesMultiDocValues. getSortedValues(IndexReader r, java.lang.String field)Returns a SortedDocValues for a reader's docvalues (potentially doing extremely slow things).static PostingsEnumMultiTerms. getTermPostingsEnum(IndexReader r, java.lang.String field, BytesRef term)ReturnsPostingsEnumfor the specified field and term.static PostingsEnumMultiTerms. getTermPostingsEnum(IndexReader r, java.lang.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, java.lang.String field)This method may return null if the field does not exist or if it has no terms.private static MultiPassIndexSplitter.FakeDeleteLeafIndexReader[]MultiPassIndexSplitter.FakeDeleteIndexReader. initSubReaders(IndexReader reader)voidIndexReader. registerParentReader(IndexReader reader)Expert: This method is called byIndexReaders which wrap other readers (e.g.static longPointValues. size(IndexReader reader, java.lang.String field)Return the cumulated number of points across all leaves of the givenIndexReader.voidMultiPassIndexSplitter. split(IndexReader in, Directory[] outputs, boolean seq)Split source index into multiple parts.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 IndexReader Constructor Description BaseCompositeReader(R[] subReaders)Constructs aBaseCompositeReaderon the given subReaders.FakeDeleteIndexReader(IndexReader reader)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.index.memory
Subclasses of IndexReader in org.apache.lucene.index.memory Modifier and Type Class Description private classMemoryIndex.MemoryIndexReaderSearch 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 IndexReader Modifier and Type Method Description static TermStats[]HighFreqTerms. getHighFreqTerms(IndexReader reader, int numTerms, java.lang.String field, java.util.Comparator<TermStats> comparator)Returns TermStats[] ordered by the specified comparator -
Uses of IndexReader in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor with parameters of type IndexReader Modifier and Type Method Description IndexSearcherQueryIndex.TermsHashBuilder. newSearcher(IndexReader reader, IndexReader previousReader)QueryForceNoBulkScoringQuery. rewrite(IndexReader reader)Constructors in org.apache.lucene.monitor with parameters of type IndexReader Constructor Description QueryTermFilter(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queries
Methods in org.apache.lucene.queries with parameters of type IndexReader Modifier and Type Method Description voidCommonTermsQuery. collectTermStates(IndexReader reader, java.util.List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms)QueryCommonTermsQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queries.function
Fields in org.apache.lucene.queries.function declared as IndexReader Modifier and Type Field Description (package private) IndexReaderFunctionQuery.AllScorer. readerMethods in org.apache.lucene.queries.function with parameters of type IndexReader Modifier and Type Method Description doubleIndexReaderFunctions.ReaderFunction. apply(IndexReader reader)QueryFunctionScoreQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queries.mlt
Fields in org.apache.lucene.queries.mlt declared as IndexReader Modifier and Type Field Description private IndexReaderMoreLikeThis. irIndexReader to useMethods in org.apache.lucene.queries.mlt with parameters of type IndexReader Modifier and Type Method Description QueryMoreLikeThisQuery. rewrite(IndexReader reader)Constructors in org.apache.lucene.queries.mlt with parameters of type IndexReader Constructor Description MoreLikeThis(IndexReader ir)Constructor requiring an IndexReader.MoreLikeThis(IndexReader ir, TFIDFSimilarity sim) -
Uses of IndexReader in org.apache.lucene.queries.payloads
Methods in org.apache.lucene.queries.payloads with parameters of type IndexReader Modifier and Type Method Description QueryPayloadScoreQuery. rewrite(IndexReader reader)QuerySpanPayloadCheckQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queryparser.complexPhrase
Methods in org.apache.lucene.queryparser.complexPhrase with parameters of type IndexReader Modifier and Type Method Description QueryComplexPhraseQueryParser.ComplexPhraseQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.queryparser.surround.query
Fields in org.apache.lucene.queryparser.surround.query declared as IndexReader Modifier and Type Field Description private IndexReaderSpanNearClauseFactory. readerMethods 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, java.lang.String fieldName, BasicQueryFactory qf)QueryDistanceRewriteQuery. rewrite(IndexReader reader)abstract QueryRewriteQuery. rewrite(IndexReader reader)QuerySimpleTermRewriteQuery. rewrite(IndexReader reader)abstract voidSimpleTerm. visitMatchingTerms(IndexReader reader, java.lang.String fieldName, SimpleTerm.MatchingTermVisitor mtv)voidSrndPrefixQuery. visitMatchingTerms(IndexReader reader, java.lang.String fieldName, SimpleTerm.MatchingTermVisitor mtv)voidSrndTermQuery. visitMatchingTerms(IndexReader reader, java.lang.String fieldName, SimpleTerm.MatchingTermVisitor mtv)voidSrndTruncQuery. visitMatchingTerms(IndexReader reader, java.lang.String fieldName, SimpleTerm.MatchingTermVisitor mtv)Constructors in org.apache.lucene.queryparser.surround.query with parameters of type IndexReader Constructor Description SpanNearClauseFactory(IndexReader reader, java.lang.String fieldName, BasicQueryFactory qf) -
Uses of IndexReader in org.apache.lucene.sandbox.queries
Methods in org.apache.lucene.sandbox.queries with parameters of type IndexReader Modifier and Type Method Description private voidFuzzyLikeThisQuery. addTerms(IndexReader reader, FuzzyLikeThisQuery.FieldVals f, FuzzyLikeThisQuery.ScoreTermQueue q)private QueryFuzzyLikeThisQuery. newTermQuery(IndexReader reader, Term term)QueryFuzzyLikeThisQuery. rewrite(IndexReader reader) -
Uses of IndexReader in org.apache.lucene.search
Fields in org.apache.lucene.search declared as IndexReader Modifier and Type Field Description (package private) IndexReaderIndexSearcher. readerMethods 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 (package private) voidTermCollectingRewrite. collectTerms(IndexReader reader, MultiTermQuery query, TermCollectingRewrite.TermCollector collector)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)QueryBM25FQuery. 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 representationsQueryDocValuesRewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)QueryIndexOrDocValuesQuery. rewrite(IndexReader reader)QueryIndexSortSortedNumericDocValuesRangeQuery. 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)QueryNamedMatches.NamedQuery. rewrite(IndexReader reader)QueryNGramPhraseQuery. rewrite(IndexReader reader)QueryPhraseQuery. rewrite(IndexReader reader)QueryPhraseWildcardQuery. 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)QueryTermAutomatonQuery. 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, java.util.concurrent.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.(package private) static classWeightedSpanTermExtractor.DelegatingLeafReaderFields in org.apache.lucene.search.highlight declared as IndexReader Modifier and Type Field Description private IndexReaderQueryScorer. readerMethods in org.apache.lucene.search.highlight with parameters of type IndexReader Modifier and Type Method Description static TokenStreamTokenSources. getAnyTokenStream(IndexReader reader, int docId, java.lang.String field, Analyzer analyzer)Deprecated.static TokenStreamTokenSources. getAnyTokenStream(IndexReader reader, int docId, java.lang.String field, Document document, Analyzer analyzer)Deprecated.static WeightedTerm[]QueryTermExtractor. getIdfWeightedTerms(Query query, IndexReader reader, java.lang.String fieldName)Extracts all terms texts of a given Query into an array of WeightedTermsstatic TokenStreamTokenSources. getTokenStream(IndexReader reader, int docId, java.lang.String field, Analyzer analyzer)Deprecated.static TokenStreamTokenSources. getTokenStreamWithOffsets(IndexReader reader, int docId, java.lang.String field)Deprecated.java.util.Map<java.lang.String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTermsWithScores(Query query, float boost, TokenStream tokenStream, java.lang.String fieldName, IndexReader reader)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.private voidQueryScorer. init(Query query, java.lang.String field, IndexReader reader, boolean expandMultiTermQuery)Constructors in org.apache.lucene.search.highlight with parameters of type IndexReader Constructor Description QueryScorer(Query query, IndexReader reader, java.lang.String field)QueryScorer(Query query, IndexReader reader, java.lang.String field, java.lang.String defaultField)QueryTermScorer(Query query, IndexReader reader, java.lang.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 static voidCheckJoinIndex. check(IndexReader reader, BitSetProducer parentsFilter)Check that the given index is good to use for block joins.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)QuerySpanContainQuery. 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
Fields in org.apache.lucene.search.spell declared as IndexReader Modifier and Type Field Description private IndexReaderHighFrequencyDictionary. readerprivate IndexReaderLuceneDictionary. readerMethods in org.apache.lucene.search.spell with parameters of type IndexReader Modifier and Type Method Description private intWordBreakSpellChecker. generateBreakUpSuggestions(Term term, IndexReader ir, int numberBreaks, int maxSuggestions, int useMinSuggestionFrequency, SuggestWord[] prefix, java.util.Queue<WordBreakSpellChecker.SuggestWordArrayWrapper> suggestions, int totalEvaluations, WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod)private SuggestWordWordBreakSpellChecker. generateSuggestWord(IndexReader ir, java.lang.String fieldname, java.lang.String text)SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir)protected java.util.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.java.lang.String[]SpellChecker. suggestSimilar(java.lang.String word, int numSug, IndexReader ir, java.lang.String field, SuggestMode suggestMode)java.lang.String[]SpellChecker. suggestSimilar(java.lang.String word, int numSug, IndexReader ir, java.lang.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.CombineSuggestion[]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 IndexReader Constructor Description HighFrequencyDictionary(IndexReader reader, java.lang.String field, float thresh)Creates a new Dictionary, pulling source terms from the specifiedfieldin the providedreader.LuceneDictionary(IndexReader reader, java.lang.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 IndexReader Modifier and Type Field Description protected IndexReaderDocumentDictionary. readerIndexReaderto load documents fromConstructors in org.apache.lucene.search.suggest with parameters of type IndexReader Constructor Description DocumentDictionary(IndexReader reader, java.lang.String field, java.lang.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, java.lang.String field, java.lang.String weightField, java.lang.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, java.lang.String field, java.lang.String weightField, java.lang.String payloadField, java.lang.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, java.lang.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, java.lang.String field, LongValuesSource weightsValueSource, java.lang.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, java.lang.String field, LongValuesSource weightsValueSource, java.lang.String payload, java.lang.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
Methods in org.apache.lucene.search.suggest.document with parameters of type IndexReader Modifier and Type Method Description QueryCompletionQuery. rewrite(IndexReader reader)Constructors in org.apache.lucene.search.suggest.document with parameters of type IndexReader Constructor Description SuggestIndexSearcher(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.uhighlight Modifier and Type Class Description classOverlaySingleDocTermsLeafReaderOverlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is consulted.private static classPhraseHelper.SingleFieldWithOffsetsFilterLeafReaderNeeded to support the ability to highlight a query irrespective of the field a query refers to (aka requireFieldMatch=false).(package private) classTermVectorFilteredLeafReaderA filtered LeafReader that only includes the terms that are also in a provided set of terms.private static classUnifiedHighlighter.TermVectorReusingLeafReaderWraps an IndexReader that remembers/caches the last call togetTermVectors(int)so that if the next call has the same ID, then it is reused.Methods in org.apache.lucene.search.uhighlight that return IndexReader Modifier and Type Method Description (package private) static IndexReaderUnifiedHighlighter.TermVectorReusingLeafReader. wrap(IndexReader reader)Methods in org.apache.lucene.search.uhighlight with parameters of type IndexReader Modifier and Type Method Description (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 IndexReader Modifier and Type Method Description (package private) voidFieldQuery.QueryPhraseMap. add(Query query, IndexReader reader)java.lang.StringBaseFragmentsBuilder. createFragment(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList)java.lang.StringBaseFragmentsBuilder. createFragment(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)java.lang.StringFragmentsBuilder. createFragment(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList)create a fragment.java.lang.StringFragmentsBuilder. createFragment(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)create a fragment.java.lang.String[]BaseFragmentsBuilder. createFragments(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList, int maxNumFragments)java.lang.String[]BaseFragmentsBuilder. createFragments(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList, int maxNumFragments, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)java.lang.String[]FragmentsBuilder. createFragments(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList, int maxNumFragments)create multiple fragments.java.lang.String[]FragmentsBuilder. createFragments(IndexReader reader, int docId, java.lang.String fieldName, FieldFragList fieldFragList, int maxNumFragments, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)create multiple fragments.protected voidFieldQuery. flatten(Query sourceQuery, IndexReader reader, java.util.Collection<Query> flatQueries, float boost)java.lang.StringFastVectorHighlighter. getBestFragment(FieldQuery fieldQuery, IndexReader reader, int docId, java.lang.String fieldName, int fragCharSize)return the best fragment.java.lang.StringFastVectorHighlighter. getBestFragment(FieldQuery fieldQuery, IndexReader reader, int docId, java.lang.String fieldName, int fragCharSize, FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)return the best fragment.java.lang.String[]FastVectorHighlighter. getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, java.lang.String fieldName, int fragCharSize, int maxNumFragments)return the best fragments.java.lang.String[]FastVectorHighlighter. getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, java.lang.String fieldName, int fragCharSize, int maxNumFragments, FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)return the best fragments.java.lang.String[]FastVectorHighlighter. getBestFragments(FieldQuery fieldQuery, IndexReader reader, int docId, java.lang.String storedField, java.util.Set<java.lang.String> matchedFields, int fragCharSize, int maxNumFragments, FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder, java.lang.String[] preTags, java.lang.String[] postTags, Encoder encoder)Return the best fragments.private FieldFragListFastVectorHighlighter. getFieldFragList(FragListBuilder fragListBuilder, FieldQuery fieldQuery, IndexReader reader, int docId, java.lang.String matchedField, int fragCharSize)Build a FieldFragList for one field.private FieldFragListFastVectorHighlighter. getFieldFragList(FragListBuilder fragListBuilder, FieldQuery fieldQuery, IndexReader reader, int docId, java.util.Set<java.lang.String> matchedFields, int fragCharSize)Build a FieldFragList for more than one field.FieldQueryFastVectorHighlighter. getFieldQuery(Query query, IndexReader reader)create aFieldQueryobject.protected Field[]BaseFragmentsBuilder. getFields(IndexReader reader, int docId, java.lang.String fieldName)(package private) voidFieldQuery. saveTerms(java.util.Collection<Query> flatQueries, IndexReader reader)Constructors in org.apache.lucene.search.vectorhighlight with parameters of type IndexReader Constructor Description FieldQuery(Query query, IndexReader reader, boolean phraseHighlight, boolean fieldMatch)FieldTermStack(IndexReader reader, int docId, java.lang.String fieldName, FieldQuery fieldQuery)a constructor.
-