# Array of attachment type - how to get a filename for highlighted fragment?

**URL:** <https://discuss.elastic.co/t/array-of-attachment-type-how-to-get-a-filename-for-highlighted-fragment/47567>\
**Category:** Elasticsearch\
**Created:** [April 16, 2016, 7:56pm UTC](https://discuss.elastic.co/t/array-of-attachment-type-how-to-get-a-filename-for-highlighted-fragment/47567 "2016-04-16T19:56:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kotov.a](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kotov.a](https://discuss.elastic.co/u/kotov.a)\
**Post date:** [April 16, 2016, 7:56pm UTC](https://discuss.elastic.co/t/array-of-attachment-type-how-to-get-a-filename-for-highlighted-fragment/47567/1 "2016-04-16T19:56:31Z")

</div>

Hi, how to get a filename for highlighted fragment in attachment field?  
I found the question on stack overflow, which describes my problem:

> <https://stackoverflow.com/questions/16153412/array-of-attachment-type-how-to-get-a-filename-for-highlighted-fragment>

But, the question is not an acceptable response.

---

<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:** [July 5, 2017, 10:58pm UTC](https://discuss.elastic.co/t/array-of-attachment-type-how-to-get-a-filename-for-highlighted-fragment/47567/2 "2017-07-05T22:58:48Z")

</div>


