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<object>, IFieldableNode, IValueQueryNode<object>, IQueryNode
Constructors
| Improve this Doc View SourceNumericQueryNode(String, Object, NumberFormat)
Creates a NumericQueryNode object using the given field, System.Object (representing a .NET numeric type) value and NumberFormat used to convert the value to System.String.
Declaration
public NumericQueryNode(string field, object value, NumberFormat numberFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | the field associated with this query node |
System.Object | value | the value hold by this node |
NumberFormat | numberFormat | the 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 NumberFormat used to convert the value to System.String.
Declaration
public virtual NumberFormat NumberFormat { get; set; }
Property Value
Type | Description |
---|---|
NumberFormat |
Value
Gets or Sets the numeric value as System.Object representing a .NET numeric type.
Declaration
public virtual object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
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 |