# Control scoring in case phrase queries?

**URL:** <https://discuss.elastic.co/t/control-scoring-in-case-phrase-queries/128503>\
**Category:** Elasticsearch\
**Created:** [April 18, 2018, 10:01am UTC](https://discuss.elastic.co/t/control-scoring-in-case-phrase-queries/128503 "2018-04-18T10:01:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [April 18, 2018, 10:01am UTC](https://discuss.elastic.co/t/control-scoring-in-case-phrase-queries/128503/1 "2018-04-18T10:01:41Z")

</div>

Let's say I have a phrase query "a.b", And the occurrences of this phrase is more within a document compared to the number of documents that has its occurrence.  
Going over every occurrence within a document to calculate its scoring is causing poor performance at the time of search.

One way to control scoring would be to give a constant score to all query results.  
But we would like to know if there is any query attribute, to control or terminate scoring of terms within a document after a given number of terms "N" ?

---

<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:** [May 16, 2018, 10:01am UTC](https://discuss.elastic.co/t/control-scoring-in-case-phrase-queries/128503/2 "2018-05-16T10:01:59Z")

</div>

Closed on May 16, 2018, 10:01am UTC

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