Class NumericRangeQueryBuilder
- java.lang.Object
-
- org.apache.lucene.queryparser.xml.builders.NumericRangeQueryBuilder
-
- All Implemented Interfaces:
QueryBuilder
public class NumericRangeQueryBuilder extends java.lang.Object implements QueryBuilder
Creates aNumericRangeQuery. 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 forNumericRangeQuery:
AAttribute 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 Integer No 4 ParserExceptionwill be thrown if an error occurs parsing the supplied lowerTerm or upperTerm into the numeric type specified by type.
-
-
Constructor Summary
Constructors Constructor Description NumericRangeQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerygetQuery(org.w3c.dom.Element e)
-
-
-
Method Detail
-
getQuery
public Query getQuery(org.w3c.dom.Element e) throws ParserException
- Specified by:
getQueryin interfaceQueryBuilder- Throws:
ParserException
-
-