# Fields that need not be searched or indexed

**URL:** <https://discuss.elastic.co/t/fields-that-need-not-be-searched-or-indexed/127186>\
**Category:** Elasticsearch\
**Created:** [April 8, 2018, 12:59am UTC](https://discuss.elastic.co/t/fields-that-need-not-be-searched-or-indexed/127186 "2018-04-08T00:59:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hooman\_Bahreini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hooman_bahreini/32/29500_2.png) [@Hooman\_Bahreini](https://discuss.elastic.co/u/Hooman_Bahreini)\
**Post date:** [April 8, 2018, 12:59am UTC](https://discuss.elastic.co/t/fields-that-need-not-be-searched-or-indexed/127186/1 "2018-04-08T00:59:52Z")

</div>

I am using ElasticSearch v6 to search my product catalog.

My product has a number fields, such as title, description, price, etc... one of the fields is: photo\_path, which would contain the location of product photo on disk.

photo\_path does need to be searched, but need to be retrieved.

Question: Is there a way to mark this field as not searchable/not indexed? And is this a good idea, for example will I save storage/process time, by marking this field not searchable.

---

<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:** [April 8, 2018, 1:07am UTC](https://discuss.elastic.co/t/fields-that-need-not-be-searched-or-indexed/127186/2 "2018-04-08T01:07:55Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/mapping-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/mapping-index.html).

It might save a bit of space.

---

<div class="post-metadata">

**Author:** ![Hooman\_Bahreini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hooman_bahreini/32/29500_2.png) [@Hooman\_Bahreini](https://discuss.elastic.co/u/Hooman_Bahreini)\
**Post date:** [April 8, 2018, 1:10am UTC](https://discuss.elastic.co/t/fields-that-need-not-be-searched-or-indexed/127186/3 "2018-04-08T01:10:28Z")

</div>

Thanks a lot

---

<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:** [May 6, 2018, 1:10am UTC](https://discuss.elastic.co/t/fields-that-need-not-be-searched-or-indexed/127186/4 "2018-05-06T01:10:48Z")

</div>

Closed on May 6, 2018, 1:10am UTC

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