why does elasticsearch calculates score for term queries?
问题 I want to make a simple query based on knowing a unique field value using a term query. For instance: { "query": { "term": { "products.product_id": { "value": "Ubsdf-234kjasdf" } } } } Regarding term queries , Elasticsearch documentation states: Returns documents that contain an exact term in a provided field. You can use the term query to find documents based on a precise value such as a price, a product ID, or a username. On the other hand, documentation also suggests that the _score is