# (no subject)

**URL:** https://discuss.elastic.co/t/no-subject/6957
**Category:** Elasticsearch
**Created:** [March 9, 2012, 9:04am UTC](https://discuss.elastic.co/t/no-subject/6957 "2012-03-09T09:04:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Abhishek\_Jajoria](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Abhishek\_Jajoria](https://discuss.elastic.co/u/Abhishek_Jajoria)
#### Post date: [March 9, 2012, 9:04am UTC](https://discuss.elastic.co/t/no-subject/6957/1 "2012-03-09T09:04:46Z")

</div>

Can you suggest a query for the following requirements

1. I want to search a text like "My text message"
2. It search the text in the index using simple analyzer using query\_string  
3.If it finds the text then it return documents simply.  
4.If it doesn't find the text then it searches from "my text" as query  
string.  
5.if it also doesn't find from "my text" then it searches from "my" as  
query string.

I need this very urgently any effort would be thankful for me.

---

<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, 3:36am UTC](https://discuss.elastic.co/t/no-subject/6957/2 "2017-07-06T03:36:35Z")

</div>


