Search results do not match facet count where it should

I'm doing phrase_prefix search for 'engineer' and I get 36 count for term
'Engineering' in 'skills' field facet. Next I apply a term filter on that
field for 'Engineering' and in the new filtered results now the count for
'Engineering' in the facet is 42.

The filtered query returns 42 results, and each document does match the
facet, that is, they all contain 'Engineering' as a skill.

So I would expect the non-filtered query to have a 42 count for the
'Engineering' term in 'skills' facet, but as I mentioned above it's just 36.

Here's mapping and query

What I'm missing here?

Thanks

I'm using ES 0.90.5

--
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/e1146a5c-768b-4e6b-b499-e36748ddde36%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

just to make sure I understood your query correctly:

Your phrase prefix search does not search in the skills field? This means
the search for engineer goes somewhere else.
Second, when you add the term filter, do you keep the query or are you
simply replacing it? Not sure I got that right.

Can you possibly create a gist using your real data and including all the
curl calls you used, so one can recreate it locally and see what happens?

--Alex

On Fri, Jan 10, 2014 at 4:21 PM, Santiago Gaviria sgaviria@gmail.comwrote:

I'm doing phrase_prefix search for 'engineer' and I get 36 count for term
'Engineering' in 'skills' field facet. Next I apply a term filter on that
field for 'Engineering' and in the new filtered results now the count for
'Engineering' in the facet is 42.

The filtered query returns 42 results, and each document does match the
facet, that is, they all contain 'Engineering' as a skill.

So I would expect the non-filtered query to have a 42 count for the
'Engineering' term in 'skills' facet, but as I mentioned above it's just 36.

Here's mapping and query
query.json · GitHub

What I'm missing here?

Thanks

I'm using ES 0.90.5

--
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/e1146a5c-768b-4e6b-b499-e36748ddde36%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/CAGCwEM92ZpbxG2tEtgqGkKGGH%2BtDxcZNQnwXymY2uBYcKMZvmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.