Shouldn't these two queries return the same result? That doesn't seem to
be the case. The first query returns the correct result. But the second
one does not. It seems that the second query does not properly handle the
fact that there are multiple instances. The sum of counts from the first
query correctly exceed the number of documents since there are multiple
instances in each document. However, it seems the sum of counts in the
second query equals the total number of documents so it isn't "flattening"
out the instances.
Our documents have a map of entities, each entity has an array of
instances, each instance has an attributes object.
Anybody else see this? This is with 1.0.0.Beta2-SNAPSHOT so could be a
new bug...
On Thursday, November 14, 2013 9:52:34 AM UTC-6, Adam H wrote:
Shouldn't these two queries return the same result? That doesn't seem to
be the case. The first query returns the correct result. But the second
one does not. It seems that the second query does not properly handle the
fact that there are multiple instances. The sum of counts from the first
query correctly exceed the number of documents since there are multiple
instances in each document. However, it seems the sum of counts in the
second query equals the total number of documents so it isn't "flattening"
out the instances.
Our documents have a map of entities, each entity has an array of
instances, each instance has an attributes object.
If you use the doc.values which returns an array of all values, they
should be identical.
Cheers,
Boaz
On Monday, November 18, 2013 4:54:16 PM UTC+1, Adam H wrote:
Anybody else see this? This is with 1.0.0.Beta2-SNAPSHOT so could be a
new bug...
On Thursday, November 14, 2013 9:52:34 AM UTC-6, Adam H wrote:
Shouldn't these two queries return the same result? That doesn't seem to
be the case. The first query returns the correct result. But the second
one does not. It seems that the second query does not properly handle the
fact that there are multiple instances. The sum of counts from the first
query correctly exceed the number of documents since there are multiple
instances in each document. However, it seems the sum of counts in the
second query equals the total number of documents so it isn't "flattening"
out the instances.
Our documents have a map of entities, each entity has an array of
instances, each instance has an attributes object.
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.