Hi All,
We need to just fetch the records by putting a filter condition. Score of query is not relevant to us. Currently we are using terms query as mentioned below:-
GET test/_search
{"query": {"terms": {
"userId": [123,124]
}}}
We would like to know what would be difference if we replace above query with constant_score query as mentioned below:
GET test/_search
{"query": {"constant_score": {
"filter": {"terms": {
"userId": [123,124]
}}
}}}
Will constant_score query give better performance as comparison to simple terms query?