我正在尝试为Elasticsearch查询获得最佳性能。 我需要类似这样的MySQL查询的内容: SELECT * FROM table WHERE field_a IN ('value1', 'value2') AND field_b = value
值的field_a数目可以是1之间,让我们说20 所有字段要求完全匹配。 现在,我使用的查询: {
"query" : {
在elasticsearch 1.x版,我可以设置index.number_of_replicas静态(在elasticsearch.yml文件): # Set the number of replicas (additional copies) of an index (1 by default):
index.number_of_replicas: 0
不过,我现在放在一起的配置文件V2