*same* query return different result


(Chen Wang) #1

I am using version 1.0.0.RC2

for the following two queries: one is using match_all, the other is using
term filter
"query": {
"match_all": {}
},
"aggregations": {
"by_campaign": {
"terms": {
"field": "campaign_name"
}
}
}


"query": {
"term": {"campaign_name.original":"snbp_407400"}
},
"aggregations": {
"by_campaign": {
"terms": {
"field": "campaign_name.original"
}
}
}

However the result is different:
with match_all, it returns 3 records
{
"key": "snbp_407600",
"doc_count": 3
},

with term query it returns 4 records
{
"key": "snbp_407400",
"doc_count": 4
}

and there are a total of 4 records.(meaning the one with term query is
correct). Any idea why this is happending?
Thanks,
Chen

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CACim9Rm5zCPEzYyVxfuqwmJGkLSHHApqmXbkqyLrpOhUKURqCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2