We would like to do searches that find this for a search on auth1/role1 but not for auth1/role2. We have used nested queries to make this work, but
unfortunately nested queries dont work with highlighting. Is there any
other way to accomplish this ? (We are contemplating simply filing a new
field that combines name and role, but that would also have some drawbacks).
You can use nested objects and set "include_in_parent" to true (it's like
using type:nested and type:object on the same field), then highlight on the
fields in the parent object.
We would like to do searches that find this for a search on auth1/role1
but not for auth1/role2. We have used nested queries to make this work,
but unfortunately nested queries dont work with highlighting. Is there any
other way to accomplish this ? (We are contemplating simply filing a new
field that combines name and role, but that would also have some drawbacks).
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.