# FSCrawler not indexing certain fields

**URL:** <https://discuss.elastic.co/t/fscrawler-not-indexing-certain-fields/137875>\
**Category:** Elasticsearch\
**Created:** [June 28, 2018, 10:40pm UTC](https://discuss.elastic.co/t/fscrawler-not-indexing-certain-fields/137875 "2018-06-28T22:40:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kish1](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kish1](https://discuss.elastic.co/u/kish1)\
**Post date:** [June 28, 2018, 10:40pm UTC](https://discuss.elastic.co/t/fscrawler-not-indexing-certain-fields/137875/1 "2018-06-28T22:40:33Z")

</div>

Hello,

I'm using FSCrawler 2.4 and it does well to scan the root directory and index the files. However, I notice that FSCrawler does not index all the fields. Eg. "file.filename" is searchable but "file.url" is not searchable because it was not indexed.  
Is there a way to configure in the FSCrawler job settings as to which fields should be indexed? This would be really helpful because I need to run searches on the File URL.

![es](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3cce5818e1dcb0a08d89ed90838cee029a9ef49a.JPG)

Thanks,  
Kishore

---

<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 29, 2018, 6:59am UTC](https://discuss.elastic.co/t/fscrawler-not-indexing-certain-fields/137875/2 "2018-06-29T06:59:40Z")

</div>

You can provide your own mapping for each job. Have a look in `~/.fscrawler/{job_name}/_settings.json` where a default mapping is provided.

Adapt this file to your needs, deleting the existing index `job_name` and restart FSCrawler.

More info on [https://github.com/dadoonet/fscrawler#creating-your-own-mapping-analyzers](https://github.com/dadoonet/fscrawler#creating-your-own-mapping-analyzers)

---

<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 27, 2018, 6:59am UTC](https://discuss.elastic.co/t/fscrawler-not-indexing-certain-fields/137875/3 "2018-07-27T06:59:45Z")

</div>

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