I am brand new to ElasticSearch and have a few fundamental questions regarding queries and filters.
1) *How does one control ordering of filter vs query? Is it possible to filter first, then perform a query on those results?* With a filter query<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html> the documentation reads: A query that applies a filter to the results of another query. How I interpret that statement is that the query will run first then the filter will be applied. Can this behavior be adjusted? Also, I can execute a search with an independent filter and query which produces the same results as a filtered query. It appears the timing is about the same as well. 2) *Can I simply place the filter first within the JSON object then the query to control whether the filter is run before the query?* Ultimately, I just really want to know the behavior for when filters are run before queries and if there is a possibility to control the execution precedence. Thank you! -- Coyote Logistics, LLC is a licensed Property Broker (MC# 561135-B). http://www.coyote.com/disclaimer/ -- 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/7c36c760-3b47-41a8-89c9-1da3a22ac153%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
