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 double
BM25NBClassifier.calculateLogLikelihood
(String[] tokens, Term term) private double
SimpleNaiveBayesClassifier.calculateLogLikelihood
(String[] tokenizedText, Term term, int docsWithClass) private double
BM25NBClassifier.calculateLogPrior
(Term term) private double
SimpleNaiveBayesClassifier.calculateLogPrior
(Term term, int docsWithClassSize) private int
private double
BM25NBClassifier.getTermProbForClass
(Term classTerm, String... words) private double
SimpleNaiveBayesClassifier.getTextTermFreqForClass
(Term term) Returns the average number of unique terms times the number of docs belonging to the input classprivate int
SimpleNaiveBayesClassifier.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 double
SimpleNaiveBayesDocumentClassifier.calculateLogLikelihood
(String[] tokenizedText, String fieldName, Term term, int docsWithClass) private double
SimpleNaiveBayesDocumentClassifier.calculateLogPrior
(Term term, int docsWithClassSize) private int
private double
SimpleNaiveBayesDocumentClassifier.getTextTermFreqForClass
(Term term, String fieldName) Returns the average number of unique terms times the number of docs belonging to the input classprivate int
SimpleNaiveBayesDocumentClassifier.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 Term
NearestFuzzyQuery.ScoreTerm.fuzziedSourceTerm
final Term
NearestFuzzyQuery.ScoreTerm.term
Methods in org.apache.lucene.classification.utils with parameters of type TermModifier and TypeMethodDescriptionprivate Query
NearestFuzzyQuery.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 Term
PrefixCodedTerms.Builder.lastTerm
(package private) final Term
DocValuesUpdate.term
private final Term
TermStates.term
Fields in org.apache.lucene.index with type parameters of type TermMethods in org.apache.lucene.index that return types with arguments of type TermMethods in org.apache.lucene.index with parameters of type TermModifier and TypeMethodDescriptionvoid
add a term(package private) long
(package private) void
FieldUpdatesBuffer.addNoValue
(Term term, int docUpTo) void
(package private) void
(package private) void
private int
static TermStates
TermStates.build
(IndexReaderContext context, Term term, boolean needsStats) private DocValuesUpdate[]
IndexWriter.buildDocValuesUpdate
(Term term, Field[] updates) final int
Compares 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.long
IndexWriter.deleteDocuments
(Term... terms) Deletes the document(s) containing any of the terms.(package private) long
DocumentsWriter.deleteTerms
(Term... terms) final int
abstract int
Returns the number of documents containing theterm
.final int
private static TermsEnum
TermStates.loadTermsEnum
(LeafReaderContext ctx, Term term) (package private) static DocumentsWriterDeleteQueue.Node<Term>
final PostingsEnum
ReturnsPostingsEnum
for the specified term withPostingsEnum.FREQS
.final PostingsEnum
ReturnsPostingsEnum
for the specified term.long
IndexWriter.softUpdateDocument
(Term term, Iterable<? extends IndexableField> doc, Field... softDeletes) Expert: Updates a document by first updating the document(s) containingterm
with the given doc-values fields and then adding the new document.long
IndexWriter.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 long
BaseCompositeReader.totalTermFreq
(Term term) abstract long
IndexReader.totalTermFreq
(Term term) Returns the total number of occurrences ofterm
across all documents (the sum of the freq() for each doc that has this term).final long
LeafReader.totalTermFreq
(Term term) Returns the number of documents containing the termt
.long
IndexWriter.updateBinaryDocValue
(Term term, String field, BytesRef value) long
IndexWriter.updateDocument
(Term term, Iterable<? extends IndexableField> doc) Updates a document by first deleting the document(s) containingterm
and then adding the new document.long
IndexWriter.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.long
IndexWriter.updateDocValues
(Term term, Field... updates) Updates documents' DocValues fields to the given values.long
IndexWriter.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) private
BinaryDocValuesUpdate
(Term term, String field, BytesRef value, int docIDUpTo) protected
DocValuesUpdate
(DocValuesType type, Term term, String field, int docIDUpTo, boolean hasValue) Constructor.(package private)
NumericDocValuesUpdate
(Term term, String field, long value) private
NumericDocValuesUpdate
(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)
private
TermStates
(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 TypeMethodDescriptionvoid
QueryAnalyzer.QueryBuilder.consumeTerms
(Query query, Term... terms) static QueryTree
Returns a leaf node for a particular term and weightstatic QueryTree
QueryTree.term
(Term term, TermWeightor weightor) Returns a leaf node for a particular termstatic TermWeightor
TermWeightor.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 TermWeightor
TermWeightor.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 TypeMethodDescriptionvoid
PayloadSpanCollector.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 TypeMethodDescriptionvoid
Adds a term to theCommonTermsQuery
protected Query
CommonTermsQuery.buildQuery
(int maxDoc, TermStates[] contextArray, Term[] queryTerms) void
CommonTermsQuery.collectTermStates
(IndexReader reader, List<LeafReaderContext> leaves, TermStates[] contextArray, Term[] queryTerms) protected Query
CommonTermsQuery.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 Term
IndexReaderFunctions.TermFreqDoubleValuesSource.term
Methods in org.apache.lucene.queries.function with parameters of type TermModifier and TypeMethodDescriptionstatic DoubleValuesSource
Creates a constant value source returning the docFreq of a given termstatic DoubleValuesSource
Creates a value source that returns the term freq of a given term for each documentstatic DoubleValuesSource
IndexReaderFunctions.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 TypeMethodDescriptionvoid
PayloadScoreQuery.PayloadSpans.collectLeaf
(PostingsEnum postings, int position, Term term) void
SpanPayloadCheckQuery.PayloadChecker.collectLeaf
(PostingsEnum postings, int position, Term term) Method parameters in org.apache.lucene.queries.payloads with type arguments of type TermModifier and TypeMethodDescriptionvoid
PayloadScoreQuery.PayloadSpanWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanPayloadCheckQuery.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 Term
SpanTermQuery.term
(package private) Term
SpanWeight.TermMatch.term
protected final Term
TermSpans.term
Methods 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 TypeMethodDescriptionvoid
SpanCollector.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.SimScorer
SpanWeight.buildSimWeight
(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) void
SpanContainQuery.SpanContainWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanNearQuery.SpanGapQuery.SpanGapWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanNearQuery.SpanNearWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanNotQuery.SpanNotWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanOrQuery.SpanOrWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanPositionCheckQuery.SpanPositionCheckWeight.extractTermStates
(Map<Term, TermStates> contexts) void
SpanTermQuery.SpanTermWeight.extractTermStates
(Map<Term, TermStates> contexts) abstract void
SpanWeight.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 Query
QueryParserBase.newFuzzyQuery
(Term term, float minimumSimilarity, int prefixLength) Builds a new FuzzyQuery instanceprotected Query
QueryParserBase.newPrefixQuery
(Term prefix) Builds a new PrefixQuery instanceprotected Query
QueryParserBase.newRegexpQuery
(Term regexp) Builds a new RegexpQuery instanceprotected Query
QueryParserBase.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 Query
ComplexPhraseQueryParser.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 TermModifier and TypeMethodDescriptionSrndPrefixQuery.getLucenePrefixTerm
(String fieldName) SrndTermQuery.getLuceneTerm
(String fieldName) Methods in org.apache.lucene.queryparser.surround.query with parameters of type TermModifier and TypeMethodDescriptionvoid
SpanNearClauseFactory.addTermWeighted
(Term t, float weight) BasicQueryFactory.newSpanTermQuery
(Term term) BasicQueryFactory.newTermQuery
(Term term) void
SimpleTerm.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) Term
FuzzyLikeThisQuery.ScoreTerm.fuzziedSourceTerm
FuzzyLikeThisQuery.ScoreTerm.term
Methods in org.apache.lucene.sandbox.queries with parameters of type TermModifier and TypeMethodDescriptionprivate Query
FuzzyLikeThisQuery.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.fieldTerms
protected final Term
PhraseWildcardQuery.SingleTerm.term
Fields 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 Term
AutomatonQuery.term
term containing the field, and possibly some pattern structureprivate final Term
FuzzyQuery.term
private final Term
FuzzyTermsEnum.term
(package private) final Term
SynonymQuery.TermAndBoost.term
private final Term
TermQuery.term
private final Term[][]
MultiPhraseQuery.termArrays
private Term[]
BlendedTermQuery.Builder.terms
private final Term[]
BlendedTermQuery.terms
(package private) final Term[]
PhrasePositions.terms
(package private) final Term[]
PhraseQuery.PostingsAndFreq.terms
private final Term[]
PhraseQuery.terms
Fields 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.(package private) Term
SynonymQuery.TermAndBoost.getTerm()
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()
private 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 newTerm
to this builder, with a default boost of1
.Add aTerm
with the provided boost.BlendedTermQuery.Builder.add
(Term term, float boost, TermStates context) Expert: Add aTerm
with 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 void
MultiTermQuery.TopTermsBlendedFreqScoringRewrite.addClause
(BlendedTermQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected void
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.addClause
(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermStates states) protected void
MultiTermQuery.TopTermsScoringBooleanQueryRewrite.addClause
(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected final void
Add a MultiTermQuery term to the top-level query builder.protected abstract void
TermCollectingRewrite.addClause
(B topLevel, Term term, int docCount, float boost, TermStates states) Adds the providedterm
as a synonym.Adds the providedterm
as a synonym, document frequencies of this term will be boosted byboost
.void
QueryVisitor.consumeTerms
(Query query, Term... terms) Called by leaf queries that match on specific termsprivate boolean
MultiPhraseQuery.termArraysEquals
(Term[][] termArrays1, Term[][] termArrays2) private static boolean
PhraseQuery.termNotInReader
(LeafReader reader, Term term) private boolean
TermQuery.TermWeight.termNotInReader
(LeafReader reader, Term term) IndexSearcher.termStatistics
(Term term, int docFreq, long totalTermFreq) ReturnsTermStatistics
for a term.static Automaton
WildcardQuery.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 BytesRefIterator
DisjunctionMatchesIterator.asBytesRefIterator
(List<Term> terms) (package private) static MatchesIterator
DisjunctionMatchesIterator.fromTerms
(LeafReaderContext context, int doc, Query query, String field, List<Term> terms) Create aDisjunctionMatchesIterator
over 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 QueryVisitor
QueryVisitor.termCollector
(Set<Term> termSet) Builds aQueryVisitor
instance 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
.private
BlendedTermQuery
(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 mostmaxEdits
toterm
.FuzzyTermsEnum
(Terms terms, Term term, int maxEdits, int prefixLength, boolean transpositions) Constructor for enumeration of all terms from specifiedreader
which share a prefix of lengthprefixLength
withterm
and which have at mostmaxEdits
edits.(package private)
FuzzyTermsEnum
(Terms terms, AttributeSource atts, Term term, int maxEdits, int prefixLength, boolean transpositions) Constructor for enumeration of all terms from specifiedreader
which share a prefix of lengthprefixLength
withterm
and which have at mostmaxEdits
edits.private
FuzzyTermsEnum
(Terms terms, AttributeSource atts, Term term, Supplier<FuzzyAutomatonBuilder> automatonBuilder) private
MultiPhraseQuery
(String field, Term[][] termArrays, int[] positions, int slop) (package private)
PhrasePositions
(PostingsEnum postings, int o, int ord, Term[] terms) private
PhraseQuery
(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 withprefix
using 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
.(package private)
TermAndBoost
(Term term, float boost) 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 TypeMethodDescriptionvoid
QueryTermExtractor.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 Term
WordBreakSpellChecker.SEPARATOR_TERM
Term that can be used to prohibit adjacent terms from being combinedMethods in org.apache.lucene.search.spell with parameters of type TermModifier and TypeMethodDescriptionprivate int
WordBreakSpellChecker.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 TermModifierConstructorDescriptionprotected
CompletionQuery
(Term term, BitsProducer filter) Creates a base Completion query against aterm
with afilter
to 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
,unicodeAware
anddeterminizeWorkLimit
SeeFuzzyCompletionQuery.DEFAULT_MAX_EDITS
,FuzzyCompletionQuery.DEFAULT_TRANSPOSITIONS
,FuzzyCompletionQuery.DEFAULT_NON_FUZZY_PREFIX
,FuzzyCompletionQuery.DEFAULT_MIN_FUZZY_LENGTH
,FuzzyCompletionQuery.DEFAULT_UNICODE_AWARE
andOperations.DEFAULT_DETERMINIZE_WORK_LIMIT
for 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 anddeterminizeWorkLimit
of 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 terms after rewriting against an empty indexMethods in org.apache.lucene.search.uhighlight with parameters of type TermModifier and TypeMethodDescriptionvoid
PhraseHelper.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 FieldHighlighter
UnifiedHighlighter.getFieldHighlighter
(String field, Query query, Set<Term> allTerms, int maxPassages) protected UHComponents
UnifiedHighlighter.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) void
private void
FieldQuery.checkOverlap
(Collection<Query> expandQueries, Term[] src, Term[] dest, int slop, float boost) -
Uses of Term in org.apache.lucene.util
Fields in org.apache.lucene.util declared as TermMethods in org.apache.lucene.util with parameters of type TermModifier and TypeMethodDescriptionvoid
RamUsageEstimator.RamUsageQueryVisitor.consumeTerms
(Query query, Term... terms) protected Query
QueryBuilder.newTermQuery
(Term term, float boost) Builds a new TermQuery instance.Constructors in org.apache.lucene.util with parameters of type Term -
Uses of Term in org.apache.lucene.util.graph
Methods in org.apache.lucene.util.graph that return Term