Class MultiPhraseQuery
MultiPhraseQuery is a generalized version of PhraseQuery, with an added method Add(Term[]). To use this class, to search for the phrase "Microsoft app*" first use add(Term) on the term "Microsoft", then find all terms that have "app" as prefix using IndexReader.terms(Term), and use MultiPhraseQuery.add(Term[] terms) to add them to the query.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class MultiPhraseQuery : Query
Properties
Name | Description |
---|---|
Slop | Gets or sets the phrase slop for this query. |
Methods
Name | Description |
---|---|
Add(Term) | Add a single term at the next position in the phrase. |
Add(Term[]) | Add multiple terms at the next position in the phrase. Any of the terms may match. |
Add(Term[], Int32) | Allows to specify the relative position of terms within the phrase. |
CreateWeight(Searcher) | |
Equals(Object) | Returns true if |
ExtractTerms(Collections.Generic.ISet<Term>) | |
GetHashCode() | Returns a hash code value for this object. |
GetPositions() | Returns the relative positions of terms in this phrase. |
GetTermArrays() | Returns a List<Term[]> of the terms in the multiphrase. Do not modify the List or its contents. |
Rewrite(IndexReader) | |
TermEquals(Array, Array) | |
ToString(String) | Prints a user-readable version of this query. |