Class QuotedFieldQueryNode
A QuotedFieldQueryNode represents phrase query. Example: "life is great"
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class QuotedFieldQueryNode : FieldQueryNode, IFieldValuePairQueryNode<string>, IFieldableNode, IValueQueryNode<string>, IQueryNode, ITextableQueryNode
Constructors
QuotedFieldQueryNode(string, ICharSequence, int, int)
A QuotedFieldQueryNode represents phrase query. Example: "life is great"
Declaration
public QuotedFieldQueryNode(string field, ICharSequence text, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | field name |
ICharSequence | text | value |
int | begin | position in the query string |
int | end | position in the query string |
QuotedFieldQueryNode(string, string, int, int)
A QuotedFieldQueryNode represents phrase query. Example: "life is great"
Declaration
public QuotedFieldQueryNode(string field, string text, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | field name |
string | text | value |
int | begin | position in the query string |
int | end | position in the query string |
QuotedFieldQueryNode(string, StringBuilder, int, int)
A QuotedFieldQueryNode represents phrase query. Example: "life is great"
Declaration
public QuotedFieldQueryNode(string field, StringBuilder text, int begin, int end)
Parameters
Type | Name | Description |
---|---|---|
string | field | field name |
StringBuilder | text | value |
int | begin | position in the query string |
int | end | position in the query string |
Methods
CloneTree()
Recursive clone the IQueryNode tree. The tags are not copied to the new tree when you call the CloneTree() method.
Declaration
public override IQueryNode CloneTree()
Returns
Type | Description |
---|---|
IQueryNode | the cloned tree |
Overrides
ToQueryString(IEscapeQuerySyntax)
convert to a query string understood by the query parser
Declaration
public override string ToQueryString(IEscapeQuerySyntax escaper)
Parameters
Type | Name | Description |
---|---|---|
IEscapeQuerySyntax | escaper |
Returns
Type | Description |
---|---|
string |
Overrides
ToString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |