i want to search in elasticsearch using regexp but i must to escape caractere speciaux in this phrase " http://10.10.100.100/test.txt " I tried :
GET indexname/_search
{
"query": {
"nested": {
"path": "test",
"query": {
"bool": {
"must": [
{
"regexp": {
"test.search1": "http://10.10.100.100.*"
}
},
{
"match": {
"test.search2": "url"
}
}
]
}
}
}
}
}
not working.
when i replace "http://10.10.100.100." with "http." it's working so i need to escape ":" and "//"
how to do that with elasticsearch