# Define explicit mapping/settings per job

**URL:** <https://discuss.elastic.co/t/define-explicit-mapping-settings-per-job/164158>\
**Category:** Elasticsearch\
**Created:** [January 14, 2019, 2:41pm UTC](https://discuss.elastic.co/t/define-explicit-mapping-settings-per-job/164158 "2019-01-14T14:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Green](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_green/32/55889_2.png) [@David\_Green](https://discuss.elastic.co/u/David_Green)\
**Post date:** [January 14, 2019, 2:41pm UTC](https://discuss.elastic.co/t/define-explicit-mapping-settings-per-job/164158/1 "2019-01-14T14:41:32Z")

</div>

I wish to index a number of research papers so that I may analyse such features as: word proximity, sentence length, word count, spelling variations etc.  
I wish to index each document as a single unit of text together with its filename.  
The information below appears applicable, but I would appreciate advice on the content of '\_settings.json' and '\_settings\_folder.json'

[https://fscrawler.readthedocs.io/en/fscrawler-2.5/admin/fs/elasticsearch.html?highlight=define%20a%20mapping](https://fscrawler.readthedocs.io/en/fscrawler-2.5/admin/fs/elasticsearch.html?highlight=define%20a%20mapping)

#### Define explicit mapping/settings per job

Let’s say you created a job named `job_name` and you are sending documents against an elasticsearch cluster running version `6.x` .

If you create the following files, they will be picked up at job start time instead of the [default ones](https://fscrawler.readthedocs.io/en/latest/admin/fs/elasticsearch.html#mappings):

- `~/.fscrawler/{job_name}/_mappings/6/_settings.json`
- `~/.fscrawler/{job_name}/_mappings/6/_settings_folder.json`

---

<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:** [January 15, 2019, 10:23am UTC](https://discuss.elastic.co/t/define-explicit-mapping-settings-per-job/164158/2 "2019-01-15T10:23:30Z")

</div>

Those files are generated automatically when you create the job on the first run.  
Then you can edit it to change the path and other settings.

I'm not sure I understood your question right though. What do you not understand?

---

<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:** [February 12, 2019, 10:36am UTC](https://discuss.elastic.co/t/define-explicit-mapping-settings-per-job/164158/3 "2019-02-12T10:36:45Z")

</div>

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