# Which character/special character break Elastic Search on index time as well as Search?

**URL:** <https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042>\
**Category:** Elasticsearch\
**Created:** [March 18, 2012, 5:53am UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042 "2012-03-18T05:53:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [March 18, 2012, 5:53am UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042/1 "2012-03-18T05:53:34Z")

</div>

Hi

can anyone provide list of character which breaks Elastic Search on index  
and search .

Thanks

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 18, 2012, 6:24am UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042/2 "2012-03-18T06:24:28Z")

</div>

ES supports UTF encoding and hence there should not be any such character  
which breaks ES.  
Can you elaborate the context where you have run into such a character.

Thanks  
Vineeth

On Sun, Mar 18, 2012 at 11:23 AM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:

> Hi
> 
> can anyone provide list of character which breaks Elastic Search on index  
> and search .
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 18, 2012, 7:46am UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042/3 "2012-03-18T07:46:01Z")

</div>

You could break indexing if you use special chars (like comma) in index name, type name or ID.

Otherwise, as Vineeth said, it should not break.

David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 18 mars 2012 à 07:24, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :

> ES supports UTF encoding and hence there should not be any such character which breaks ES.  
> Can you elaborate the context where you have run into such a character.
> 
> Thanks  
> Vineeth
> 
> On Sun, Mar 18, 2012 at 11:23 AM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:  
> Hi
> 
> can anyone provide list of character which breaks Elastic Search on index and search .
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [March 18, 2012, 5:05pm UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042/4 "2012-03-18T17:05:33Z")

</div>

Thanks for reply.

if document may contains special character comma,colon etc in this case  
what happen?

On Sunday, March 18, 2012 1:16:01 PM UTC+5:30, David Pilato wrote:

> You could break indexing if you use special chars (like comma) in index  
> name, type name or ID.
> 
> Otherwise, as Vineeth said, it should not break.
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr
> 
> Le 18 mars 2012 à 07:24, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> écrit :
> 
> ES supports UTF encoding and hence there should not be any such character  
> which breaks ES.  
> Can you elaborate the context where you have run into such a character.
> 
> Thanks  
> Vineeth
> 
> On Sun, Mar 18, 2012 at 11:23 AM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:
> 
> > Hi
> > 
> > can anyone provide list of character which breaks Elastic Search on index  
> > and search .
> > 
> > Thanks

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 18, 2012, 5:24pm UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042/5 "2012-03-18T17:24:03Z")

</div>

Which part of the document ?

You need to preserve the JSON format for one thing.  
Then its just fields and values.  
Its fine if it comes in the value side and i havnt tried it on the field  
side.

Can you elaborate you problem a little more.  
Like the scenario which motivated to ask this question

Thanks  
Vineeth

On Sun, Mar 18, 2012 at 10:35 PM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:

> Thanks for reply.
> 
> if document may contains special character comma,colon etc in this case  
> what happen?
> 
> On Sunday, March 18, 2012 1:16:01 PM UTC+5:30, David Pilato wrote:
> 
> > You could break indexing if you use special chars (like comma) in index  
> > name, type name or ID.
> > 
> > Otherwise, as Vineeth said, it should not break.
> > 
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr
> > 
> > Le 18 mars 2012 à 07:24, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > écrit :
> > 
> > ES supports UTF encoding and hence there should not be any such character  
> > which breaks ES.  
> > Can you elaborate the context where you have run into such a character.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Sun, Mar 18, 2012 at 11:23 AM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:
> > 
> > > Hi
> > > 
> > > can anyone provide list of character which breaks Elastic Search on  
> > > index and search .
> > > 
> > > Thanks

---

<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, 3:35am UTC](https://discuss.elastic.co/t/which-character-special-character-break-elastic-search-on-index-time-as-well-as-search/7042/6 "2017-07-06T03:35:41Z")

</div>


