I am looking for a way to search across all text and keyword fields, including nested fields, in an index for keyword matches and then retrieve which field it hit on. I don’t necessarily know which field the keyword might hit on because the data is very complex and heavily nested. Because of that, I don’t want to be restricted to a list of fields that I think I might want to search on, but I do need to report back which field the query hit on.
I have tried query_string queries with no field set, but this doesn’t work on nested documents. I tried multi-match query with fields: empty list, but it also didn’t work with the nested fields. I’m wondering if anyone has suggestions on how to accomplish this. Thanks in advance!
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.