Hi,
When faceting on more than one index, each with one shard, no replicas, and
containing the same data structure, TermsFacet will return the wrong
counts. This can be easily verified by running a simple query with the
facet value. Additionally, changing the size parameter will cause facet
results to change (while we only expected to get a shorter/longer list , we
actually see values change and terms disappear).
*
*
Our faceting query:
*
*
{
"from" : 0,
"size" : 0,
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "test",
"fields" : [ "title", "topic" ]
}
},
"filter" : {
"numeric_range" : {
"topic_date" : {
"from" : "2012-12-17T00:00:00.000+02:00",
"to" : "2013-03-17T23:59:59.999+02:00",
"include_lower" : true,
"include_upper" : true
}
}
}
}
},
"facets" : {
"termFacet" : {
"terms" : {
"fields" : [ "author" ],
"size" : 10
},
"facet_filter" : {
"numeric_range" : {
"topic_date" : {
"from" : "2012-12-17T00:00:00.000+02:00",
"to" : "2013-03-17T23:59:59.999+02:00",
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}
I also opened a bug for this on github:
Itamar.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.