# How to access filename from index created by fscrawler

**URL:** <https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493>\
**Category:** Elasticsearch\
**Created:** [May 30, 2019, 9:09am UTC](https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493 "2019-05-30T09:09:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denn](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Denn](https://discuss.elastic.co/u/Denn)\
**Post date:** [May 30, 2019, 9:09am UTC](https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493/1 "2019-05-30T09:09:33Z")

</div>

How can I access filename using elasticsearch from a code like this?

{  
"\_index" : "fscrawler-rest-tests\_doc",  
"\_type" : "\_doc",  
"\_id" : "dd18bf3a8ea2a3e53e2661c7fb53534",  
"\_version" : 1,  
"found" : true,  
"\_source" : {  
"content" : "This file contains some words.\n",  
"meta" : {  
"raw" : {  
"X-Parsed-By" : "org.apache.tika.parser.DefaultParser",  
"Content-Encoding" : "ISO-8859-1",  
"Content-Type" : "text/plain; charset=ISO-8859-1"  
}  
},  
"file" : {  
"extension" : "txt",  
"content\_type" : "text/plain; charset=ISO-8859-1",  
"indexing\_date" : "2017-01-04T21:01:08.043",  
"filename" : "test.txt"  
},  
"path" : {  
"virtual" : "test.txt",  
"real" : "test.txt"  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 16, 2019, 4:52am UTC](https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493/2 "2019-06-16T04:52:01Z")

</div>

What do you mean by "access" the filename ?

Did you mean "how to open the file?"

---

<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 14, 2019, 4:52am UTC](https://discuss.elastic.co/t/how-to-access-filename-from-index-created-by-fscrawler/183493/3 "2019-07-14T04:52:04Z")

</div>

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