# What fields does ElasticSearch map by default?

**URL:** <https://discuss.elastic.co/t/what-fields-does-elasticsearch-map-by-default/19423>\
**Category:** Elasticsearch\
**Created:** [August 23, 2014, 10:37pm UTC](https://discuss.elastic.co/t/what-fields-does-elasticsearch-map-by-default/19423 "2014-08-23T22:37:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Lim](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Albert\_Lim](https://discuss.elastic.co/u/Albert_Lim)\
**Post date:** [August 23, 2014, 10:37pm UTC](https://discuss.elastic.co/t/what-fields-does-elasticsearch-map-by-default/19423/1 "2014-08-23T22:37:18Z")

</div>

I'm trying to create an image metadata store, and obviously a single image  
can have 20 or more metadata fields.

So if I enter this document into ElasticSearch, will it index/map all those  
fields? Such that I can query for every field? Or can I tell ElasticSearch  
what to index or not?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7d8963cd-b9cd-40b3-97c6-e45b65d2760c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7d8963cd-b9cd-40b3-97c6-e45b65d2760c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [August 25, 2014, 1:34am UTC](https://discuss.elastic.co/t/what-fields-does-elasticsearch-map-by-default/19423/2 "2014-08-25T01:34:45Z")

</div>

Hello Albert ,

Few things here

1. Yes , you cal tell Elasticsearch which fileds to index and which  
field not to index. You can use index : " yes/no" property for each field  
in the schema to specify this. -  
[Specify which fields are indexed in ElasticSearch - Stack Overflow](http://stackoverflow.com/questions/13626617/specify-which-fields-are-indexed-in-elasticsearch)
2. There is a concept of \_all in Elasticsearch. This would be a  
super-set of all field values and to search on the entire document , you  
can simply search on \_all field. -  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-all-field.html#mapping-all-field)

Thanks  
Vineeth

On Sun, Aug 24, 2014 at 4:07 AM, Albert Lim [albertlim322@gmail.com](mailto:albertlim322@gmail.com) wrote:

> I'm trying to create an image metadata store, and obviously a single image  
> can have 20 or more metadata fields.
> 
> So if I enter this document into Elasticsearch, will it index/map all  
> those fields? Such that I can query for every field? Or can I tell  
> Elasticsearch what to index or not?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/7d8963cd-b9cd-40b3-97c6-e45b65d2760c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7d8963cd-b9cd-40b3-97c6-e45b65d2760c%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/7d8963cd-b9cd-40b3-97c6-e45b65d2760c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7d8963cd-b9cd-40b3-97c6-e45b65d2760c%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m6f3PGizZwKh0S3GbrdXHs%3DL5KcPHHOh%3DYRSzxRztZhA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m6f3PGizZwKh0S3GbrdXHs%3DL5KcPHHOh%3DYRSzxRztZhA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:06am UTC](https://discuss.elastic.co/t/what-fields-does-elasticsearch-map-by-default/19423/3 "2017-07-06T01:06:47Z")

</div>


