have go the problem in making Elasticsearch regex work. I have a document that looks like this:
{"content": "My name is Akesh Jadhav."}
I have tried the following regex "Akesh\sJadhav" to match the Akesh Jadhav with the regex query. I use a keyword field but this regex doesn't work. Can you suggest me correct regex to get my result and one thing I want to perform this search with regex only.
If you want to find malicious ip anywhere in the hTMLBody.not_analyzed field, then you need { "regexp": { "hTMLBody.not_analyzed": { "value": ".*malicious\\sip.*" } } }
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.