Hyphen(-) is not matching using elasticsearch query

Hi Team,

Am trying to fetch data "/This is/my-query" am not able to fetch my-query.
Hyphen is not matching .

Can you please provide elasticsearch regex patterns

Below is my query

{
"query": {
"regexp": {
"request": {
"value": "my-query"
}
}
}
}

Note: i tried with my'-'query and my\-query
But none of them worked

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