Class FieldQueryNode
A FieldQueryNode represents a element that contains field/text tuple
Inheritance
System.Object
    
    FieldQueryNode
      
      
      
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.QueryParsers.Flexible.Core.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class FieldQueryNode : QueryNode, IFieldValuePairQueryNode<string>, IFieldableNode, IValueQueryNode<string>, IQueryNode, ITextableQueryNode
  Constructors
| Improve this Doc View SourceFieldQueryNode(String, ICharSequence, Int32, Int32)
Declaration
public FieldQueryNode(string field, ICharSequence text, int begin, int end)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | field | field name  | 
      
| J2N.Text.ICharSequence | text | value  | 
      
| System.Int32 | begin | position in the query string  | 
      
| System.Int32 | end | position in the query string  | 
      
FieldQueryNode(String, String, Int32, Int32)
Declaration
public FieldQueryNode(string field, string text, int begin, int end)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | field | field name  | 
      
| System.String | text | value  | 
      
| System.Int32 | begin | position in the query string  | 
      
| System.Int32 | end | position in the query string  | 
      
FieldQueryNode(String, StringBuilder, Int32, Int32)
Declaration
public FieldQueryNode(string field, StringBuilder text, int begin, int end)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | field | field name  | 
      
| System.Text.StringBuilder | text | value  | 
      
| System.Int32 | begin | position in the query string  | 
      
| System.Int32 | end | position in the query string  | 
      
Fields
| Improve this Doc View Sourcem_begin
The term's begin position.
Declaration
protected int m_begin
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
m_end
The term's end position.
Declaration
protected int m_end
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
m_field
The term's field
Declaration
protected string m_field
  Field Value
| Type | Description | 
|---|---|
| System.String | 
m_positionIncrement
The term's position increment.
Declaration
protected int m_positionIncrement
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
m_text
The term's text.
Declaration
protected ICharSequence m_text
  Field Value
| Type | Description | 
|---|---|
| J2N.Text.ICharSequence | 
Properties
| Improve this Doc View SourceBegin
Declaration
public virtual int Begin { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
End
Declaration
public virtual int End { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Field
Declaration
public virtual string Field { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
PositionIncrement
Declaration
public virtual int PositionIncrement { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Text
Gets or Sets the "original" form of the term.
Declaration
public virtual ICharSequence Text { get; set; }
  Property Value
| Type | Description | 
|---|---|
| J2N.Text.ICharSequence | 
Value
Declaration
public virtual string Value { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
| Improve this Doc View SourceCloneTree()
Declaration
public override IQueryNode CloneTree()
  Returns
| Type | Description | 
|---|---|
| IQueryNode | 
Overrides
| Improve this Doc View SourceGetFieldAsString()
null if the field was not specified in the query string
Declaration
public virtual string GetFieldAsString()
  Returns
| Type | Description | 
|---|---|
| System.String | the field  | 
      
GetTermEscaped(IEscapeQuerySyntax)
Declaration
protected virtual string GetTermEscaped(IEscapeQuerySyntax escaper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEscapeQuerySyntax | escaper | 
Returns
| Type | Description | 
|---|---|
| System.String | 
GetTermEscapeQuoted(IEscapeQuerySyntax)
Declaration
protected virtual string GetTermEscapeQuoted(IEscapeQuerySyntax escaper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEscapeQuerySyntax | escaper | 
Returns
| Type | Description | 
|---|---|
| System.String | 
GetTextAsString()
Declaration
public virtual string GetTextAsString()
  Returns
| Type | Description | 
|---|---|
| System.String | the term  | 
      
ToQueryString(IEscapeQuerySyntax)
Declaration
public override string ToQueryString(IEscapeQuerySyntax escaper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEscapeQuerySyntax | escaper | 
Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String |