Facet_filter and document query return different values.?

Hi,
I have a facet_filter query that returns facet values. When I use one in a
document query, I get different # of results.

Here is the facet query to get the counts and terms.

{'query': {'term': {'text': 'government'}}, 'facets': {'people':
{'facet_filter': {'bool': {'must': [{'term': {'people': 'military'}}]}},
'terms': {'field': 'people'}}}, 'fields': ['id']}

Returns facet "people" with "international" term with count 52.

When attempting to query for those 52 documents (by adding the term to the
previous query), 61 results are returned from query not 52.

{"filter":{"bool":{"must":[{"term":{"people":"military"}},{"term":{"people":"international"}}]}},"query":{"term":{"text":"government"}}}

What am I missing here?

--
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/2d978bd2-b1b9-427e-94e3-9e6a6e3d7de7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

maybe the shard_size parameter (and the explanation why it exists) may help
you understand this problem:

--Alex

On Thu, Dec 12, 2013 at 10:54 PM, project2501 darreng5150@gmail.com wrote:

Hi,
I have a facet_filter query that returns facet values. When I use one in
a document query, I get different # of results.

Here is the facet query to get the counts and terms.

{'query': {'term': {'text': 'government'}}, 'facets': {'people':
{'facet_filter': {'bool': {'must': [{'term': {'people': 'military'}}]}},
'terms': {'field': 'people'}}}, 'fields': ['id']}

Returns facet "people" with "international" term with count 52.

When attempting to query for those 52 documents (by adding the term to the
previous query), 61 results are returned from query not 52.

{"filter":{"bool":{"must":[{"term":{"people":"military"}},{"term":{"people":"international"}}]}},"query":{"term":{"text":"government"}}}

What am I missing here?

--
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/2d978bd2-b1b9-427e-94e3-9e6a6e3d7de7%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/CAGCwEM_EFj17cohUuyQsnbP%2BBY_r_2XZ4sRmNfqnSW2GcwhOFg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.