# Correct query type to find placename value

**URL:** <https://discuss.elastic.co/t/correct-query-type-to-find-placename-value/12282>\
**Category:** Elasticsearch\
**Created:** [June 5, 2013, 3:55pm UTC](https://discuss.elastic.co/t/correct-query-type-to-find-placename-value/12282 "2013-06-05T15:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_O](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dave_o/32/69398_2.png) [@Dave\_O](https://discuss.elastic.co/u/Dave_O)\
**Post date:** [June 5, 2013, 3:55pm UTC](https://discuss.elastic.co/t/correct-query-type-to-find-placename-value/12282/1 "2013-06-05T15:55:26Z")

</div>

I have defined a placename field as both analyzed and not\_analyzed. I  
would like to know the best way to query it with the following requirements.

If I have a user input value of "Lake".

I would like to find all records that contain "Lake" as well as Fuzzy  
search with the results ordered by the closest match...Which would start  
with Lake.

Such as

"Lake"  
"Lake Kittimequanda"  
"Lake Victor"  
"Blue Lake"  
"Red Laik"

I used the wildcard query which worked well but was a little slow.  
"wildcard" : {placename : "_Lake_"}

This doesn't however pick up "Red Laik".

I'm wondering if there is a more efficient way to bring back the data other  
then wildcard and if Fuzzy can be incorporated.

Thansk

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:32am UTC](https://discuss.elastic.co/t/correct-query-type-to-find-placename-value/12282/2 "2017-07-06T02:32:43Z")

</div>

Closed on July 6, 2017, 2:32am UTC


