I found this old issue which did not get a lot of traction:
I wonder if this is doable with an ingest pipeline which would build a text field containing all the text from the array... I was expecting copy_to to do that but apparently it does not...
@jpountz I wonder if this is a bug or a feature. IMHO it looks like a bug. Or may be we should add an option for arrays? As here we don't want the number of tokens in the biggest string of the array but the count of all the tokens within the array.
We are developing an application called data-catalog, which holds all information about the data that our department is dealing with, something like supply chain data.
In this application, we are allowing users to like or dislike(social recommendations) content of a document.
So, while a user searching for a document, we would like to sort the list of matched documents in number of likes in descending order, followed by number of dislikes in ascending order.
We are storing who liked or disliked in the array of strings(userid). Hence, we arrived at the problem of sorting the result set by length of an array.
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.