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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -