# Elastic Should sense the input word and apply the space if required

**URL:** <https://discuss.elastic.co/t/elastic-should-sense-the-input-word-and-apply-the-space-if-required/173889>\
**Category:** Elasticsearch\
**Created:** [March 26, 2019, 9:04am UTC](https://discuss.elastic.co/t/elastic-should-sense-the-input-word-and-apply-the-space-if-required/173889 "2019-03-26T09:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehala](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Mehala](https://discuss.elastic.co/u/Mehala)\
**Post date:** [March 26, 2019, 9:04am UTC](https://discuss.elastic.co/t/elastic-should-sense-the-input-word-and-apply-the-space-if-required/173889/1 "2019-03-26T09:04:41Z")

</div>

For example:

In the search query, if am providing the inputs as "IndianOil" then the ES should able to fetch the result with the "Indian Oil" & "IndianOil". Below is the query am currently using in ES 6.3. Please let me know if you have any solution for this.

GET myindex/\_search  
{  
"query": {  
"bool": {  
"must": [  
{  
"bool": {  
"should": [  
{  
"multi\_match": {  
"fields": [  
"company\_name"  
],  
"query": "Indian Oil",  
"type": "phrase"  
}  
}  
]  
}  
}  
]  
}  
}  
}

---

<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:** [April 23, 2019, 9:04am UTC](https://discuss.elastic.co/t/elastic-should-sense-the-input-word-and-apply-the-space-if-required/173889/2 "2019-04-23T09:04:52Z")

</div>

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