# Is there a problem with elasticsearch query\_string?

**URL:** <https://discuss.elastic.co/t/is-there-a-problem-with-elasticsearch-query-string/20507>\
**Category:** Elasticsearch\
**Created:** [October 30, 2014, 10:59pm UTC](https://discuss.elastic.co/t/is-there-a-problem-with-elasticsearch-query-string/20507 "2014-10-30T22:59:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sulemanmubarik](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sulemanmubarik](https://discuss.elastic.co/u/sulemanmubarik)\
**Post date:** [October 30, 2014, 10:59pm UTC](https://discuss.elastic.co/t/is-there-a-problem-with-elasticsearch-query-string/20507/1 "2014-10-30T22:59:33Z")

</div>

Hi  
i am running a search with accent "chín\*" i am using query string but i don't get any hits  
if i use prefix then i get the correct number of results  
is there any problem with query string and it is unable to handle search with accent?

here are both search json  
{  
"query": {  
"query\_string": {  
"query": "chín\*",  
"fields": [],  
"use\_dis\_max": false,  
"default\_operator": "and",  
"allow\_leading\_wildcard": false  
}  
}  
}

{  
"query": {  
"multi\_match": {  
"query": "ch?n\*",  
"fields": [],  
"type": "phrase\_prefix",  
"max\_expansions": 100,  
"tie\_breaker": 0,  
"zero\_terms\_query": "NONE"  
}  
}  
}

---

<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:** [October 31, 2014, 7:27am UTC](https://discuss.elastic.co/t/is-there-a-problem-with-elasticsearch-query-string/20507/2 "2014-10-31T07:27:36Z")

</div>

I think it's a concern about analyzers but might be incorrect.  
You should provide a full curl/SENSE recreation and GIST it.

David

> Le 30 oct. 2014 à 23:59, sulemanmubarik [sulemanmubarik@gmail.com](mailto:sulemanmubarik@gmail.com) a écrit :
> 
> Hi  
> i am running a search with accent "chín\*" i am using query string but i  
> don't get any hits  
> if i use prefix then i get the correct number of results  
> is there any problem with query string and it is unable to handle search  
> with accent?
> 
> here are both search json  
> {  
> "query": {  
> "query\_string": {  
> "query": "chín\*",  
> "fields": ,  
> "use\_dis\_max": false,  
> "default\_operator": "and",  
> "allow\_leading\_wildcard": false  
> }  
> }  
> }
> 
> {  
> "query": {  
> "multi\_match": {  
> "query": "ch?n\*",  
> "fields": ,  
> "type": "phrase\_prefix",  
> "max\_expansions": 100,  
> "tie\_breaker": 0,  
> "zero\_terms\_query": "NONE"  
> }  
> }  
> }
> 
> --  
> View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Is-there-a-problem-with-elasticsearch-query-string-tp4065560.html](http://elasticsearch-users.115913.n3.nabble.com/Is-there-a-problem-with-elasticsearch-query-string-tp4065560.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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/1414709973641-4065560.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1414709973641-4065560.post%40n3.nabble.com).  
> 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/4C4821F1-B4C2-4666-9575-429F290EDEDE%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/4C4821F1-B4C2-4666-9575-429F290EDEDE%40pilato.fr).  
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, 12:52am UTC](https://discuss.elastic.co/t/is-there-a-problem-with-elasticsearch-query-string/20507/3 "2017-07-06T00:52:53Z")

</div>

Closed on July 6, 2017, 12:52am UTC


