Class NumericRangeQueryBuilder
Creates a Lucene.Net.Search.NumericRangeQuery. The table below specifies the required
attributes and the defaults if optional attributes are omitted. For more
detail on what each of the attributes actually do, consult the documentation
for Lucene.Net.Search.NumericRangeQuery:
Attribute name | Values | Required | Default |
---|
fieldName | String | Yes | N/A |
lowerTerm | Specified by type | Yes | N/A |
upperTerm | Specified by type | Yes | N/A |
type | int, long, float, double | No | int |
includeLower | true, false | No | true |
includeUpper | true, false | No | true |
precisionStep | int | No | 4 |
A
ParserException will be thrown if an error occurs parsing the
supplied
lowerTerm
or
upperTerm
into the numeric type
specified by
type
.
Inheritance
NumericRangeQueryBuilder
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class NumericRangeQueryBuilder : IQueryBuilder
Methods
GetQuery(XmlElement)
Creates a Lucene.Net.Search.NumericRangeQuery. The table below specifies the required
attributes and the defaults if optional attributes are omitted. For more
detail on what each of the attributes actually do, consult the documentation
for Lucene.Net.Search.NumericRangeQuery:
Attribute name | Values | Required | Default |
---|
fieldName | String | Yes | N/A |
lowerTerm | Specified by type | Yes | N/A |
upperTerm | Specified by type | Yes | N/A |
type | int, long, float, double | No | int |
includeLower | true, false | No | true |
includeUpper | true, false | No | true |
precisionStep | int | No | 4 |
A
ParserException will be thrown if an error occurs parsing the
supplied
lowerTerm
or
upperTerm
into the numeric type
specified by
type
.
Declaration
public virtual Query GetQuery(XmlElement e)
Parameters
Returns
Implements