В официальной документации Elasticsearch написано Any reserved character can be escaped with a backslash "\*" including a literal backslash character: "\\"
.
Можете ли вы объяснить, почему такой запрос
{
"query": {
"bool": {
"must": [
{
"regexp": {
"path": ".*test\/test.txt.*"
}
},
{
"match": {
"user_id": 1
}
}
]
}
}
}
не находит индекс какэто
{
"_index": "pictures",
"_type": "picture",
"_id": "wiskQ2kBi923Omj4U",
"_score": 1,
"_source": {
"user_id": 1,
"tag": [],
"text": "some text",
"path": "test/test.txt"
}
}