Class ComplexPhraseQueryParser.ComplexPhraseQuery
Used to handle the query content in between quotes and produced Span-based interpretations of the clauses.
Inherited Members
Namespace: Lucene.Net.QueryParsers.ComplexPhrase
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class ComplexPhraseQueryParser.ComplexPhraseQuery : Query
Constructors
ComplexPhraseQuery(string, string, int, bool)
Used to handle the query content in between quotes and produced Span-based interpretations of the clauses.
Declaration
public ComplexPhraseQuery(string field, string phrasedQueryStringContents, int slopFactor, bool inOrder)
Parameters
Type | Name | Description |
---|---|---|
string | field | |
string | phrasedQueryStringContents | |
int | slopFactor | |
bool | inOrder |
Properties
Field
Used to handle the query content in between quotes and produced Span-based interpretations of the clauses.
Declaration
public string Field { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
ParsePhraseElements(ComplexPhraseQueryParser)
Used to handle the query content in between quotes and produced Span-based interpretations of the clauses.
Declaration
protected void ParsePhraseElements(ComplexPhraseQueryParser qp)
Parameters
Type | Name | Description |
---|---|---|
ComplexPhraseQueryParser | qp |
Rewrite(IndexReader)
Expert: called to re-write queries into primitive queries. For example, a Lucene.Net.Search.PrefixQuery will be rewritten into a Lucene.Net.Search.BooleanQuery that consists of Lucene.Net.Search.TermQuerys.
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader |
Returns
Type | Description |
---|---|
Query |
Overrides
ToString(string)
Prints a query to a string, with field
assumed to be the
default field and omitted.
Declaration
public override string ToString(string field)
Parameters
Type | Name | Description |
---|---|---|
string | field |
Returns
Type | Description |
---|---|
string |