Class NumericQueryNode
This query node represents a field query that holds a numeric value. It is similar to FieldQueryNode, however the Value returns an System.Object representing a .NET numeric type.
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class NumericQueryNode : QueryNode, IFieldValuePairQueryNode<Number>, IFieldableNode, IValueQueryNode<Number>, IQueryNode
Constructors
| Improve this Doc View SourceNumericQueryNode(String, Number, NumberFormat)
Creates a NumericQueryNode object using the given field, System.Object (representing a .NET numeric type) value and Lucene.Net.Util.NumberFormat used to convert the value to System.String.
Declaration
public NumericQueryNode(string field, Number value, NumberFormat numberFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | the field associated with this query node |
J2N.Numerics.Number | value | the value hold by this node |
Lucene.Net.Util.NumberFormat | numberFormat | the Lucene.Net.Util.NumberFormat used to convert the value to System.String |
Properties
| Improve this Doc View SourceField
Gets or Sets the field associated with this node.
Declaration
public virtual string Field { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NumberFormat
Gets or Sets the Lucene.Net.Util.NumberFormat used to convert the value to System.String.
Declaration
public virtual NumberFormat NumberFormat { get; set; }
Property Value
Type | Description |
---|---|
Lucene.Net.Util.NumberFormat |
Value
Gets or Sets the numeric value as a J2N.Numerics.Number.
Declaration
public virtual Number Value { get; set; }
Property Value
Type | Description |
---|---|
J2N.Numerics.Number |
Methods
| Improve this Doc View SourceGetTermEscaped(IEscapeQuerySyntax)
This method is used to get the value converted to System.String and escaped using the given IEscapeQuerySyntax.
Declaration
protected string GetTermEscaped(IEscapeQuerySyntax escaper)
Parameters
Type | Name | Description |
---|---|---|
IEscapeQuerySyntax | escaper | The IEscapeQuerySyntax used to escape the value System.String |
Returns
Type | Description |
---|---|
System.String | The value converted to System.String and escaped |
ToQueryString(IEscapeQuerySyntax)
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
Parameters
Type | Name | Description |
---|---|---|
IEscapeQuerySyntax | escapeSyntaxParser |
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |