Limiting results to 100 problem

I have the following query:

{
"from" : 0, "size" : 100,
"sort" : [
{ "date" : {"order" : "desc"} }
],
"query": {
"filtered": {
"query": {
"match_all": {
}
},
"filter": {
"bool": {
"must": {
"term": {
"user": "' . $user_id . '"
}
},
"must_not": {
"range": {
"node": {
"from": 100,
"to": 100
}
}
}
}
}
}
}
}

When I run this query with user_id equal to 1, I get 97 results instead of
the expected 100 results. Are there some tests I can do to determine why
there's this small discrepancy?

Thank you.

--
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.

I just noticed that other user_id's get different results, the one I just
saw got 91 results. These members have many more to exceed the 100 limit,
so there must be something that is throwing off the size variable in the
query.

--
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.