At the end, the conclusion is that the bool filter should be used for
everything but geo, numeric range and custom script. However the example
query at the end seems to include a range in the bool filter. Is this a
typo or am I missing something? Also what about query filters? I would
assume those wouldn't go in the bool filter either?
also one followup question. if i do a terms filter and then a query filter,
should put the terms filter in a bool with a single clause? It seems
strange to do so, but he following passage leads made me wonder if this is
the case:
"It matters because the Bool filter utilizes BitSets while the And/Or/Not
filters do not. If you put a Terms Filter inside of an And…no BitSet will
be used, even though it exists."
On Monday, May 12, 2014 2:14:16 AM UTC-4, slushi wrote:
At the end, the conclusion is that the bool filter should be used for
everything but geo, numeric range and custom script. However the example
query at the end seems to include a range in the bool filter. Is this a
typo or am I missing something? Also what about query filters? I would
assume those wouldn't go in the bool filter either?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.