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

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"
}
}
]
}
}
]
}
}
}

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