# Illegal characters in elasticsearch field names

**URL:** <https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196>\
**Category:** Elasticsearch\
**Created:** [April 25, 2014, 11:42am UTC](https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196 "2014-04-25T11:42:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliezer\_Shindler](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@Eliezer\_Shindler](https://discuss.elastic.co/u/Eliezer_Shindler)\
**Post date:** [April 25, 2014, 11:42am UTC](https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196/1 "2014-04-25T11:42:30Z")

</div>

Hi,

Besides from special characters, elasticsearch also does not seem to allow  
other characters in fild names, such as \<,\> and a comma. Could anyone  
please provide me with a full list of illegal characters for field names.

Many thanks,

Eli

--  
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/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [April 25, 2014, 12:56pm UTC](https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196/2 "2014-04-25T12:56:19Z")

</div>

Special characters in Elasticsearch field names are:

. (for navigation between name components)

# (for delimiting name components in \_uid, should work, but is discouraged)

- (for matching names)

There are also some restrictions on type names for mappings:

- must not start with underscore "\_"
- must not contain comma ","
- must not contain hash mark "#"
- usage of point "." is discouraged but possible

Jörg

On Fri, Apr 25, 2014 at 1:42 PM, Eliezer Shindler \<[eliezershindler@gmail.com](mailto:eliezershindler@gmail.com)

> wrote:

> Hi,
> 
> Besides from special characters, elasticsearch also does not seem to allow  
> other characters in fild names, such as \<,\> and a comma. Could anyone  
> please provide me with a full list of illegal characters for field names.
> 
> Many thanks,
> 
> Eli
> 
> --  
> 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/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%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/CAKdsXoHbWGfCCNbq\_vUA7EDTNs-2%3DsnbqVVs89mHD0c9YF6NQg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHbWGfCCNbq_vUA7EDTNs-2%3DsnbqVVs89mHD0c9YF6NQg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Eliezer\_Shindler](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@Eliezer\_Shindler](https://discuss.elastic.co/u/Eliezer_Shindler)\
**Post date:** [April 25, 2014, 2:46pm UTC](https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196/3 "2014-04-25T14:46:54Z")

</div>

Thank you.

On Friday, 25 April 2014 13:56:19 UTC+1, Jörg Prante wrote:

> Special characters in Elasticsearch field names are:
> 
> . (for navigation between name components)
> 
> # (for delimiting name components in \_uid, should work, but is discouraged)
> 
> - (for matching names)
> 
> There are also some restrictions on type names for mappings:
> 
> - must not start with underscore "\_"
> - must not contain comma ","
> - must not contain hash mark "#"
> - usage of point "." is discouraged but possible
> 
> Jörg
> 
> On Fri, Apr 25, 2014 at 1:42 PM, Eliezer Shindler \<[eliezer...@gmail.com](mailto:eliezer...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi,
> > 
> > Besides from special characters, elasticsearch also does not seem to  
> > allow other characters in fild names, such as \<,\> and a comma. Could anyone  
> > please provide me with a full list of illegal characters for field names.
> > 
> > Many thanks,
> > 
> > Eli
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b113635c-3b53-4ba7-9bd2-4ca554737282%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/efe1550c-2888-49c2-b85d-1abb1f45016c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/efe1550c-2888-49c2-b85d-1abb1f45016c%40googlegroups.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:33am UTC](https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196/4 "2017-07-06T01:33:30Z")

</div>


