I wonder how ES analyzes wildcard in simple_query_string queries. Specifically, what happens when query string includes a stop word and asterisk (*).
In my case,
My index has a custom analyzer with a bunch of filters including stop word filter and a char filter. And I'm running a simple_query_string query by setting analyze_wildcard option to true and query string to (<a stop word>*). How does analyzer work in this case?
Notes:
I get no hits.
I get hits when analyze_wildcard is set to false. (i.e There are entries of which queried field value is starting with <a stop word> in query string.)
I got what I want here. I just want to report that analysis of wildcard terms looks a little bit problematic, and analyze_wildcard is explained in an uncertain way in the documentation. Even, there is an open issue about it from 2016
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.