I want to do a wild card search below to return results that only include the phrase "joe smith". This works but it also includes records without his name. I've played with the "min_score" value to help on this but I want something to be more precise. If it doesn't include the phrase don't include it in the result.
Or is my query approach incorrect?
Is "message" supposed to be field in one of our indexes or is it a generic value that will be searched across all indexes? I'm unclear on that. We'd like to search all fields as of now.
To understand this, we need to see how data has been indexed across the indexes. For that we need to know the mapping. Or if you can share some sample data with index query and what you're looking for. We can do quick poc.
The mapping of the fields searched will impact what results a particular query returns. If you index the same string in a field mapped as a keyword and a different fields that is analyzed a specific query may find only one, both or maybe even none of them.
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.