Trying to search for severity values with special characters in it e.g. "1 - Critical". tried with backslashes to see if I can get the exact results.
If I change the query below with "*2 \\- Cri*", it also returns documents with values '1 - Critical' and '2 - Major'. I tried by putting .keyword but no results. Pls. assist.
When you want to use wildcard in query string then use the keyword type of field. Here, severity.keyword. Also you need to escape only those special character which are part of lucene query syntax. The query would be:
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.