Class RangeQueryBuilder

All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, MultiTermQueryBuilder, QueryBuilder, Rewriteable<QueryBuilder>

public class RangeQueryBuilder extends AbstractQueryBuilder<RangeQueryBuilder> implements MultiTermQueryBuilder
A Query that matches documents within an range of terms.
  • Field Details

    • NAME

      public static final String NAME
      See Also:
      Constant Field Values
    • DEFAULT_INCLUDE_UPPER

      public static final boolean DEFAULT_INCLUDE_UPPER
      See Also:
      Constant Field Values
    • DEFAULT_INCLUDE_LOWER

      public static final boolean DEFAULT_INCLUDE_LOWER
      See Also:
      Constant Field Values
    • LTE_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField LTE_FIELD
    • GTE_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField GTE_FIELD
    • FROM_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField FROM_FIELD
    • TO_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField TO_FIELD
    • GT_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField GT_FIELD
    • LT_FIELD

      public static final org.elasticsearch.common.xcontent.ParseField LT_FIELD
  • Constructor Details

    • RangeQueryBuilder

      public RangeQueryBuilder(String fieldName)
      A Query that matches documents within an range of terms.
      Parameters:
      fieldName - The field name
    • RangeQueryBuilder

      public RangeQueryBuilder(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details