# How can I apply elasticsearch to detect specific word such as cityname from query string

**URL:** <https://discuss.elastic.co/t/how-can-i-apply-elasticsearch-to-detect-specific-word-such-as-cityname-from-query-string/39616>\
**Category:** Elasticsearch\
**Created:** [January 20, 2016, 3:51am UTC](https://discuss.elastic.co/t/how-can-i-apply-elasticsearch-to-detect-specific-word-such-as-cityname-from-query-string/39616 "2016-01-20T03:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vernomcrp](https://avatars.discourse-cdn.com/v4/letter/v/ed655f/32.png) [@vernomcrp](https://discuss.elastic.co/u/vernomcrp)\
**Post date:** [January 20, 2016, 3:51am UTC](https://discuss.elastic.co/t/how-can-i-apply-elasticsearch-to-detect-specific-word-such-as-cityname-from-query-string/39616/1 "2016-01-20T03:51:28Z")

</div>

I try to detect citiy name from query search by using elasticsearch, don't know where to start

---

<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:** [January 20, 2016, 7:00am UTC](https://discuss.elastic.co/t/how-can-i-apply-elasticsearch-to-detect-specific-word-such-as-cityname-from-query-string/39616/2 "2016-01-20T07:00:31Z")

</div>

"Detecting" is not really what elasticsearch is doing.  
Can you tell more about what is exactly the use case?

What do you index?  
What do you search for?

---

<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, 11:23pm UTC](https://discuss.elastic.co/t/how-can-i-apply-elasticsearch-to-detect-specific-word-such-as-cityname-from-query-string/39616/3 "2017-07-05T23:23:09Z")

</div>


