Open roharon opened 1 month ago
These are equal objects. Why does it matter what the JSON representation of a RangeQueryBuilder is?
The gt
, lt
, gte
, and lte
parameters are intended as a convenient short-hand for the more verbose from
, to
, include_lower
, include_upper
representations.
These are equal objects. Why does it matter what the JSON representation of a RangeQueryBuilder is?
The
gt
,lt
,gte
, andlte
parameters are intended as a convenient short-hand for the more verbosefrom
,to
,include_lower
,include_upper
representations.
gt
is same as setting from
and include_lower
to false
. and also gte
is same as setting from and include_lower to true.
the same goes for lt
,lte
.
Even though, when defined query with gte
, it would be expected, and more natural as gte
not from
and include_lower: true
Is your feature request related to a problem? Please describe
In OpenSearch 2.14.0.
When I define query with RangeQueryBuilder,
gte
andgt
method defined query tofrom
, andlte
andlt
method defined query toto
.I think defined query to
gte
,gt
orlte
,lt
is more properly.Describe the solution you'd like
When I write code as
actual result is
But I think this result should be like below.
Related component
Libraries
Describe alternatives you've considered
No response
Additional context
No response