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: > > I was reading this blog post about filter bitsets > http://www.elasticsearch.org/blog/all-about-elasticsearch-filter-bitsets/ > > 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? > > { > "and" : [ > { > "bool" : { > "must" : [ > { "term" : {} }, > { "range" : {} }, > { "term" : {} } > ] > } > }, > { "custom_script" : {} }, > { "geo_distance" : {} } > ] > } > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/71c46a63-8608-4c78-9176-8ef430ada278%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
