# 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:** 1\
**Showing post:** 2

<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).

---

_[View the full topic](https://discuss.elastic.co/t/illegal-characters-in-elasticsearch-field-names/17196)._
