I have a number of objects nested into an array (though not of type
nested); i'm using IndexRequestBuilder.addField() to retrieve certain
fields together with the search results. This works perfectly well
when specifying an array of, say, plain strings, i'm getting an array
of strings back.
However, on an array filled with objects, nothing at all is being
returned, even if the array contains but one object and I'm specifying
the path to some string-typed field of the object itself (e.g.
"my_array.some_object_field") - why is that? is there any way to work
around this?
I have a number of objects nested into an array (though not of type
nested); i'm using IndexRequestBuilder.addField() to retrieve certain
fields together with the search results. This works perfectly well
when specifying an array of, say, plain strings, i'm getting an array
of strings back.
However, on an array filled with objects, nothing at all is being
returned, even if the array contains but one object and I'm specifying
the path to some string-typed field of the object itself (e.g.
"my_array.some_object_field") - why is that? is there any way to work
around this?
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.