# What is best way for saving URL on Elasticsearch, only "keyword" type mapping?

**URL:** <https://discuss.elastic.co/t/what-is-best-way-for-saving-url-on-elasticsearch-only-keyword-type-mapping/286477>\
**Category:** Elasticsearch\
**Created:** [October 12, 2021, 10:48am UTC](https://discuss.elastic.co/t/what-is-best-way-for-saving-url-on-elasticsearch-only-keyword-type-mapping/286477 "2021-10-12T10:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan\_kim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_kim/32/95741_2.png) [@dan\_kim](https://discuss.elastic.co/u/dan_kim)\
**Post date:** [October 12, 2021, 10:48am UTC](https://discuss.elastic.co/t/what-is-best-way-for-saving-url-on-elasticsearch-only-keyword-type-mapping/286477/1 "2021-10-12T10:48:48Z")

</div>

Hello ~

Our team is going to save our product data in Elasticsearch and I got question when i type mapping schema.

The url of "product image", or "product payment" is quite big compared to other attribute in Elasticsearch mapping.

But this value (url) is not going to used as sorting parameter or searching parameter.  
URL is just the value that sticked on other searchable, sortable value like price or name and description.

So, I think using same mapping or any configure on url is kind of waste of resources.  
And I hope that master of Elasticsearch will find a great suggestion or any article about this topic.

If you let me know about this, It would be really helpful.  
HAVE A GOOD DAY

---

<div class="post-metadata">

**Author:** ![linkerc](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@linkerc](https://discuss.elastic.co/u/linkerc)\
**Post date:** [October 12, 2021, 8:31pm UTC](https://discuss.elastic.co/t/what-is-best-way-for-saving-url-on-elasticsearch-only-keyword-type-mapping/286477/2 "2021-10-12T20:31:03Z")

</div>

Just don't index that field. We store documents with text descriptions all the time. The description field will never be searched; therefore, we simple disable indexing through the mapping. When the document is returned, the description will still be visible.

---

<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:** [November 9, 2021, 8:31pm UTC](https://discuss.elastic.co/t/what-is-best-way-for-saving-url-on-elasticsearch-only-keyword-type-mapping/286477/3 "2021-11-09T20:31:10Z")

</div>

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