How to search string containing hypen?

Hi, I want to index text that contains hyphens, for example MiddleEaton-Byers but I am unable to because with the regular expression *{seachparams}* the results are not coming?
Below is the query string:
"query": {
"query_string": {
"default_operator": "OR",
"default_field": "patients.name",
"query": "*Eaton-Byers*"
}
},

Can anyone please help me?

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