Deleteman
Deleteman

Reputation: 8690

Using ElasticSearch can I filter out results based on the relevance?

From the query, can I say something like, leave out results that have a relevance score less than 0.01?

Upvotes: 1

Views: 373

Answers (1)

Rachid O
Rachid O

Reputation: 14002

you should add a min_score to your query like this:

{
  "min_score": 0.1,
  "query" : {
    "term" : { "user" : "kimchy" }
  }
}

Upvotes: 2

Related Questions