# How to configure a text scoring algorithm in App Search Engine

**URL:** <https://discuss.elastic.co/t/how-to-configure-a-text-scoring-algorithm-in-app-search-engine/346762>\
**Category:** Elastic Search\
**Tags:** elastic-app-search, elastic-workplace-search\
**Created:** [November 9, 2023, 8:14am UTC](https://discuss.elastic.co/t/how-to-configure-a-text-scoring-algorithm-in-app-search-engine/346762 "2023-11-09T08:14:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlanNggg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alannggg/32/123108_2.png) [@AlanNggg](https://discuss.elastic.co/u/AlanNggg)\
**Post date:** [November 9, 2023, 8:14am UTC](https://discuss.elastic.co/t/how-to-configure-a-text-scoring-algorithm-in-app-search-engine/346762/1 "2023-11-09T08:14:49Z")

</div>

Hello,

I am developing a searching platform. I want to configure the text scoring algorithm in the engine, so that the more the number of terms that matched my query, the higher the score the engine gives. Just like [https://github.com/elastic/elasticsearch/issues/13806](https://github.com/elastic/elasticsearch/issues/13806).  
Are there any methods to achieve it?

---

<div class="post-metadata">

**Author:** ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)\
**Post date:** [December 6, 2023, 7:53pm UTC](https://discuss.elastic.co/t/how-to-configure-a-text-scoring-algorithm-in-app-search-engine/346762/2 "2023-12-06T19:53:47Z")

</div>

Hi @AlanNggg ,

Elasticsearch already issues higher scores for documents that match more of your terms if you use something like a query\_string query, or `should` bool query clauses.

However, I'd advise you to not rely on the absolute score values. These are useful only relative to one another for a given execution of a given query, and shouldn't be compared between queries or between instances.

---

<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:** [January 3, 2024, 7:54pm UTC](https://discuss.elastic.co/t/how-to-configure-a-text-scoring-algorithm-in-app-search-engine/346762/3 "2024-01-03T19:54:03Z")

</div>

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