我使用PHP客户端并尝试向我的查询添加范围。范围有效,但只有最后一个。
我如何使用这两个范围?
Array (
[index] => myindex
[size] => 75
[sort] => Array (
[0] => DATE:desc
)
[body] => Array (
[query] => Array (
[filtered] => Array (
[query] => Array (
[match] => Array (
[_all] => Array (
[query] => My Query
[operator] => and
[fuzziness] => 0.8 ) ) )
[filter] => Array (
[range] => Array (
[DATE] => Array (
[format] => MM/dd/yyyy||yyyy
[gte] => 01/01/2015
[lt] => 12/31/2016 )
[ART] => Array (
[gte] => 3
[lt] => 4 ) ) ) ) ) ) )
答案 0 :(得分:0)
试试此链接:multiple range filter或此:multiple range filter
通常会搜索短语" elasticsearch multiple range"