Terms filter execution mode

2014-06-12 Thread Valery Ayala
I'm trying to understand the different execution modes for the terms filter. (http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html#_execution_mode) And/Or execution modes seem self-explanatory. The bool execution mode says Generates a term filter

Bool vs. And/Or/Not filters

2014-05-23 Thread Valery Ayala
I have a filtered query, and within the filter I want to accomplish something like this (X AND Y AND ...) AND (A OR B OR ...) AND (C OR D OR ...) where X, Y, A, B, C, D are all filter expressions and each set of expressions within the params can be arbitrary in length Originally, before the

Terms lookup mechanism with multiple lookup docs

2014-05-22 Thread Valery Ayala
Is it possible to use this feature with a lookup on multiple documents (multiple IDs) to supply the terms? http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html#_terms_lookup_mechanism I tried this terms: { user: {