I can\'t see any description of when I should use a query or a filter or some combination of the two. What is the difference between them? Can anyone please explain?
Since version 2 of Elasticsearch, filters and queries have been merged and any query clause can be used as either a filter or a query (depending on the context). As with version 1, filters are cached and should be used if scoring does not matter.