So you want to use a term
query within a bool -> filter
clause, no?
May be I misunderstand in which case provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem.