Reputation: 33524
Is it possible to disable score calculation on particular query (not for type or all index) in elasticsearch?
Upvotes: 3
Views: 6050
Reputation: 9320
As stated in comments, you could wrap your particular query in ConstantScoreQuery
{
"constant_score" : {
"query": { your_query_here}
"filter": {your_filter_here}
"boost" : 1.0
}
}
All matched documents will get score 1.0. For more reference information - http://www.elastic.co/guide/en/elasticsearch/reference/1.5/query-dsl-constant-score-query.html
Upvotes: 2