Class ComplexPhraseQueryParser.ComplexPhraseQuery
Used to handle the query content in between quotes and produced Span-based interpretations of the clauses.
Inheritance
System.Object
Lucene.Net.Search.Query
ComplexPhraseQueryParser.ComplexPhraseQuery
Inherited Members
Lucene.Net.Search.Query.Boost
Lucene.Net.Search.Query.ToString()
Lucene.Net.Search.Query.CreateWeight(Lucene.Net.Search.IndexSearcher)
Lucene.Net.Search.Query.Clone()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.QueryParsers.ComplexPhrase
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class ComplexPhraseQuery : Query
Constructors
| Improve this Doc View SourceComplexPhraseQuery(String, String, Int32, Boolean)
Declaration
public ComplexPhraseQuery(string field, string phrasedQueryStringContents, int slopFactor, bool inOrder)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | |
System.String | phrasedQueryStringContents | |
System.Int32 | slopFactor | |
System.Boolean | inOrder |
Properties
| Improve this Doc View SourceField
Declaration
public string Field { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Lucene.Net.Search.Query.GetHashCode()
|
Improve this Doc
View Source
ParsePhraseElements(ComplexPhraseQueryParser)
Declaration
protected void ParsePhraseElements(ComplexPhraseQueryParser qp)
Parameters
Type | Name | Description |
---|---|---|
ComplexPhraseQueryParser | qp |
Rewrite(IndexReader)
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.IndexReader | reader |
Returns
Type | Description |
---|---|
Lucene.Net.Search.Query |
Overrides
Lucene.Net.Search.Query.Rewrite(Lucene.Net.Index.IndexReader)
|
Improve this Doc
View Source
ToString(String)
Declaration
public override string ToString(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field |
Returns
Type | Description |
---|---|
System.String |