Regular expression query

I have a text like this "10-year-old", how can i search this using regular expression query.
How can we search over special characters in Elasticsearch.

I am using the below query, it is not returning the output.

GET index_name/_search?scroll=1m
{
"_source": ["file.filename","file.url"],
"query": {
"regexp": {
"content": "10-year-old"
}
},
"highlight": {
"fields": {
"content": {}
}
}
}

Hi @Krishna_Sai_Nag_G .

Provide more information, such as documents, to help understand your issue.

1 Like

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