# FsCrawler add script to \_settings.yaml file

**URL:** <https://discuss.elastic.co/t/fscrawler-add-script-to-settings-yaml-file/311524>\
**Category:** Elasticsearch\
**Created:** [August 5, 2022, 12:24pm UTC](https://discuss.elastic.co/t/fscrawler-add-script-to-settings-yaml-file/311524 "2022-08-05T12:24:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien70](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien70/32/98140_2.png) [@Julien70](https://discuss.elastic.co/u/Julien70)\
**Post date:** [August 5, 2022, 12:24pm UTC](https://discuss.elastic.co/t/fscrawler-add-script-to-settings-yaml-file/311524/1 "2022-08-05T12:24:03Z")

</div>

Hi everyone,

I have a lot of geotagged photos (among other geodata).  
I have imported them into Elastic (v7.11) with FsCrawler (v2.9 for es7). It's working pretty well.  
But, the fields "latitude" "longitude" taken from the files are written into Elastic index as "text" type.  
I was wondering if it is possible to add a script into the \_settings.yaml file of the FsCrawler job to remap this 2 fields into a geo\_point type field (location for ex.).  
Or, is there a better way to achieve this task ?  
I have to add that I am very new to ES and FsCrawler 🙂 , so sorry for my basic question.

---

<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:** [August 5, 2022, 1:43pm UTC](https://discuss.elastic.co/t/fscrawler-add-script-to-settings-yaml-file/311524/2 "2022-08-05T13:43:30Z")

</div>

I think that you need to use an ingest pipeline which renames the fields and may be transform text to numbers.

You can declare this pipeline in FSCrawler settings then.

---

<div class="post-metadata">

**Author:** ![Julien70](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien70/32/98140_2.png) [@Julien70](https://discuss.elastic.co/u/Julien70)\
**Post date:** [August 5, 2022, 3:05pm UTC](https://discuss.elastic.co/t/fscrawler-add-script-to-settings-yaml-file/311524/3 "2022-08-05T15:05:06Z")

</div>

Thanks for the answer.  
I will try this solution.  
Unfortunatly, I will be on the field for the next 3 weeks. I won't be able to try soon. And I will have a lot of reading (Elastic doc. ...) to do before.

---

<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:** [September 2, 2022, 3:05pm UTC](https://discuss.elastic.co/t/fscrawler-add-script-to-settings-yaml-file/311524/4 "2022-09-02T15:05:11Z")

</div>

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