I want to query documents which have an array field of string values, and I would like to know if any of these string values have matched for the filtered documents. My use case is to know which of the returned documents (e.g. posts) are reported by the user (i.e. the array contains the user IDs of the reporters).
There are two "which fields matched" kinds of features: named_queries and highlighting. I'm not sure if either one fits your use case. If both fit then prefer named_queries as they are going to be lower overhead.
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.