# Evaluate the quality of ranked search results in Enterprise App Search

**URL:** <https://discuss.elastic.co/t/evaluate-the-quality-of-ranked-search-results-in-enterprise-app-search/353182>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 13, 2024, 2:47pm UTC](https://discuss.elastic.co/t/evaluate-the-quality-of-ranked-search-results-in-enterprise-app-search/353182 "2024-02-13T14:47:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeferson-telia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson-telia/32/131693_2.png) [@jeferson-telia](https://discuss.elastic.co/u/jeferson-telia)\
**Post date:** [February 13, 2024, 2:47pm UTC](https://discuss.elastic.co/t/evaluate-the-quality-of-ranked-search-results-in-enterprise-app-search/353182/1 "2024-02-13T14:47:54Z")

</div>

Hello,

I’m trying to find a way to validate search results for different queries. I found search-rank-eval API ([Ranking evaluation API | Elasticsearch Guide [8.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html)), which seems to do what I need. The issue is that I’m using Elastic Enterprise App Search, where I’m configuring relevance tuning, curations, and synonyms in App Search, but these changes don’t appear in search-rank-eval API.

I believe this is because search-rank-eval API accesses the Elasticsearch index directly, and my configurations are one level up, at the App Search. I’m not sure if this is correct, and if so, my question is, is there a way to use something similar to search-rank-eval when using App Search?

---

<div class="post-metadata">

**Author:** ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)\
**Post date:** [February 13, 2024, 2:52pm UTC](https://discuss.elastic.co/t/evaluate-the-quality-of-ranked-search-results-in-enterprise-app-search/353182/2 "2024-02-13T14:52:36Z")

</div>

Hi @jeferson-telia you're right that our [instructions on tuning app search relevance](https://www.youtube.com/watch?v=3GD9c-P28qo) don't include using the `rank_eval` API.

You can pull the Elasticsearch query that App search is running directly via the [explain API](https://www.elastic.co/guide/en/app-search/current/search-explain.html) - it's quite a large query, but could that work as input to judgment list backed relevance tuning?

---

<div class="post-metadata">

**Author:** ![jeferson-telia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson-telia/32/131693_2.png) [@jeferson-telia](https://discuss.elastic.co/u/jeferson-telia)\
**Post date:** [February 13, 2024, 3:30pm UTC](https://discuss.elastic.co/t/evaluate-the-quality-of-ranked-search-results-in-enterprise-app-search/353182/3 "2024-02-13T15:30:23Z")

</div>

> [@Kathleen\_DeRusso](#):
>
> pull the Elasticsearch query that App search is

Thanks Kathleen,  
It works just as you say, first I execute the `search_explain` query, and I add the query result to the `_rank_eval` query, that brings the results according to what I configured in App Search.

Thanks a lot!!

---

<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 12, 2024, 3:30pm UTC](https://discuss.elastic.co/t/evaluate-the-quality-of-ranked-search-results-in-enterprise-app-search/353182/4 "2024-03-12T15:30:43Z")

</div>

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