# Get List of Curations from Swiftype

**URL:** <https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [February 10, 2022, 9:07pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899 "2022-02-10T21:07:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![avidnewmedia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avidnewmedia/32/101669_2.png) [@avidnewmedia](https://discuss.elastic.co/u/avidnewmedia)\
**Post date:** [February 10, 2022, 9:07pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/1 "2022-02-10T21:07:01Z")

</div>

Hello! I have a question for anyone familiar with Swiftype / Search UI and curation implementations. We are wanting to utilize curations however we have some custom logic in beforeSearchCall hooks. Essentially I'd like to determine if a curation exists prior to customizing the search results. Adding boosts and result grouping programmatically end up interfering with curated results. Is there a simple way to accomplish this that I'm missing?

Thanks in advance!  
Dustin

---

<div class="post-metadata">

**Author:** ![Brian\_McGue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_mcgue/32/63366_2.png) [@Brian\_McGue](https://discuss.elastic.co/u/Brian_McGue)\
**Post date:** [February 10, 2022, 11:53pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/2 "2022-02-10T23:53:14Z")

</div>

Hi @avidnewmedia!

Would the [List Curations API](https://swiftype.com/documentation/app-search/api/curations#read) help you?

> **[Curations | Swiftype Documentation](https://swiftype.com/documentation/app-search/api/curations#read)**
>
> Learn how to get the most out of Swiftype

---

<div class="post-metadata">

**Author:** ![avidnewmedia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avidnewmedia/32/101669_2.png) [@avidnewmedia](https://discuss.elastic.co/u/avidnewmedia)\
**Post date:** [February 11, 2022, 2:46pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/3 "2022-02-11T14:46:41Z")

</div>

Hi @Brian_McGue - yes exactly. I'm hoping there are either undocumented methods or a separate repo that simplifies the process of interacting with the Curation API inside of Search UI. I searched the repo on Github but found no mention of "curation" ([GitHub - elastic/search-ui: Search UI. Libraries for the fast development of modern, engaging search experiences.](https://github.com/elastic/search-ui)).

---

<div class="post-metadata">

**Author:** ![Brian\_McGue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_mcgue/32/63366_2.png) [@Brian\_McGue](https://discuss.elastic.co/u/Brian_McGue)\
**Post date:** [February 11, 2022, 10:44pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/4 "2022-02-11T22:44:03Z")

</div>

Sorry, @avidnewmedia, I didn't understand initially. I don't believe there is anything inside Search UI for that. But I'm going to tag @JasonStoltz just to make sure he doesn't have a better idea.

---

<div class="post-metadata">

**Author:** ![joemcelroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joemcelroy/32/103757_2.png) [@joemcelroy](https://discuss.elastic.co/u/joemcelroy)\
**Post date:** [February 14, 2022, 9:46am UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/5 "2022-02-14T09:46:34Z")

</div>

Hey!

Is the question that you want some sort of indicator that an individual result (like a boolean attribute for example `isCuratedHit: true`) was curated or not? If so, its more of a question whether the swifttype backend supports such a response.

---

<div class="post-metadata">

**Author:** ![avidnewmedia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avidnewmedia/32/101669_2.png) [@avidnewmedia](https://discuss.elastic.co/u/avidnewmedia)\
**Post date:** [February 15, 2022, 2:44pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/6 "2022-02-15T14:44:01Z")

</div>

Right, something along those lines would work but it doesn't exist currently. I did hear back from Swiftype support and they said that if the result score is 1 we can assume that the result set is from a curation. I need to test to see if we have access to this in the beforeSearchCall hook or not. Otherwise we will have to develop our own integration with the Curation API.

---

<div class="post-metadata">

**Author:** ![avidnewmedia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avidnewmedia/32/101669_2.png) [@avidnewmedia](https://discuss.elastic.co/u/avidnewmedia)\
**Post date:** [February 15, 2022, 5:40pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/7 "2022-02-15T17:40:28Z")

</div>

Looks like I'll have to fetch data from the List Curations API. Thanks everyone.

---

<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:** [March 15, 2022, 5:40pm UTC](https://discuss.elastic.co/t/get-list-of-curations-from-swiftype/296899/8 "2022-03-15T17:40:31Z")

</div>

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