Answer the question
In order to leave comments, you need to log in
How to do regular expression search in Elasticsearch?
Does not search by regular expressions in Elasticsearch
Index: items
Field: lot_description
Regular expression: Pan.sonic I execute
the following query in the console:
curl -XPOST 'localhost:9200/items/_search' -H 'Content-Type: application/json'
-d '{"query":
{"regexp":
{"lot_description":
{"value": "Pan.sonic"}}}}'
{"took":8,"timed_out":false,"_shards":
{"total":1,"successful":1,"skipped":0,"failed":0},
"hits":
{"total":{"value":0,"relation":"eq"},
"max_score":null,"hits":[]}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question