# Elasticsearch doesn't support backquote?

**URL:** <https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504>\
**Category:** Elasticsearch\
**Created:** [May 9, 2016, 1:48am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504 "2016-05-09T01:48:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![qpily](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qpily/32/9774_2.png) [@qpily](https://discuss.elastic.co/u/qpily)\
**Post date:** [May 9, 2016, 1:48am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504/1 "2016-05-09T01:48:26Z")

</div>

Hi, I met a problem these days that I cannot query backquote in elastic.  
My setting included letter, digit, symbol and punctuation. But it seems that ` is not included. I tried version 1.6, 2.2 and 2.3 either. It seems the same.  
Did anybody met this problem?

---

<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:** [May 9, 2016, 4:40am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504/2 "2016-05-09T04:40:59Z")

</div>

Can you provide code examples of what you are trying to do?

---

<div class="post-metadata">

**Author:** ![qpily](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qpily/32/9774_2.png) [@qpily](https://discuss.elastic.co/u/qpily)\
**Post date:** [May 9, 2016, 7:45am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504/3 "2016-05-09T07:45:24Z")

</div>

I saved three doc in elastic: {"name": "`Test`"}, {"name": "'Test'"}, {"name": ""Test""}  
When I post query: {"query":{"match":{"name":"'"}}}. It could give me the second doc.  
But if I post query: {"query":{"match":{"name":"`"}}}. It got nothing.  
My index settings:  
"mappings": {  
"index": {  
"dynamic": "strict",  
"properties": {  
"name": {  
"type": "string"  
"term\_vector": "with\_positions\_offsets"  
"analyzer": "index\_ngrams"  
"search\_analyzer": "search\_ngrams"  
}  
}  
}  
"settings": {  
"index": {  
"mapper": {  
"dynamic": "false"  
}  
"analysis": {  
"analyzer": {  
"search\_ngrams": {  
"filter": ["lowercase"]  
"type": "custom"  
"tokenizer": "whitespace"  
}  
"index\_ngrams": {  
"filter": ["lowercase"]  
"type": "custom"  
"tokenizer": "ngram\_tokenizer"  
}  
}  
"tokenizer": {  
"ngram\_tokenizer": {  
"token\_chars": ["letter", "digit", "symbol", "punctuation"]  
"min\_gram": "1"  
"type": "nGram"  
"max\_gram": "30"  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![qpily](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qpily/32/9774_2.png) [@qpily](https://discuss.elastic.co/u/qpily)\
**Post date:** [May 17, 2016, 5:59am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504/4 "2016-05-17T05:59:48Z")

</div>

I've found the reason that why elastic search didn't support back quote.  
Back quote is considered as 'modifier symbol' in elastic. Now the symbol matcher only support 'currency', 'math' and 'other' symbols. You can see source code below:  
`SYMBOL { @Override public boolean isTokenChar(int c) { switch (Character.getType(c)) { case Character.CURRENCY_SYMBOL: case Character.MATH_SYMBOL: case Character.OTHER_SYMBOL: return true; default: return false; } } }`  
I think it should be a bug of elastic.

---

<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 5, 2017, 10:51pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-support-backquote/49504/5 "2017-07-05T22:51:14Z")

</div>


