And I would like to be able to get a repartition of the number of items
into the
“collection” key. For example, With my sample, I expect something like:
1 documents has 3 items
1 document has 2 items
And then, after getting this king of information, I would like to be able to
query ES to ask something like “give me all document that have 2 items
under the
collection property”.
I dig into the documentation, test lot of things with sens, but nothing
give me the expected result.
So I have few questions:
Is it possible?
If yes, where can I find the doc?
If no, is it because I did not understand ES correctly?
Yes and no Because I would like to be able to also filter node in the
collection. And then cound.
Actually, the collection contains orders, and I want to be able to know how
many paid order I get for a user.
On Friday, June 27, 2014 8:40:49 AM UTC+2, Timber wrote:
Could you not add a count of items in the collection at index time? In
this case you could filter on this value.
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.