Class NumericRangeQuery


  • public class NumericRangeQuery
    extends SearchQuery
    A FTS query that matches documents on a range of values. At least one bound is required, and the inclusiveness of each bound can be configured.
    Since:
    2.3.0
    Author:
    Simon Baslé, Michael Nitschinger
    • Constructor Detail

      • NumericRangeQuery

        public NumericRangeQuery()
    • Method Detail

      • min

        public NumericRangeQuery min​(double min,
                                     boolean inclusive)
        Sets the lower boundary of the range, inclusive or not depending on the second parameter.
      • min

        public NumericRangeQuery min​(double min)
        Sets the lower boundary of the range. The lower boundary is considered inclusive by default on the server side.
        See Also:
        min(double, boolean)
      • max

        public NumericRangeQuery max​(double max,
                                     boolean inclusive)
        Sets the upper boundary of the range, inclusive or not depending on the second parameter.
      • max

        public NumericRangeQuery max​(double max)
        Sets the upper boundary of the range. The upper boundary is considered exclusive by default on the server side.
        See Also:
        max(double, boolean)
      • toCore

        public com.couchbase.client.core.api.search.CoreSearchQuery toCore()
        Specified by:
        toCore in class SearchQuery