Where I have a bunch of nested arrays. I want to be able to query to see if an element exists within a row. So for example, I'd want to see if 1 was in the first nested list of the thing_1. I'm not sure how to do this from reading the nested documentation, since those examples focus on nested objects.
How do I specify my mapping, and what do I need to do to make queries?
Now, hoping to figure out if I can tell where in the doc my match was, since not all my documents are structured the same, making it seem like highlights aren't well suited for what I'm trying to do. Do you think I could do something with scripts?
I think the community needs to understand the problem a bit better - can you provide more detail? Actual sample documents, your index settings/document mappings.
But consider if you can restructure your data to denormalize it - ie. get rid of the array of arrays, in favour of duplicating some data. That usually makes things easier - but as always, it depends on how you need to query the data.
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.