# Analysis a string and then search in Elastic Search

**URL:** <https://discuss.elastic.co/t/analysis-a-string-and-then-search-in-elastic-search/204661>\
**Category:** Elasticsearch\
**Created:** [October 22, 2019, 2:12pm UTC](https://discuss.elastic.co/t/analysis-a-string-and-then-search-in-elastic-search/204661 "2019-10-22T14:12:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehrdad.dev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehrdad.dev/32/56326_2.png) [@Mehrdad.dev](https://discuss.elastic.co/u/Mehrdad.dev)\
**Post date:** [October 22, 2019, 2:12pm UTC](https://discuss.elastic.co/t/analysis-a-string-and-then-search-in-elastic-search/204661/1 "2019-10-22T14:12:40Z")

</div>

**Hi everyone .**

I have a micro service that get a string and want to search in Elastic Search.

- I have two field in my Elastic Search :  
1- FirstName  
2- LastName

But when the user write a string for search another users may be write FirstName and LastName Continuous or write more than this two fields in search bar.

Now , I in search for Find a way for Analysis this string for find FirstName and LastName and then search query in Elastic Search.

Is there a way for this ?  
Or another way or idea for this search.

Thank a lot .

---

<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:** [November 19, 2019, 2:12pm UTC](https://discuss.elastic.co/t/analysis-a-string-and-then-search-in-elastic-search/204661/2 "2019-11-19T14:12:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
