Package | Description |
---|---|
org.apache.lucene.analysis.query |
Automatically filter high-frequency stopwords.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.payloads |
Experimental classes for interacting with payloads
|
org.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.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
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.intervals |
Intervals queries
|
org.apache.lucene.search.spans |
The calculus of spans.
|
org.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.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.graph |
Utility classes for working with token streams as graphs.
|
Modifier and Type | Method and Description |
---|---|
Term[] |
QueryAutoStopWordAnalyzer.getStopWords()
Provides information on which stop words have been identified for all fields
|
Modifier and Type | Field and Description |
---|---|
private Term |
PrefixCodedTerms.Builder.lastTerm |
private Term |
TermStates.term |
(package private) Term |
DocValuesUpdate.term |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<Term,java.lang.Integer> |
BufferedUpdates.deleteTerms |
Modifier and Type | Method and Description |
---|---|
(package private) static DocumentsWriterDeleteQueue.Node<Term> |
DocumentsWriterDeleteQueue.newNode(Term term) |
Modifier and Type | Method and Description |
---|---|
void |
PrefixCodedTerms.Builder.add(Term term)
add a term
|
(package private) long |
DocumentsWriterDeleteQueue.addDelete(Term... terms) |
(package private) void |
FieldUpdatesBuffer.addNoValue(Term term,
int docUpTo) |
void |
BufferedUpdates.addTerm(Term term,
int docIDUpto) |
(package private) void |
FieldUpdatesBuffer.addUpdate(Term term,
BytesRef value,
int docUpTo) |
(package private) void |
FieldUpdatesBuffer.addUpdate(Term term,
long value,
int docUpTo) |
private int |
FieldUpdatesBuffer.append(Term term) |
static TermStates |
TermStates.build(IndexReaderContext context,
Term term,
boolean needsStats)
|
private DocValuesUpdate[] |
IndexWriter.buildDocValuesUpdate(Term term,
Field[] updates) |
int |
Term.compareTo(Term other)
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) |
int |
LeafReader.docFreq(Term term) |
int |
BaseCompositeReader.docFreq(Term term) |
abstract int |
IndexReader.docFreq(Term term)
Returns the number of documents containing the
term . |
private static TermsEnum |
TermStates.loadTermsEnum(LeafReaderContext ctx,
Term term) |
(package private) static DocumentsWriterDeleteQueue.Node<Term> |
DocumentsWriterDeleteQueue.newNode(Term term) |
PostingsEnum |
LeafReader.postings(Term term)
Returns
PostingsEnum for the specified term
with PostingsEnum.FREQS . |
PostingsEnum |
LeafReader.postings(Term term,
int flags)
Returns
PostingsEnum for the specified term. |
long |
IndexWriter.softUpdateDocument(Term term,
java.lang.Iterable<? extends IndexableField> doc,
Field... softDeletes)
Expert:
Updates a document by first updating the document(s)
containing
term with the given doc-values fields
and then adding the new document. |
long |
IndexWriter.softUpdateDocuments(Term term,
java.lang.Iterable<? extends java.lang.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.
|
long |
LeafReader.totalTermFreq(Term term)
Returns the number of documents containing the term
t . |
long |
BaseCompositeReader.totalTermFreq(Term term) |
abstract long |
IndexReader.totalTermFreq(Term term)
Returns the total number of occurrences of
term across all
documents (the sum of the freq() for each doc that has this term). |
long |
IndexWriter.updateBinaryDocValue(Term term,
java.lang.String field,
BytesRef value)
|
long |
IndexWriter.updateDocument(Term term,
java.lang.Iterable<? extends IndexableField> doc)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
long |
IndexWriter.updateDocuments(Term delTerm,
java.lang.Iterable<? extends java.lang.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,
java.lang.String field,
long value)
|
Constructor and Description |
---|
BinaryDocValuesUpdate(Term term,
java.lang.String field,
BytesRef value) |
BinaryDocValuesUpdate(Term term,
java.lang.String field,
BytesRef value,
int docIDUpTo) |
DocValuesUpdate(DocValuesType type,
Term term,
java.lang.String field,
int docIDUpto,
boolean hasValue)
Constructor.
|
NumericDocValuesUpdate(Term term,
java.lang.String field,
long value) |
NumericDocValuesUpdate(Term term,
java.lang.String field,
java.lang.Long value) |
NumericDocValuesUpdate(Term term,
java.lang.String field,
long value,
int docIDUpTo,
boolean hasValue) |
PKIndexSplitter(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) |
TermArrayNode(Term[] term) |
TermNode(Term term) |
TermStates(Term term,
IndexReaderContext context) |
Modifier and Type | Method and Description |
---|---|
static void |
GetTermInfo.getTermInfo(Directory dir,
Term term) |
Modifier and Type | Method and Description |
---|---|
void |
PayloadSpanCollector.collectLeaf(PostingsEnum postings,
int position,
Term term) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Term> |
CommonTermsQuery.terms |
Modifier and Type | Method and Description |
---|---|
java.util.List<Term> |
CommonTermsQuery.getTerms()
Gets the list of terms.
|
Modifier and Type | Method and Description |
---|---|
void |
CommonTermsQuery.add(Term term)
Adds a term to the
CommonTermsQuery |
protected Query |
CommonTermsQuery.buildQuery(int maxDoc,
TermStates[] contextArray,
Term[] queryTerms) |
void |
CommonTermsQuery.collectTermStates(IndexReader reader,
java.util.List<LeafReaderContext> leaves,
TermStates[] contextArray,
Term[] queryTerms) |
protected Query |
CommonTermsQuery.newTermQuery(Term term,
TermStates termStates)
Builds a new TermQuery instance.
|
Modifier and Type | Field and Description |
---|---|
private Term |
IndexReaderFunctions.TermFreqDoubleValuesSource.term |
Modifier and Type | Method and Description |
---|---|
static DoubleValuesSource |
IndexReaderFunctions.docFreq(Term term)
Creates a constant value source returning the docFreq of a given term
|
static DoubleValuesSource |
IndexReaderFunctions.termFreq(Term term)
Creates a value source that returns the term freq of a given term for each document
|
static DoubleValuesSource |
IndexReaderFunctions.totalTermFreq(Term term)
Creates a constant value source returning the totalTermFreq for a given term
|
Modifier and Type | Method and Description |
---|---|
void |
FunctionRangeQuery.FunctionRangeWeight.extractTerms(java.util.Set<Term> terms) |
void |
FunctionScoreQuery.FunctionScoreWeight.extractTerms(java.util.Set<Term> terms) |
void |
FunctionQuery.FunctionWeight.extractTerms(java.util.Set<Term> terms) |
Constructor and Description |
---|
TermFreqDoubleValuesSource(Term term) |
Modifier and Type | Method and Description |
---|---|
void |
PayloadScoreQuery.PayloadSpans.collectLeaf(PostingsEnum postings,
int position,
Term term) |
void |
SpanPayloadCheckQuery.PayloadChecker.collectLeaf(PostingsEnum postings,
int position,
Term term) |
Modifier and Type | Method and Description |
---|---|
void |
PayloadScoreQuery.PayloadSpanWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanPayloadCheckQuery.SpanPayloadCheckWeight.extractTerms(java.util.Set<Term> terms) |
void |
PayloadScoreQuery.PayloadSpanWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanPayloadCheckQuery.SpanPayloadCheckWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
Constructor and Description |
---|
SpanPayloadCheckWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> termStates,
SpanWeight matchWeight,
float boost) |
Modifier and Type | Method and Description |
---|---|
protected Query |
QueryParserBase.newFuzzyQuery(Term term,
float minimumSimilarity,
int prefixLength)
Builds a new FuzzyQuery instance
|
protected Query |
QueryParserBase.newPrefixQuery(Term prefix)
Builds a new PrefixQuery instance
|
protected Query |
QueryParserBase.newRegexpQuery(Term regexp)
Builds a new RegexpQuery instance
|
protected Query |
QueryParserBase.newWildcardQuery(Term t)
Builds a new WildcardQuery instance
|
Modifier and Type | Method and Description |
---|---|
protected Query |
ComplexPhraseQueryParser.newTermQuery(Term term) |
Modifier and Type | Method and Description |
---|---|
Term |
SrndPrefixQuery.getLucenePrefixTerm(java.lang.String fieldName) |
Term |
SrndTermQuery.getLuceneTerm(java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
void |
SpanNearClauseFactory.addTermWeighted(Term t,
float weight) |
SpanTermQuery |
BasicQueryFactory.newSpanTermQuery(Term term) |
TermQuery |
BasicQueryFactory.newTermQuery(Term term) |
void |
SimpleTerm.MatchingTermVisitor.visitMatchingTerm(Term t) |
Modifier and Type | Field and Description |
---|---|
(package private) Term |
FuzzyLikeThisQuery.ScoreTerm.fuzziedSourceTerm |
Term |
FuzzyLikeThisQuery.ScoreTerm.term |
Modifier and Type | Method and Description |
---|---|
private Query |
FuzzyLikeThisQuery.newTermQuery(IndexReader reader,
Term term) |
Constructor and Description |
---|
ScoreTerm(Term term,
float score,
Term fuzziedSourceTerm) |
Modifier and Type | Field and Description |
---|---|
private Term[] |
BM25FQuery.fieldTerms |
(package private) Term |
SynonymQuery.TermAndBoost.term |
private Term |
FuzzyQuery.term |
protected Term |
AutomatonQuery.term
term containing the field, and possibly some pattern structure
|
private Term |
TermQuery.term |
(package private) Term |
FuzzyTermsEnum.term |
private Term[][] |
MultiPhraseQuery.termArrays |
private Term[] |
BlendedTermQuery.terms |
private Term[] |
BlendedTermQuery.Builder.terms |
(package private) Term[] |
PhrasePositions.terms |
private Term[] |
PhraseQuery.terms |
(package private) Term[] |
PhraseQuery.PostingsAndFreq.terms |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Term> |
PhraseQuery.Builder.terms |
Modifier and Type | Method and Description |
---|---|
Term |
PrefixQuery.getPrefix()
Returns the prefix of this query.
|
Term |
RegexpQuery.getRegexp()
Returns the regexp of this query wrapped in a Term.
|
(package private) Term |
SynonymQuery.TermAndBoost.getTerm() |
Term |
FuzzyQuery.getTerm()
Returns the pattern term.
|
Term |
WildcardQuery.getTerm()
Returns the pattern term.
|
Term |
TermQuery.getTerm()
Returns the term of this query.
|
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[] |
PhraseQuery.toTerms(java.lang.String field,
BytesRef... termBytes) |
private static Term[] |
PhraseQuery.toTerms(java.lang.String field,
java.lang.String... termStrings) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Term> |
BM25FQuery.getTerms() |
java.util.List<Term> |
SynonymQuery.getTerms() |
private java.util.LinkedHashMap<Term,java.lang.Integer> |
SloppyPhraseMatcher.repeatingTerms()
find repeating terms and assign them ordinal values
|
private java.util.HashMap<Term,java.lang.Integer> |
SloppyPhraseMatcher.termGroups(java.util.LinkedHashMap<Term,java.lang.Integer> tord,
java.util.ArrayList<FixedBitSet> bb)
map each term to the single group that contains it
|
Modifier and Type | Method and Description |
---|---|
BlendedTermQuery.Builder |
BlendedTermQuery.Builder.add(Term term)
Add a new
Term to this builder, with a default boost of 1 . |
PhraseQuery.Builder |
PhraseQuery.Builder.add(Term term)
Adds a term to the end of the query phrase.
|
MultiPhraseQuery.Builder |
MultiPhraseQuery.Builder.add(Term term)
Add a single term at the next position in the phrase.
|
MultiPhraseQuery.Builder |
MultiPhraseQuery.Builder.add(Term[] terms)
Add multiple terms at the next position in the phrase.
|
MultiPhraseQuery.Builder |
MultiPhraseQuery.Builder.add(Term[] terms,
int position)
Allows to specify the relative position of terms within the phrase.
|
BlendedTermQuery.Builder |
BlendedTermQuery.Builder.add(Term term,
float boost)
Add a
Term with the provided boost. |
BlendedTermQuery.Builder |
BlendedTermQuery.Builder.add(Term term,
float boost,
TermStates context)
Expert: Add a
Term with the provided boost and context. |
PhraseQuery.Builder |
PhraseQuery.Builder.add(Term term,
int position)
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.TopTermsScoringBooleanQueryRewrite.addClause(BooleanQuery.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 |
TermCollectingRewrite.addClause(B topLevel,
Term term,
int docCount,
float boost)
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) |
SynonymQuery.Builder |
SynonymQuery.Builder.addTerm(Term term)
Adds the provided
term as a synonym. |
SynonymQuery.Builder |
SynonymQuery.Builder.addTerm(Term term,
float boost)
Adds the provided
term as a synonym, document frequencies of this term
will be boosted by boost . |
void |
QueryVisitor.consumeTerms(Query query,
Term... terms)
Called by leaf queries that match on specific terms
|
private boolean |
MultiPhraseQuery.termArraysEquals(Term[][] termArrays1,
Term[][] termArrays2) |
private boolean |
MultiPhraseQuery.termArraysEquals(Term[][] termArrays1,
Term[][] termArrays2) |
private boolean |
TermQuery.TermWeight.termNotInReader(LeafReader reader,
Term term) |
private static boolean |
PhraseQuery.termNotInReader(LeafReader reader,
Term term) |
TermStatistics |
IndexSearcher.termStatistics(Term term,
TermStates context)
Returns
TermStatistics for a term, or null if
the term does not exist. |
static Automaton |
WildcardQuery.toAutomaton(Term wildcardquery)
Convert Lucene wildcard syntax into an automaton.
|
Modifier and Type | Method and Description |
---|---|
private static BytesRefIterator |
DisjunctionMatchesIterator.asBytesRefIterator(java.util.List<Term> terms) |
void |
TermAutomatonQuery.TermAutomatonWeight.extractTerms(java.util.Set<Term> terms) |
void |
BM25FQuery.BM25FWeight.extractTerms(java.util.Set<Term> termSet) |
void |
CoveringQuery.CoveringWeight.extractTerms(java.util.Set<Term> terms) |
abstract void |
Weight.extractTerms(java.util.Set<Term> terms)
Deprecated.
|
void |
FilterWeight.extractTerms(java.util.Set<Term> terms) |
void |
SynonymQuery.SynonymWeight.extractTerms(java.util.Set<Term> terms) |
void |
LRUQueryCache.CachingWrapperWeight.extractTerms(java.util.Set<Term> terms) |
void |
DisjunctionMaxQuery.DisjunctionMaxWeight.extractTerms(java.util.Set<Term> terms) |
void |
ConstantScoreWeight.extractTerms(java.util.Set<Term> terms) |
void |
TermQuery.TermWeight.extractTerms(java.util.Set<Term> terms) |
void |
BooleanWeight.extractTerms(java.util.Set<Term> terms) |
(package private) static MatchesIterator |
DisjunctionMatchesIterator.fromTerms(LeafReaderContext context,
int doc,
Query query,
java.lang.String field,
java.util.List<Term> terms)
Create a
DisjunctionMatchesIterator over a list of terms
Only terms that have at least one match in the given document will be included |
private java.util.ArrayList<java.util.ArrayList<PhrasePositions>> |
SloppyPhraseMatcher.gatherRptGroups(java.util.LinkedHashMap<Term,java.lang.Integer> rptTerms)
Detect repetition groups.
|
private java.util.ArrayList<FixedBitSet> |
SloppyPhraseMatcher.ppTermsBitSets(PhrasePositions[] rpp,
java.util.HashMap<Term,java.lang.Integer> tord)
bit-sets - for each repeating pp, for each of its repeating terms, the term ordinal values is set
|
private PhrasePositions[] |
SloppyPhraseMatcher.repeatingPPs(java.util.HashMap<Term,java.lang.Integer> rptTerms)
find repeating pps, and for each, if has multi-terms, update this.hasMultiTermRpts
|
static QueryVisitor |
QueryVisitor.termCollector(java.util.Set<Term> termSet)
Builds a
QueryVisitor instance that collects all terms that may match a query |
private java.util.HashMap<Term,java.lang.Integer> |
SloppyPhraseMatcher.termGroups(java.util.LinkedHashMap<Term,java.lang.Integer> tord,
java.util.ArrayList<FixedBitSet> bb)
map each term to the single group that contains it
|
Constructor and Description |
---|
AutomatonQuery(Term term,
Automaton automaton)
Create a new AutomatonQuery from an
Automaton . |
AutomatonQuery(Term term,
Automaton automaton,
int maxDeterminizedStates)
Create a new AutomatonQuery from an
Automaton . |
AutomatonQuery(Term term,
Automaton automaton,
int maxDeterminizedStates,
boolean isBinary)
Create a new AutomatonQuery from an
Automaton . |
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)
Create a new FuzzyQuery that will match terms with an edit distance
of at most
maxEdits to term . |
FuzzyTermsEnum(Terms terms,
AttributeSource atts,
Term term,
int maxEdits,
int prefixLength,
boolean transpositions)
Constructor for enumeration of all terms from specified
reader which share a prefix of
length prefixLength with term and which have at most maxEdits edits. |
MultiPhraseQuery(java.lang.String field,
Term[][] termArrays,
int[] positions,
int slop) |
PhrasePositions(PostingsEnum postings,
int o,
int ord,
Term[] terms) |
PhraseQuery(int slop,
Term[] terms,
int[] positions) |
PostingsAndFreq(PostingsEnum postings,
int position,
Term... terms) |
PrefixQuery(Term prefix)
Constructs a query for terms starting with
prefix . |
RegexpQuery(Term term)
Constructs a query for terms matching
term . |
RegexpQuery(Term term,
int flags)
Constructs a query for terms matching
term . |
RegexpQuery(Term term,
int flags,
AutomatonProvider provider,
int maxDeterminizedStates)
Constructs a query for terms matching
term . |
RegexpQuery(Term term,
int flags,
int maxDeterminizedStates)
Constructs a query for terms matching
term . |
SynonymQuery(Term... terms)
Deprecated.
Please use a
SynonymQuery.Builder instead. |
TermAndBoost(Term term,
float boost) |
TermQuery(Term t)
Constructs a query for the term
t . |
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 matching
term . |
WildcardQuery(Term term,
int maxDeterminizedStates)
Constructs a query for terms matching
term . |
Modifier and Type | Method and Description |
---|---|
void |
QueryTermExtractor.BoostedTermExtractor.consumeTerms(Query query,
Term... terms) |
Modifier and Type | Method and Description |
---|---|
void |
IntervalQuery.IntervalWeight.extractTerms(java.util.Set<Term> terms) |
Modifier and Type | Field and Description |
---|---|
protected Term |
SpanTermQuery.term |
protected Term |
TermSpans.term |
(package private) Term |
SpanWeight.TermMatch.term |
Modifier and Type | Method and Description |
---|---|
Term |
SpanTermQuery.getTerm()
Return the term whose spans are matched.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<Term,TermStates> |
SpanQuery.getTermStates(java.util.Collection<SpanWeight> weights)
Build a map of terms to
TermStates , for use in constructing SpanWeights |
static java.util.Map<Term,TermStates> |
SpanQuery.getTermStates(SpanWeight... weights)
Build a map of terms to
TermStates , for use in constructing SpanWeights |
Modifier and Type | Method and Description |
---|---|
void |
SpanCollector.collectLeaf(PostingsEnum postings,
int position,
Term term)
Collect information from postings
|
Modifier and Type | Method and Description |
---|---|
private Similarity.SimScorer |
SpanWeight.buildSimWeight(SpanQuery query,
IndexSearcher searcher,
java.util.Map<Term,TermStates> termStates,
float boost) |
void |
SpanTermQuery.SpanTermWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanNearQuery.SpanNearWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanNearQuery.SpanGapQuery.SpanGapWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanNotQuery.SpanNotWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanContainQuery.SpanContainWeight.extractTerms(java.util.Set<Term> terms)
Extract terms from both
big and little . |
void |
SpanPositionCheckQuery.SpanPositionCheckWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanOrQuery.SpanOrWeight.extractTerms(java.util.Set<Term> terms) |
void |
SpanTermQuery.SpanTermWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanNearQuery.SpanNearWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanNearQuery.SpanGapQuery.SpanGapWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanNotQuery.SpanNotWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanContainQuery.SpanContainWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanPositionCheckQuery.SpanPositionCheckWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
void |
SpanOrQuery.SpanOrWeight.extractTermStates(java.util.Map<Term,TermStates> contexts) |
abstract void |
SpanWeight.extractTermStates(java.util.Map<Term,TermStates> contexts)
Collect all TermStates used by this Weight
|
Constructor and Description |
---|
SpanTermQuery(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 TermStates
|
TermSpans(LeafSimScorer scorer,
PostingsEnum postings,
Term term,
float positionsCost) |
Constructor and Description |
---|
SpanContainingWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
SpanContainWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
SpanNearWeight(java.util.List<SpanWeight> subWeights,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
SpanNotWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight includeWeight,
SpanWeight excludeWeight,
float boost) |
SpanOrWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
java.util.List<SpanWeight> subWeights,
float boost) |
SpanPositionCheckWeight(SpanWeight matchWeight,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
SpanTermWeight(TermStates termStates,
IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
float boost) |
SpanWeight(SpanQuery query,
IndexSearcher searcher,
java.util.Map<Term,TermStates> termStates,
float boost)
Create a new SpanWeight
|
SpanWithinWeight(IndexSearcher searcher,
java.util.Map<Term,TermStates> terms,
SpanWeight bigWeight,
SpanWeight littleWeight,
float boost) |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Set<Term> |
UnifiedHighlighter.extractTerms(Query query)
Extracts matching terms after rewriting against an empty index
|
Modifier and Type | Method and Description |
---|---|
void |
PhraseHelper.OffsetSpanCollector.collectLeaf(PostingsEnum postings,
int position,
Term term) |
Modifier and Type | Method and Description |
---|---|
protected static BytesRef[] |
UnifiedHighlighter.filterExtractedTerms(java.util.function.Predicate<java.lang.String> fieldMatcher,
java.util.Set<Term> queryTerms) |
protected FieldHighlighter |
UnifiedHighlighter.getFieldHighlighter(java.lang.String field,
Query query,
java.util.Set<Term> allTerms,
int maxPassages) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
FieldQuery.QueryPhraseMap.addTerm(Term term,
float boost) |
private void |
FieldQuery.checkOverlap(java.util.Collection<Query> expandQueries,
Term[] src,
Term[] dest,
int slop,
float boost) |
private void |
FieldQuery.checkOverlap(java.util.Collection<Query> expandQueries,
Term[] src,
Term[] dest,
int slop,
float boost) |
Modifier and Type | Method and Description |
---|---|
protected Query |
QueryBuilder.newSynonymQuery(Term[] terms)
Builds a new SynonymQuery instance.
|
protected Query |
QueryBuilder.newTermQuery(Term term)
Builds a new TermQuery instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
QueryBuilder.add(BooleanQuery.Builder q,
java.util.List<Term> current,
BooleanClause.Occur operator) |
Modifier and Type | Method and Description |
---|---|
Term[] |
GraphTokenStreamFiniteStrings.getTerms(java.lang.String field,
int state)
Returns the list of terms that start at the provided state
|