Error "illegal_argument_exception" illegal b value: 1.2 BM25

Hello everyone

I tried hyper parameter tuning BM25 and unfortunately i tried putting b=1.2 in the settings which was wrong wince it always gets a value between zero and one.

Now i try to fix the value of b but i get the following error:

curl -XPUT "http://localhost:9200/my_index/_settings" -d '
"similarity": {
"my_similarity": {
"type": "BM25",
"b" : 0.1,
"k1" : 0.9

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"illegal b value: 1.2, must be between 0 and 1"}],"type":"illegal_argument_exception","reason":"illegal b value: 1.2, must be between 0 and 1"},"status":400}

It seems like it sticks to the former wrong value of "1.2" and does not understand that the new value o want to set is 0.1

Could you help me?
Thank you in advance

Could you please look at your log file and grab the entire exception stack trace?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.