# Identify promoted documents in curated search response

**URL:** <https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505>\
**Category:** Elastic Search\
**Tags:** curator, elastic-app-search\
**Created:** [September 29, 2021, 6:33pm UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505 "2021-09-29T18:33:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brentonkbrn](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@brentonkbrn](https://discuss.elastic.co/u/brentonkbrn)\
**Post date:** [September 29, 2021, 6:33pm UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505/1 "2021-09-29T18:33:17Z")

</div>

Hi, how can I identify promoted documents in a curated search response? I had a check for result["\_meta"]["score"] === 1 which seemed to work, but with the recent upgrade to 7.15, now the promoted documents have "score": 1.7014122e+38

I need to be able to identify in my app which results in a curated search are promoted - how can I do this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [October 1, 2021, 8:08am UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505/2 "2021-10-01T08:08:00Z")

</div>

Hi @brentonkbrn ! Welcome to the Elastic community!

As you said, on 7.15 score for curated results is calculated differently. Score for curated results is now a _very high_ value.

I'm trying to find an exact answer for a threshold value that you can use to determine if a result is curated or not. But you can start using this information to start building your solution.

Pick a very high score value (for instance, 1.0e+20) and check that every non-curated result has a score lower than that value.

Hopefully this helps. I'll come back when I get a more definitive solution.

---

<div class="post-metadata">

**Author:** ![brentonkbrn](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@brentonkbrn](https://discuss.elastic.co/u/brentonkbrn)\
**Post date:** [October 1, 2021, 1:50pm UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505/3 "2021-10-01T13:50:15Z")

</div>

Hi @Carlos_D , that does help - thanks! Right now my check to identify promoted documents is "score" \> 1000 but I probably need to increase that value right?

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [October 1, 2021, 3:40pm UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505/4 "2021-10-01T15:40:41Z")

</div>

I believe it will be safe to do so. You can experiment with the returned scores for the promoted documents.

Maybe 1.0e+15 would be safe? Seems high enough for any score returned by organic documents. Your mileage may vary depending on boosts and weights.

---

<div class="post-metadata">

**Author:** ![brentonkbrn](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@brentonkbrn](https://discuss.elastic.co/u/brentonkbrn)\
**Post date:** [October 1, 2021, 8:41pm UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505/5 "2021-10-01T20:41:24Z")

</div>

Ok I'm using that - thanks!

---

<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 29, 2021, 8:41pm UTC](https://discuss.elastic.co/t/identify-promoted-documents-in-curated-search-response/285505/6 "2021-10-29T20:41:43Z")

</div>

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