# Does elasticsearch support minimum score in highlight query?

**URL:** <https://discuss.elastic.co/t/does-elasticsearch-support-minimum-score-in-highlight-query/21426>\
**Category:** Elasticsearch\
**Created:** [December 29, 2014, 10:49pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-minimum-score-in-highlight-query/21426 "2014-12-29T22:49:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yang\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/fbc32d/32.png) [@Yang\_Liu](https://discuss.elastic.co/u/Yang_Liu)\
**Post date:** [December 29, 2014, 10:49pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-minimum-score-in-highlight-query/21426/1 "2014-12-29T22:49:06Z")

</div>

Hi, guys.  
I know that elasticsearch can have minimum score when we set up the query.  
I just want to know that does it also support minimum score for  
highlighting query?  
After I running some highlighting query to ES, I realize that it highlights  
segments inprecisely.  
Is there minimum score I can set for highlight query to make the  
highlighting functionality more correct?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/be477505-a3e0-4b7e-bc75-ba4266ae3841%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/be477505-a3e0-4b7e-bc75-ba4266ae3841%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 30, 2014, 12:15am UTC](https://discuss.elastic.co/t/does-elasticsearch-support-minimum-score-in-highlight-query/21426/2 "2014-12-30T00:15:46Z")

</div>

No it doesn't. Highlighting is way weirder to implement then it probably  
should be so concepts like score don't match over too well. They do weigh  
segments but that wight isn't the same beast as a document score. Its much  
more heuristicy. None of them support a minimum weight cutoff.

You could implement one but it'd take some tuning to get it to make sense.

Nik

On Dec 29, 2014 5:49 PM, "Yang Liu" [yl916@nyu.edu](mailto:yl916@nyu.edu) wrote:

> Hi, guys.  
> I know that elasticsearch can have minimum score when we set up the query.  
> I just want to know that does it also support minimum score for  
> highlighting query?  
> After I running some highlighting query to ES, I realize that it  
> highlights segments inprecisely.  
> Is there minimum score I can set for highlight query to make the  
> highlighting functionality more correct?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/be477505-a3e0-4b7e-bc75-ba4266ae3841%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/be477505-a3e0-4b7e-bc75-ba4266ae3841%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0J4a%3DVBvfySETN4-pQ4WDFiEFycARcGF%2BTzNVavQV6pg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0J4a%3DVBvfySETN4-pQ4WDFiEFycARcGF%2BTzNVavQV6pg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:41am UTC](https://discuss.elastic.co/t/does-elasticsearch-support-minimum-score-in-highlight-query/21426/3 "2017-07-06T00:41:31Z")

</div>


