like query below:
"query":{"filtered":{"query":{"match":{"productName":{"query":"123","type":"boolean"}}},"filter":{"bool":{"must":{"term":{"venderId":"24305"}}}}}},"sort":[{"_score":{}}
will ES read tf/idf to cacculate score?
like query below:
"query":{"filtered":{"query":{"match":{"productName":{"query":"123","type":"boolean"}}},"filter":{"bool":{"must":{"term":{"venderId":"24305"}}}}}},"sort":[{"_score":{}}
will ES read tf/idf to cacculate score?
The score will be calculated for the query part of your filtered query. Filters don't affect scoring though.
You can debug this adding the explain flag to your search call:
GET /_search?explain=true
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.