# Bm25 tune parameters using elasticsearch

**URL:** https://discuss.elastic.co/t/bm25-tune-parameters-using-elasticsearch/315245
**Category:** Elasticsearch
**Tags:** painless
**Created:** [September 27, 2022, 9:52am UTC](https://discuss.elastic.co/t/bm25-tune-parameters-using-elasticsearch/315245 "2022-09-27T09:52:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dayzero](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dayzero](https://discuss.elastic.co/u/dayzero)
#### Post date: [September 27, 2022, 9:52am UTC](https://discuss.elastic.co/t/bm25-tune-parameters-using-elasticsearch/315245/1 "2022-09-27T09:52:22Z")

</div>

Hi,  
I indexed the data with some b and k1 values of the default bm25 algorithm. The thing is implementing relevance feedback on the search engine to tune those b and k1 values. How can I not use reindexing for each time and supply those values at runtime for querying, so that this entire process would be a lot less painful?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 25, 2022, 9:52am UTC](https://discuss.elastic.co/t/bm25-tune-parameters-using-elasticsearch/315245/2 "2022-10-25T09:52:38Z")

</div>

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