LoginSignup
0
0

More than 1 year has passed since last update.

Elasticsearchの検索でscoreの最小値を指定する方法

Last updated at Posted at 2023-02-15

検索結果が異常に長いため、特定のスコアで足切りしたい....
以下のように、min_scoreを指定することで解決できます。

ex) score=8.0 で足切り

GET /{index_name}/_search
{
  "from":0, 
  "size":100,
  "min_score": 8.0,   <= ココ
  "query":{
    ...省略
  }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0