elasticsearch - Need care for filter order? -
there lot of articles talk filter order of es on internet.but lot of them out of date.
i want know in es after version 2.+,i need care of filter order?
such as,there 1000000 docs field1 equals value1,and there 100 docs field2 equals value2.
1.
{ "bool": { "filter": [ { "term": { "field1": "value1" }}, { "term": { "field2": "value2" }} ] }} 2.
{ "bool": { "filter": [ { "term": { "field2": "value2" }}, { "term": { "field1": "value1" }} ] }} there difference of dsl1 , dsl2?
Comments
Post a Comment