# App Search Accuracy Match Results

**URL:** <https://discuss.elastic.co/t/app-search-accuracy-match-results/329139>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [April 3, 2023, 12:55am UTC](https://discuss.elastic.co/t/app-search-accuracy-match-results/329139 "2023-04-03T00:55:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [April 3, 2023, 12:55am UTC](https://discuss.elastic.co/t/app-search-accuracy-match-results/329139/1 "2023-04-03T00:55:24Z")

</div>

Hello,

I would like to ask can the Search UI be configured the searching results component to display the accuracy match of the result?

 ![Screenshot 2023-04-03 at 8.53.19 AM](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df668b6fea710b7f743a81bd9194679339b79fdf.png)

Probably something like above image from Relevance Tuning in App Search, but it shows accuracy percentage instead of the score.

The top result should have higher percentage for example 90% accuracy match with the searching.

Can I configure that in the React library maybe?

---

<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:** [April 3, 2023, 7:25pm UTC](https://discuss.elastic.co/t/app-search-accuracy-match-results/329139/2 "2023-04-03T19:25:24Z")

</div>

Hey @aisyaharifin

In Search UI, you should be able to access the `_meta` field for each hit which provides you the score. How do you want the percentage to be calculated?

Joe

---

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [April 5, 2023, 5:57am UTC](https://discuss.elastic.co/t/app-search-accuracy-match-results/329139/3 "2023-04-05T05:57:23Z")

</div>

Hey @joemcelroy ,

I'm not sure how the percentage is calculated but maybe the accuracy match with the search results?

How do I access the \_meta field? Is it from my config?

```auto
export function stripUnnecessaryResultFields(resultFields) {
  return Object.keys(resultFields).reduce((acc, n) => {
    if (
      [
        "_meta",
        "id",
        toLowerCase(getTitleField()),
        toLowerCase(getUrlField()),
        toLowerCase(getThumbnailField()),
      ].includes(toLowerCase(n))
    ) {
      return acc;
    }

```

Thank you for your assistance.

---

<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:** [April 5, 2023, 10:57am UTC](https://discuss.elastic.co/t/app-search-accuracy-match-results/329139/4 "2023-04-05T10:57:17Z")

</div>

Im assuming you are overriding the display of results via the `resultView` prop.

Ive given an example here of this. See CustomView component [sad-shadow-c5egik - CodeSandbox](https://codesandbox.io/s/sad-shadow-c5egik?file=/src/pages/app-search/index.js)

---

<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 3, 2023, 10:58am UTC](https://discuss.elastic.co/t/app-search-accuracy-match-results/329139/5 "2023-05-03T10:58:02Z")

</div>

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