Term queries are one of the most precise and performant query types in Elasticsearch. They are designed for exact-value matching…