Uses of Class
org.apache.lucene.index.Term
Packages that use Term
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.
Miscellaneous Lucene utilities that don't really fit anywhere else.
Misc index tools and index support.
Monitoring framework
Experimental classes for interacting with payloads
Filters and Queries that add to core Lucene.
Queries that compute score based upon a function.
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
A simple query parser implemented with JavaCC.
QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"
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.
Suggest alternate spellings for words.
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.
Some utility classes.
Utility classes for working with token streams as graphs.
-
Uses of Term in org.apache.lucene.analysis.query
Methods in org.apache.lucene.analysis.query that return TermModifier and TypeMethodDescriptionTerm[]QueryAutoStopWordAnalyzer.getStopWords()Provides information on which stop words have been identified for all fields -
Uses of Term in org.apache.lucene.classification
Methods in org.apache.lucene.classification with parameters of type TermModifier and TypeMethodDescriptionprivate doubleBM25NBClassifier.calculateLogLikelihood(String[] tokens, Term term) private doubleSimpleNaiveBayesClassifier.calculateLogLikelihood(String[] tokenizedText, Term term, int docsWithClass) private doubleBM25NBClassifier.calculateLogPrior(Term term) private doubleSimpleNaiveBayesClassifier.calculateLogPrior(Term term, int docsWithClassSize) private intprivate doubleBM25NBClassifier.getTermProbForClass(Term classTerm, String... words) private doubleSimpleNaiveBayesClassifier.getTextTermFreqForClass(Term term) Returns the average number of unique terms times the number of docs belonging to the input classprivate intSimpleNaiveBayesClassifier.getWordFreqForClass(String word, Term term) Returns the number of documents of the input class ( from the whole index or from a subset) that contains the word ( in a specific field or in all the fields if no one selected) -
Uses of Term in org.apache.lucene.classification.document
Methods in org.apache.lucene.classification.document with parameters of type TermModifier and TypeMethodDescriptionprivate doubleSimpleNaiveBayesDocumentClassifier.calculateLogLikelihood(String[] tokenizedText, String fieldName, Term term, int docsWithClass) private doubleSimpleNaiveBayesDocumentClassifier.calculateLogPrior(Term term, int docsWithClassSize) private intprivate doubleSimpleNaiveBayesDocumentClassifier.getTextTermFreqForClass(Term term, String fieldName) Returns the average number of unique terms times the number of docs belonging to the input classprivate intSimpleNaiveBayesDocumentClassifier.getWordFreqForClass(String word, String fieldName, Term term) Returns the number of documents of the input class ( from the whole index or from a subset) that contains the word ( in a specific field or in all the fields if no one selected) -
Uses of Term in org.apache.lucene.classification.utils
Fields in org.apache.lucene.classification.utils declared as TermModifier and TypeFieldDescription(package private) final TermNearestFuzzyQuery.ScoreTerm.fuzziedSourceTermfinal TermNearestFuzzyQuery.ScoreTerm.termMethods in org.apache.lucene.classification.utils with parameters of type TermModifier and TypeMethodDescriptionprivate QueryNearestFuzzyQuery.newTermQuery(IndexReader reader, Term term) Constructors in org.apache.lucene.classification.utils with parameters of type Term -
Uses of Term in org.apache.lucene.index
Fields in org.apache.lucene.index declared as TermModifier and TypeFieldDescriptionprivate TermPrefixCodedTerms.Builder.lastTerm(package private) final TermDocValuesUpdate.termprivate final TermTermStates.termMethods in org.apache.lucene.index that return types with arguments of type TermModifier and TypeMethodDescriptionBufferedUpdates.DeletedTerms.keySet()Just for test, not efficient.(package private) static DocumentsWriterDeleteQueue.Node<Term> Methods in org.apache.lucene.index with parameters of type TermModifier and TypeMethodDescriptionvoidvoidadd a term(package private) long(package private) voidFieldUpdatesBuffer.addNoValue(Term term, int docUpTo) void(package private) void(package private) voidprivate intstatic TermStatesTermStates.build(IndexSearcher indexSearcher, Term term, boolean needsStats) private DocValuesUpdate[]IndexWriter.buildDocValuesUpdate(Term term, Field[] updates) final intCompares two terms, returning a negative integer if this term belongs before the argument, zero if this term is equal to the argument, and a positive integer if this term belongs after the argument.longIndexWriter.deleteDocuments(Term... terms) Deletes the document(s) containing any of the terms.(package private) longDocumentsWriter.deleteTerms(Term... terms) final intabstract intReturns the number of documents containing theterm.final int(package private) intGet the newest doc id of the deleted term.private static TermsEnumTermStates.loadTermsEnum(LeafReaderContext ctx, Term term) (package private) static DocumentsWriterDeleteQueue.Node<Term> final PostingsEnumReturnsPostingsEnumfor the specified term withPostingsEnum.FREQS.final PostingsEnumReturnsPostingsEnumfor the specified term.(package private) voidPut the newest doc id of the deleted term.longIndexWriter.softUpdateDocument(Term term, Iterable<? extends IndexableField> doc, Field... softDeletes) Expert: Updates a document by first updating the document(s) containingtermwith the given doc-values fields and then adding the new document.longIndexWriter.softUpdateDocuments(Term term, Iterable<? extends Iterable<? extends IndexableField>> docs, Field... softDeletes) Expert: Atomically updates documents matching the provided term with the given doc-values fields and adds a block of documents with sequentially assigned document IDs, such that an external reader will see all or none of the documents.final longBaseCompositeReader.totalTermFreq(Term term) abstract longIndexReader.totalTermFreq(Term term) Returns the total number of occurrences oftermacross all documents (the sum of the freq() for each doc that has this term).final longLeafReader.totalTermFreq(Term term) Returns the number of documents containing the termt.longIndexWriter.updateBinaryDocValue(Term term, String field, BytesRef value) longIndexWriter.updateDocument(Term term, Iterable<? extends IndexableField> doc) Updates a document by first deleting the document(s) containingtermand then adding the new document.longIndexWriter.updateDocuments(Term delTerm, Iterable<? extends Iterable<? extends IndexableField>> docs) Atomically deletes documents matching the provided delTerm and adds a block of documents with sequentially assigned document IDs, such that an external reader will see all or none of the documents.longIndexWriter.updateDocValues(Term term, Field... updates) Updates documents' DocValues fields to the given values.longIndexWriter.updateNumericDocValue(Term term, String field, long value) Constructors in org.apache.lucene.index with parameters of type TermModifierConstructorDescription(package private)BinaryDocValuesUpdate(Term term, String field, BytesRef value) privateBinaryDocValuesUpdate(Term term, String field, BytesRef value, int docIDUpTo) protectedDocValuesUpdate(DocValuesType type, Term term, String field, int docIDUpTo, boolean hasValue) Constructor.(package private)NumericDocValuesUpdate(Term term, String field, long value) privateNumericDocValuesUpdate(Term term, String field, long value, int docIDUpTo, boolean hasValue) (package private)NumericDocValuesUpdate(Term term, String field, Long value) (package private)TermArrayNode(Term[] term) (package private)privateTermStates(Term term, IndexReaderContext context) -
Uses of Term in org.apache.lucene.misc
Methods in org.apache.lucene.misc with parameters of type Term -
Uses of Term in org.apache.lucene.misc.index
Constructors in org.apache.lucene.misc.index with parameters of type TermModifierConstructorDescriptionPKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm) Split an index based on a given primary key term and a 'middle' term.PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm, IndexWriterConfig config1, IndexWriterConfig config2) -
Uses of Term in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor with parameters of type TermModifier and TypeMethodDescriptionvoidQueryAnalyzer.QueryBuilder.consumeTerms(Query query, Term... terms) static QueryTreeReturns a leaf node for a particular term and weightstatic QueryTreeQueryTree.term(Term term, TermWeightor weightor) Returns a leaf node for a particular termstatic TermWeightorTermWeightor.termAndFieldWeightor(double weight, Term... terms) QueryTerms with a term and field value from the selected set will be assigned the given weightMethod parameters in org.apache.lucene.monitor with type arguments of type TermModifier and TypeMethodDescriptionstatic TermWeightorTermWeightor.termAndFieldWeightor(double weight, Set<Term> terms) QueryTerms with a term and field value from the selected set will be assigned the given weight -
Uses of Term in org.apache.lucene.payloads
Methods in org.apache.lucene.payloads with parameters of type TermModifier and TypeMethodDescriptionvoidPayloadSpanCollector.collectLeaf(PostingsEnum postings, int position, Term term) -
Uses of Term in org.apache.lucene.queries
Fields in org.apache.lucene.queries with type parameters of type TermMethods in org.apache.lucene.queries that return types with arguments of type TermMethods in org.apache.lucene.queries with parameters of type TermModifier and TypeMethodDescriptionvoidAdds a term to theCommonTermsQueryprotected QueryCommonTermsQuery.buildQuery(int maxDoc, TermStates[] contextArray, Term[] queryTerms) voidCommonTermsQuery.collectTermStates(IndexReader reader, List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms) protected QueryCommonTermsQuery.newTermQuery(Term term, TermStates termStates) Builds a new TermQuery instance. -
Uses of Term in org.apache.lucene.queries.function
Fields in org.apache.lucene.queries.function declared as TermModifier and TypeFieldDescriptionprivate final TermIndexReaderFunctions.TermFreqDoubleValuesSource.termMethods in org.apache.lucene.queries.function with parameters of type TermModifier and TypeMethodDescriptionstatic DoubleValuesSourceCreates a constant value source returning the docFreq of a given termstatic DoubleValuesSourceCreates a value source that returns the term freq of a given term for each documentstatic DoubleValuesSourceIndexReaderFunctions.totalTermFreq(Term term) Creates a constant value source returning the totalTermFreq for a given termConstructors in org.apache.lucene.queries.function with parameters of type Term -
Uses of Term in org.apache.lucene.queries.payloads
Methods in org.apache.lucene.queries.payloads with parameters of type TermModifier and TypeMethodDescriptionvoidPayloadScoreQuery.PayloadSpans.collectLeaf(PostingsEnum postings, int position, Term term) voidSpanPayloadCheckQuery.PayloadChecker.collectLeaf(PostingsEnum postings, int position, Term term) Method parameters in org.apache.lucene.queries.payloads with type arguments of type TermModifier and TypeMethodDescriptionvoidPayloadScoreQuery.PayloadSpanWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanPayloadCheckQuery.SpanPayloadCheckWeight.extractTermStates(Map<Term, TermStates> contexts) Constructor parameters in org.apache.lucene.queries.payloads with type arguments of type TermModifierConstructorDescriptionSpanPayloadCheckWeight(IndexSearcher searcher, Map<Term, TermStates> termStates, SpanWeight matchWeight, float boost, SpanPayloadCheckQuery.PayloadType payloadType) -
Uses of Term in org.apache.lucene.queries.spans
Fields in org.apache.lucene.queries.spans declared as TermModifier and TypeFieldDescriptionprotected final TermSpanTermQuery.term(package private) TermSpanWeight.TermMatch.termprotected final TermTermSpans.termMethods in org.apache.lucene.queries.spans that return TermModifier and TypeMethodDescriptionSpanTermQuery.getTerm()Return the term whose spans are matched.Methods in org.apache.lucene.queries.spans that return types with arguments of type TermModifier and TypeMethodDescriptionstatic Map<Term, TermStates> SpanQuery.getTermStates(Collection<SpanWeight> weights) Build a map of terms toTermStates, for use in constructing SpanWeightsstatic Map<Term, TermStates> SpanQuery.getTermStates(SpanWeight... weights) Build a map of terms toTermStates, for use in constructing SpanWeightsMethods in org.apache.lucene.queries.spans with parameters of type TermModifier and TypeMethodDescriptionvoidSpanCollector.collectLeaf(PostingsEnum postings, int position, Term term) Collect information from postingsMethod parameters in org.apache.lucene.queries.spans with type arguments of type TermModifier and TypeMethodDescriptionprivate Similarity.SimScorerSpanWeight.buildSimWeight(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) voidSpanContainQuery.SpanContainWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanNearQuery.SpanGapQuery.SpanGapWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanNearQuery.SpanNearWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanNotQuery.SpanNotWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanOrQuery.SpanOrWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanPositionCheckQuery.SpanPositionCheckWeight.extractTermStates(Map<Term, TermStates> contexts) voidSpanTermQuery.SpanTermWeight.extractTermStates(Map<Term, TermStates> contexts) abstract voidSpanWeight.extractTermStates(Map<Term, TermStates> contexts) Collect all TermStates used by this WeightConstructors in org.apache.lucene.queries.spans with parameters of type TermModifierConstructorDescriptionSpanTermQuery(Term term) Construct a SpanTermQuery matching the named term's spans.SpanTermQuery(Term term, TermStates termStates) Expert: Construct a SpanTermQuery matching the named term's spans, using the provided TermStatesTermSpans(LeafSimScorer scorer, PostingsEnum postings, Term term, float positionsCost) Constructor parameters in org.apache.lucene.queries.spans with type arguments of type TermModifierConstructorDescriptionSpanContainingWeight(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) SpanContainWeight(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) SpanNearWeight(List<SpanWeight> subWeights, IndexSearcher searcher, Map<Term, TermStates> terms, float boost) SpanNotWeight(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight includeWeight, SpanWeight excludeWeight, float boost) SpanOrWeight(IndexSearcher searcher, Map<Term, TermStates> terms, List<SpanWeight> subWeights, float boost) SpanPositionCheckWeight(SpanWeight matchWeight, IndexSearcher searcher, Map<Term, TermStates> terms, float boost) SpanTermWeight(TermStates termStates, IndexSearcher searcher, Map<Term, TermStates> terms, float boost) SpanWeight(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) Create a new SpanWeightSpanWithinWeight(IndexSearcher searcher, Map<Term, TermStates> terms, SpanWeight bigWeight, SpanWeight littleWeight, float boost) -
Uses of Term in org.apache.lucene.queryparser.classic
Methods in org.apache.lucene.queryparser.classic with parameters of type TermModifier and TypeMethodDescriptionprotected QueryQueryParserBase.newFuzzyQuery(Term term, float minimumSimilarity, int prefixLength) Builds a new FuzzyQuery instanceprotected QueryQueryParserBase.newPrefixQuery(Term prefix) Builds a new PrefixQuery instanceprotected QueryQueryParserBase.newRegexpQuery(Term regexp) Builds a new RegexpQuery instanceprotected QueryQueryParserBase.newWildcardQuery(Term t) Builds a new WildcardQuery instance -
Uses of Term in org.apache.lucene.queryparser.complexPhrase
Methods in org.apache.lucene.queryparser.complexPhrase with parameters of type TermModifier and TypeMethodDescriptionprotected QueryComplexPhraseQueryParser.newTermQuery(Term term, float boost) -
Uses of Term in org.apache.lucene.queryparser.surround.query
Methods in org.apache.lucene.queryparser.surround.query that return TermMethods in org.apache.lucene.queryparser.surround.query with parameters of type TermModifier and TypeMethodDescriptionvoidSpanNearClauseFactory.addTermWeighted(Term t, float weight) BasicQueryFactory.newSpanTermQuery(Term term) BasicQueryFactory.newTermQuery(Term term) voidSimpleTerm.MatchingTermVisitor.visitMatchingTerm(Term t) -
Uses of Term in org.apache.lucene.sandbox.queries
Fields in org.apache.lucene.sandbox.queries declared as TermModifier and TypeFieldDescription(package private) TermFuzzyLikeThisQuery.ScoreTerm.fuzziedSourceTermFuzzyLikeThisQuery.ScoreTerm.termMethods in org.apache.lucene.sandbox.queries with parameters of type TermModifier and TypeMethodDescriptionprivate QueryFuzzyLikeThisQuery.newTermQuery(IndexReader reader, Term term) Constructors in org.apache.lucene.sandbox.queries with parameters of type Term -
Uses of Term in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as TermModifier and TypeFieldDescriptionprivate final Term[]CombinedFieldQuery.fieldTermsprotected final TermPhraseWildcardQuery.SingleTerm.termFields in org.apache.lucene.sandbox.search with type parameters of type TermMethods in org.apache.lucene.sandbox.search that return types with arguments of type TermMethods in org.apache.lucene.sandbox.search with parameters of type TermModifier and TypeMethodDescriptionAdds a single term at the next position in the phrase.Constructors in org.apache.lucene.sandbox.search with parameters of type Term -
Uses of Term in org.apache.lucene.search
Fields in org.apache.lucene.search declared as TermModifier and TypeFieldDescriptionprotected final TermAutomatonQuery.termterm containing the field, and possibly some pattern structureprivate final TermFuzzyQuery.termprivate final TermFuzzyTermsEnum.termprivate final TermTermQuery.termprivate final Term[][]MultiPhraseQuery.termArraysprivate Term[]BlendedTermQuery.Builder.termsprivate final Term[]BlendedTermQuery.terms(package private) final Term[]PhrasePositions.terms(package private) final Term[]PhraseQuery.PostingsAndFreq.termsprivate final Term[]PhraseQuery.termsFields in org.apache.lucene.search with type parameters of type TermMethods in org.apache.lucene.search that return TermModifier and TypeMethodDescriptionPrefixQuery.getPrefix()Returns the prefix of this query.RegexpQuery.getRegexp()Returns the regexp of this query wrapped in a Term.FuzzyQuery.getTerm()Returns the pattern term.TermQuery.getTerm()Returns the term of this query.WildcardQuery.getTerm()Returns the pattern term.Term[][]MultiPhraseQuery.getTermArrays()Returns the arrays of arrays of terms in the multi-phrase.Term[]NGramPhraseQuery.getTerms()Return the list of terms.Term[]PhraseQuery.getTerms()Returns the list of terms in this phrase.private static Term[]private static Term[]Methods in org.apache.lucene.search that return types with arguments of type TermModifier and TypeMethodDescriptionSynonymQuery.getTerms()Returns the terms of thisSynonymQueryprivate LinkedHashMap<Term, Integer> SloppyPhraseMatcher.repeatingTerms()find repeating terms and assign them ordinal valuesSloppyPhraseMatcher.termGroups(LinkedHashMap<Term, Integer> tord, ArrayList<FixedBitSet> bb) map each term to the single group that contains itMethods in org.apache.lucene.search with parameters of type TermModifier and TypeMethodDescriptionAdd a newTermto this builder, with a default boost of1.Add aTermwith the provided boost.BlendedTermQuery.Builder.add(Term term, float boost, TermStates context) Expert: Add aTermwith the provided boost and context.Add a single term at the next position in the phrase.Add multiple terms at the next position in the phrase.Allows to specify the relative position of terms within the phrase.Adds a term to the end of the query phrase.Adds a term to the end of the query phrase.protected voidMultiTermQuery.TopTermsBlendedFreqScoringRewrite.addClause(BlendedTermQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected voidMultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermStates states) protected voidMultiTermQuery.TopTermsScoringBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected final voidAdd a MultiTermQuery term to the top-level query builder.protected abstract voidTermCollectingRewrite.addClause(B topLevel, Term term, int docCount, float boost, TermStates states) Adds the providedtermas a synonym.Adds the providedtermas a synonym, document frequencies of this term will be boosted byboost.voidQueryVisitor.consumeTerms(Query query, Term... terms) Called by leaf queries that match on specific termsprivate booleanMultiPhraseQuery.termArraysEquals(Term[][] termArrays1, Term[][] termArrays2) private static booleanPhraseQuery.termNotInReader(LeafReader reader, Term term) private booleanTermQuery.TermWeight.termNotInReader(LeafReader reader, Term term) IndexSearcher.termStatistics(Term term, int docFreq, long totalTermFreq) ReturnsTermStatisticsfor a term.static AutomatonWildcardQuery.toAutomaton(Term wildcardquery) Convert Lucene wildcard syntax into an automaton.Method parameters in org.apache.lucene.search with type arguments of type TermModifier and TypeMethodDescriptionprivate static BytesRefIteratorDisjunctionMatchesIterator.asBytesRefIterator(List<Term> terms) (package private) static MatchesIteratorDisjunctionMatchesIterator.fromTerms(LeafReaderContext context, int doc, Query query, String field, List<Term> terms) Create aDisjunctionMatchesIteratorover a list of termsprivate ArrayList<ArrayList<PhrasePositions>> SloppyPhraseMatcher.gatherRptGroups(LinkedHashMap<Term, Integer> rptTerms) Detect repetition groups.private ArrayList<FixedBitSet> SloppyPhraseMatcher.ppTermsBitSets(PhrasePositions[] rpp, HashMap<Term, Integer> tord) bit-sets - for each repeating pp, for each of its repeating terms, the term ordinal values is setprivate PhrasePositions[]SloppyPhraseMatcher.repeatingPPs(HashMap<Term, Integer> rptTerms) find repeating pps, and for each, if has multi-terms, update this.hasMultiTermRptsstatic QueryVisitorQueryVisitor.termCollector(Set<Term> termSet) Builds aQueryVisitorinstance that collects all terms that may match a querySloppyPhraseMatcher.termGroups(LinkedHashMap<Term, Integer> tord, ArrayList<FixedBitSet> bb) map each term to the single group that contains itConstructors in org.apache.lucene.search with parameters of type TermModifierConstructorDescriptionAutomatonQuery(Term term, Automaton automaton) Create a new AutomatonQuery from anAutomaton.AutomatonQuery(Term term, Automaton automaton, int determinizeWorkLimit) Create a new AutomatonQuery from anAutomaton.AutomatonQuery(Term term, Automaton automaton, int determinizeWorkLimit, boolean isBinary) Create a new AutomatonQuery from anAutomaton.AutomatonQuery(Term term, Automaton automaton, int determinizeWorkLimit, boolean isBinary, MultiTermQuery.RewriteMethod rewriteMethod) Create a new AutomatonQuery from anAutomaton.privateBlendedTermQuery(Term[] terms, float[] boosts, TermStates[] contexts, BlendedTermQuery.RewriteMethod rewriteMethod) FuzzyQuery(Term term) FuzzyQuery(Term term, int maxEdits) FuzzyQuery(Term term, int maxEdits, int prefixLength) FuzzyQuery(Term term, int maxEdits, int prefixLength, int maxExpansions, boolean transpositions) CallsFuzzyQuery(Term, int, int, int, boolean, org.apache.lucene.search.MultiTermQuery.RewriteMethod)FuzzyQuery(term, maxEdits, prefixLength, maxExpansions, defaultRewriteMethod(maxExpansions))FuzzyQuery(Term term, int maxEdits, int prefixLength, int maxExpansions, boolean transpositions, MultiTermQuery.RewriteMethod rewriteMethod) Create a new FuzzyQuery that will match terms with an edit distance of at mostmaxEditstoterm.FuzzyTermsEnum(Terms terms, Term term, int maxEdits, int prefixLength, boolean transpositions) Constructor for enumeration of all terms from specifiedreaderwhich share a prefix of lengthprefixLengthwithtermand which have at mostmaxEditsedits.(package private)FuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, int maxEdits, int prefixLength, boolean transpositions) Constructor for enumeration of all terms from specifiedreaderwhich share a prefix of lengthprefixLengthwithtermand which have at mostmaxEditsedits.privateFuzzyTermsEnum(Terms terms, AttributeSource atts, Term term, Supplier<FuzzyAutomatonBuilder> automatonBuilder) privateMultiPhraseQuery(String field, Term[][] termArrays, int[] positions, int slop) (package private)PhrasePositions(PostingsEnum postings, int o, int ord, Term[] terms) privatePhraseQuery(int slop, Term[] terms, int[] positions) PostingsAndFreq(PostingsEnum postings, ImpactsEnum impacts, int position, Term... terms) Creates PostingsAndFreq instancePrefixQuery(Term prefix) Constructs a query for terms starting withprefix.PrefixQuery(Term prefix, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query for terms starting withprefixusing a defined RewriteMethodRegexpQuery(Term term) Constructs a query for terms matchingterm.RegexpQuery(Term term, int flags) Constructs a query for terms matchingterm.RegexpQuery(Term term, int flags, int determinizeWorkLimit) Constructs a query for terms matchingterm.RegexpQuery(Term term, int syntax_flags, int match_flags, int determinizeWorkLimit) Constructs a query for terms matchingterm.RegexpQuery(Term term, int syntax_flags, int match_flags, AutomatonProvider provider, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query for terms matchingterm.RegexpQuery(Term term, int syntax_flags, AutomatonProvider provider, int determinizeWorkLimit) Constructs a query for terms matchingterm.Constructs a query for the termt.TermQuery(Term t, TermStates states) Expert: constructs a TermQuery that will use the provided docFreq instead of looking up the docFreq against the searcher.WildcardQuery(Term term) Constructs a query for terms matchingterm.WildcardQuery(Term term, int determinizeWorkLimit) Constructs a query for terms matchingterm.WildcardQuery(Term term, int determinizeWorkLimit, MultiTermQuery.RewriteMethod rewriteMethod) Constructs a query for terms matchingterm.Constructor parameters in org.apache.lucene.search with type arguments of type TermModifierConstructorDescriptionPostingsAndFreq(PostingsEnum postings, ImpactsEnum impacts, int position, List<Term> terms) -
Uses of Term in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type TermModifier and TypeMethodDescriptionvoidQueryTermExtractor.BoostedTermExtractor.consumeTerms(Query query, Term... terms) -
Uses of Term in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as TermModifier and TypeFieldDescriptionstatic final TermWordBreakSpellChecker.SEPARATOR_TERMTerm that can be used to prohibit adjacent terms from being combinedMethods in org.apache.lucene.search.spell with parameters of type TermModifier 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) 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.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. -
Uses of Term in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as TermMethods in org.apache.lucene.search.suggest.document that return TermModifier and TypeMethodDescriptionCompletionQuery.getTerm()Returns the term to be queried againstConstructors in org.apache.lucene.search.suggest.document with parameters of type TermModifierConstructorDescriptionprotectedCompletionQuery(Term term, BitsProducer filter) Creates a base Completion query against atermwith afilterto scope the documentsFuzzyCompletionQuery(Analyzer analyzer, Term term) CallsFuzzyCompletionQuery(Analyzer, Term, BitsProducer)with no filterFuzzyCompletionQuery(Analyzer analyzer, Term term, BitsProducer filter) CallsFuzzyCompletionQuery(Analyzer, Term, BitsProducer, int, boolean, int, int, boolean, int)with defaults formaxEdits,transpositions,nonFuzzyPrefix,minFuzzyLength,unicodeAwareanddeterminizeWorkLimitSeeFuzzyCompletionQuery.DEFAULT_MAX_EDITS,FuzzyCompletionQuery.DEFAULT_TRANSPOSITIONS,FuzzyCompletionQuery.DEFAULT_NON_FUZZY_PREFIX,FuzzyCompletionQuery.DEFAULT_MIN_FUZZY_LENGTH,FuzzyCompletionQuery.DEFAULT_UNICODE_AWAREandOperations.DEFAULT_DETERMINIZE_WORK_LIMITfor defaultsFuzzyCompletionQuery(Analyzer analyzer, Term term, BitsProducer filter, int maxEdits, boolean transpositions, int nonFuzzyPrefix, int minFuzzyLength, boolean unicodeAware, int determinizeWorkLimit) Constructs an analyzed fuzzy prefix completion queryPrefixCompletionQuery(Analyzer analyzer, Term term) CallsPrefixCompletionQuery(Analyzer, Term, BitsProducer)with no filterPrefixCompletionQuery(Analyzer analyzer, Term term, BitsProducer filter) Constructs an analyzed prefix completion queryRegexCompletionQuery(Term term) CallsRegexCompletionQuery(Term, BitsProducer)with no filterRegexCompletionQuery(Term term, int flags, int determinizeWorkLimit) CallsRegexCompletionQuery(Term, int, int, BitsProducer)with no filterRegexCompletionQuery(Term term, int flags, int determinizeWorkLimit, BitsProducer filter) Constructs a regular expression completion queryRegexCompletionQuery(Term term, BitsProducer filter) CallsRegexCompletionQuery(Term, int, int, BitsProducer)enabling all optional regex syntax anddeterminizeWorkLimitof 10000 -
Uses of Term in org.apache.lucene.search.uhighlight
Methods in org.apache.lucene.search.uhighlight that return types with arguments of type TermModifier and TypeMethodDescriptionUnifiedHighlighter.extractTerms(Query query) Extracts matching termsMethods in org.apache.lucene.search.uhighlight with parameters of type TermModifier and TypeMethodDescriptionvoidPhraseHelper.OffsetSpanCollector.collectLeaf(PostingsEnum postings, int position, Term term) Method parameters in org.apache.lucene.search.uhighlight with type arguments of type TermModifier and TypeMethodDescriptionprotected static BytesRef[]UnifiedHighlighter.filterExtractedTerms(Predicate<String> fieldMatcher, Set<Term> queryTerms) protected FieldHighlighterUnifiedHighlighter.getFieldHighlighter(String field, Query query, Set<Term> allTerms, int maxPassages) protected UHComponentsUnifiedHighlighter.getHighlightComponents(String field, Query query, Set<Term> allTerms) -
Uses of Term in org.apache.lucene.search.vectorhighlight
Methods in org.apache.lucene.search.vectorhighlight with parameters of type TermModifier and TypeMethodDescription(package private) voidprivate voidFieldQuery.checkOverlap(Collection<Query> expandQueries, Term[] src, Term[] dest, int slop, float boost) -
Uses of Term in org.apache.lucene.util
Methods in org.apache.lucene.util with parameters of type TermModifier and TypeMethodDescriptionvoidRamUsageEstimator.RamUsageQueryVisitor.consumeTerms(Query query, Term... terms) protected QueryQueryBuilder.newTermQuery(Term term, float boost) Builds a new TermQuery instance. -
Uses of Term in org.apache.lucene.util.graph
Methods in org.apache.lucene.util.graph that return Term