# Map the lookup fields from the CSV to existing index

**URL:** <https://discuss.elastic.co/t/map-the-lookup-fields-from-the-csv-to-existing-index/189071>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 10:34am UTC](https://discuss.elastic.co/t/map-the-lookup-fields-from-the-csv-to-existing-index/189071 "2019-07-05T10:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [July 5, 2019, 10:34am UTC](https://discuss.elastic.co/t/map-the-lookup-fields-from-the-csv-to-existing-index/189071/1 "2019-07-05T10:34:59Z")

</div>

Hello,

I need to map the fields existing in my index to a lookup file.  
For eg: In index i am having field=value and in a csv i have value=name , so i need to map field=name. How can this be achieved.

So basically whenever I am searching field , i should also get name as result.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2019, 10:39am UTC](https://discuss.elastic.co/t/map-the-lookup-fields-from-the-csv-to-existing-index/189071/2 "2019-07-05T10:39:47Z")

</div>

The best option is to do that during indexing time. Otherwise you can do a reindex to add it.

Alternatively you might be able to use synonyms for this via a custom search-time analyser, but that might be messy to maintain.

---

<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:** [August 2, 2019, 10:39am UTC](https://discuss.elastic.co/t/map-the-lookup-fields-from-the-csv-to-existing-index/189071/3 "2019-08-02T10:39:51Z")

</div>

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