Bug in bool queries?


(Matheus Salvia) #1

Hello everyone,
I believe I've found a bug concerning bool queries and bool filters.
Should't the these queries return the same number of hits?
http://pastebin.com/twyMX4cD
I have the need of making some counts and they must be very fast, so I've
mixed a filtered query with the _count endpoint to try and increase my
performance (It Didn't by the way), but I've started to get the wrong
results (the two queries return different number of hits).
Am I missing something? Or this is indeed a bug?

Thanks in advance,
Matheus Salvia

--
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/CAOJV22aecp4ySxHxp5_zjaUWWf6oGaeNZQoVd%3DL85PP-GOUddA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Martijn Van Groningen) #2

What version of ES are you running? Recently a few bugs have been fixed
with the has_child filter.

On 10 December 2013 19:45, Matheus Salvia matheus2740@gmail.com wrote:

Hello everyone,
I believe I've found a bug concerning bool queries and bool filters.
Should't the these queries return the same number of hits?
http://pastebin.com/twyMX4cD
I have the need of making some counts and they must be very fast, so I've
mixed a filtered query with the _count endpoint to try and increase my
performance (It Didn't by the way), but I've started to get the wrong
results (the two queries return different number of hits).
Am I missing something? Or this is indeed a bug?

Thanks in advance,
Matheus Salvia

--
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/CAOJV22aecp4ySxHxp5_zjaUWWf6oGaeNZQoVd%3DL85PP-GOUddA%40mail.gmail.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
Met vriendelijke groet,

Martijn van Groningen

--
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/CA%2BA76TxWQkCzHkPP%2Bn2EKUfigPwsFfO%3DcSMQ8f5eXsaatwAM%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3