# Search for names analyzed/not\_analyzed

**URL:** <https://discuss.elastic.co/t/search-for-names-analyzed-not-analyzed/44318>\
**Category:** Elasticsearch\
**Created:** [March 14, 2016, 11:43am UTC](https://discuss.elastic.co/t/search-for-names-analyzed-not-analyzed/44318 "2016-03-14T11:43:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiorY89](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@LiorY89](https://discuss.elastic.co/u/LiorY89)\
**Post date:** [March 14, 2016, 11:43am UTC](https://discuss.elastic.co/t/search-for-names-analyzed-not-analyzed/44318/1 "2016-03-14T11:43:25Z")

</div>

I'm having a little problem with my search option.  
I built an index with "name" field, which also has a raw field.  
the name is analyzed and the name.raw is not\_analyzed

A few names for example:  
Alexander Petrov,  
Alexander Gruenewald,  
Brett Alexander,  
Alexander Loewe

I'm trying to create a search in my system, which will query all the fields (name, age, residence...)  
and i want that typing alexander p will bring Alexander Petrov alone...  
I tried query\_string, wildcard and many other stuff without success...

What is the best solution here?

---

<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:** [March 15, 2016, 3:23am UTC](https://discuss.elastic.co/t/search-for-names-analyzed-not-analyzed/44318/2 "2016-03-15T03:23:24Z")

</div>

Probably [https://www.elastic.co/guide/en/elasticsearch/reference/2.2/search-suggesters-completion.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.2/search-suggesters-completion.html)

---

<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:08pm UTC](https://discuss.elastic.co/t/search-for-names-analyzed-not-analyzed/44318/3 "2017-07-05T23:08:30Z")

</div>


