Does the filter context place all nested queries in the filter context as well?

If I'm using the filter context of either a bool or a constant_score query, how are nested (i.e. compound) queries treated under them? It makes sense to me that everything under it would be run as filter, but I can't find anything in the documentation that confirms that. I want to make sure there is no scoring at all while running the query to make it as efficient as possible.

I want to verify that this:

    {
      "query": { 
        "contant_score": { 
          "filter": [ 
             "bool" : {
                "should" : [
                   { "term" : { "tag" : "wow" } },
                   { "bool" : ... nested queries ...} }
               ]
           }
       ]
    }
  }
}    

will be run entirely under the filter context and that I don't have to use a constant_score wrapper for each subquery.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.