# Mapping in App search / Search ui

**URL:** <https://discuss.elastic.co/t/mapping-in-app-search-search-ui/269571>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [April 8, 2021, 9:41am UTC](https://discuss.elastic.co/t/mapping-in-app-search-search-ui/269571 "2021-04-08T09:41:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadir\_Ait\_Lahmouch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nadir_ait_lahmouch/32/81394_2.png) [@Nadir\_Ait\_Lahmouch](https://discuss.elastic.co/u/Nadir_Ait_Lahmouch)\
**Post date:** [April 8, 2021, 9:41am UTC](https://discuss.elastic.co/t/mapping-in-app-search-search-ui/269571/1 "2021-04-08T09:41:11Z")

</div>

Hello,  
I am trying to build a frontend using React (Search ui) and app search as a backend. So iwas succeful in indexing my documents but i have some questions regarding the mapping. How can we look into the mapping and the parameters of our index. I am asking that because I have a pb in retrieving the infos that i want in the front end. Here's what a json doc looks like:

```auto
{"podcast_name":"<episode-name>",
"transcripts": 
[
{"transcript":"<transcript of 30 sec>"
start":"<start time of first transcript>",
"end":"<end time of first transcript>"},

{"transcript":"<transcript of 30 sec>"
start":"<start time of second transcript>",
"end":"<end time of second transcript>"}

...

]
}

```

So now when i search using my front end, when i look for a word, i can only retrieve the whole transcripts field with all the transcripts. What i want is to only retrieve the transcript containing the word and maybe the surrounding one and not the whole array object. How can i access anc show that ?  
Thanks !

---

<div class="post-metadata">

**Author:** ![ross.bell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ross.bell/32/77559_2.png) [@ross.bell](https://discuss.elastic.co/u/ross.bell)\
**Post date:** [April 8, 2021, 2:10pm UTC](https://discuss.elastic.co/t/mapping-in-app-search-search-ui/269571/2 "2021-04-08T14:10:15Z")

</div>

Hey Nadir!

I think the concept you're looking for is generically called "highlight", although we call them _snippets_ in App Search. They wont filter your result payload to only include the matching transcript element plus surrounding elements, but they _will_ identify the matching content. You can see how snippets get used in this advanced documention: [search-ui/ADVANCED.md at master · elastic/search-ui · GitHub](https://github.com/elastic/search-ui/blob/master/ADVANCED.md). I recommend searching for "snippet" (or even "highlight").

Related, you can access the same snippet functionality over the search API as well: [Search API result fields | Elastic App Search Documentation [7.12] | Elastic](https://www.elastic.co/guide/en/app-search/current/result-fields-highlights.html#result-fields-highlights-snippet-result-field).

I hope this helps!

Ross

---

<div class="post-metadata">

**Author:** ![Nadir\_Ait\_Lahmouch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nadir_ait_lahmouch/32/81394_2.png) [@Nadir\_Ait\_Lahmouch](https://discuss.elastic.co/u/Nadir_Ait_Lahmouch)\
**Post date:** [April 8, 2021, 3:28pm UTC](https://discuss.elastic.co/t/mapping-in-app-search-search-ui/269571/3 "2021-04-08T15:28:39Z")

</div>

Hello thank you for your answer but I already tried and that's not what I want. Is there a way to filter so I can only get the matching transcript and not the whole transcripts field ?  
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:** [May 6, 2021, 3:29pm UTC](https://discuss.elastic.co/t/mapping-in-app-search-search-ui/269571/4 "2021-05-06T15:29:36Z")

</div>

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