Class AbstractRangeQueryNode<T>
This class should be extended by nodes intending to represent range queries.
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class AbstractRangeQueryNode<T> : QueryNode, IAbstractRangeQueryNode, IRangeQueryNode<IFieldableNode>, IRangeQueryNode, IFieldableNode, IQueryNode where T : IFieldableNode
Type Parameters
| Name | Description |
|---|---|
| T | the type of the range query bounds (lower and upper) |
Constructors
AbstractRangeQueryNode()
Constructs an AbstractRangeQueryNode<T>, it should be invoked only by its extenders.
Declaration
protected AbstractRangeQueryNode()
Properties
Field
Gets or Sets the field associated with this node.
Declaration
public virtual string Field { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
IsLowerInclusive
Gets whether the lower bound is inclusive or exclusive.
Declaration
public virtual bool IsLowerInclusive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
true if the lower bound is inclusive, otherwise, false
IsUpperInclusive
Gets whether the upper bound is inclusive or exclusive.
Declaration
public virtual bool IsUpperInclusive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
true if the upper bound is inclusive, otherwise, false
LowerBound
Gets the lower bound node.
Declaration
public virtual IFieldableNode LowerBound { get; }
Property Value
| Type | Description |
|---|---|
| IFieldableNode |
UpperBound
Gets the upper bound node.
Declaration
public virtual IFieldableNode UpperBound { get; }
Property Value
| Type | Description |
|---|---|
| IFieldableNode |
Methods
SetBounds(T, T, bool, bool)
Sets the lower and upper bounds.
Declaration
public virtual void SetBounds(T lower, T upper, bool lowerInclusive, bool upperInclusive)
Parameters
| Type | Name | Description |
|---|---|---|
| T | lower | the lower bound, |
| T | upper | the upper bound, |
| bool | lowerInclusive |
|
| bool | upperInclusive |
|
See Also
ToQueryString(IEscapeQuerySyntax)
convert to a query string understood by the query parser
Declaration
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
Parameters
| Type | Name | Description |
|---|---|---|
| IEscapeQuerySyntax | escapeSyntaxParser |
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 |