Templates for Filters

Hi,

I'm new to elastic search. From what I understand there are two types of templates: Template Query & Search Template.
Based on this post and their descriptions on the elastic reference doc. it looks like both are templates for queries.

Because filters have better performance than queries I want to create filter templates.

Is there some way to do this, I feel like there must be a way to using Template Query or Search Template.

Thanks!