Queries vs. Filters

I can’t see any description of when I should use a query or a filter or some combination of the two. Can anyone please explain or point me to an explanation?

Nested documents in Elasticsearch

I’m writing an asset management application. It lets users store arbitrary asset attributes by adding an html control such as a text field, select menu, etc. to the asset. A JSON representation of the …