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": {}
}
}
}