Class LegacyNumericRangeQueryBuilder

  • All Implemented Interfaces:

    public class LegacyNumericRangeQueryBuilder
    extends Object
    implements org.apache.lucene.queryparser.xml.QueryBuilder
    Index with points and use PointRangeQueryBuilder instead
    Creates a LegacyNumericRangeQuery. 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 LegacyNumericRangeQuery:
    supported attributes
    Attribute name Values Required Default
    fieldName String Yes N/A
    lowerTerm Specified by type No Null
    upperTerm Specified by type No Null
    type int, long, float, double No int
    includeLower true, false No true
    includeUpper true, false No true
    precisionStep Integer No 4

    A ParserException will be thrown if an error occurs parsing the supplied lowerTerm or upperTerm into the numeric type specified by type.

    • Constructor Detail

      • LegacyNumericRangeQueryBuilder

        public LegacyNumericRangeQueryBuilder()
    • Method Detail

      • getQuery

        public getQuery​(Element e)
                                                throws org.apache.lucene.queryparser.xml.ParserException
        Specified by:
        getQuery in interface org.apache.lucene.queryparser.xml.QueryBuilder