Term-Level Queries: Term Query

Learn about the term query and how to use it.

Term query

A term query is a type of query used to search for documents containing an exact term or value in a specific field. It is designed for searching keyword fields, which are stored in the inverted index without any analysis or tokenization. Term queries are particularly useful for exact matches, such as searching for a product ID or username, where an exact match is necessary.

Get hands-on with 1200+ tech skills courses.