1 | { |
“reason”: “[terms] query does not support [execution]”,
这种方式已经不支持了,目前只有用must没有找到更优雅的写法。
1 | POST /goods_index/_search |
1 | POST /my_index/_search?pretty |
ps.
- https://www.elastic.co/guide/en/elasticsearch/reference/7.0/query-dsl-terms-set-query.html#terms-set-query-script
- https://www.elastic.co/guide/cn/elasticsearch/guide/current/_finding_multiple_exact_values.html
- https://discuss.elastic.co/t/is-there-an-alternative-solution-to-terms-execution-and-on-es-2-x/41089
- https://github.com/elastic/elasticsearch/issues/1568