...

/

Term-Level Queries: Exploring More Queries

Term-Level Queries: Exploring More Queries

Explore more term-level queries and learn how you can utilize them.

Overview

Term-level queries offer a precise and direct approach to searching and retrieving documents, targeting specific terms or patterns without undergoing any analysis or tokenization of the search terms. In addition to term and range queries, term-level queries offer a variety of other useful query types, including:

  • Prefix query

  • Wildcard query

  • Regex query

Prefix query

A prefix query is a type of query that enables searching for documents based on terms with a specific prefix. For instance, if we have a collection of documents containing terms such as "apple", "application", and "aptitude", performing a prefix query with the prefix "app" would retrieve the documents "apple" and "application", because they both start with the prefix "app".

Wildcard query

A wildcard query is a type of query that enables searching for documents using a wildcard pattern. A wildcard pattern is a string that includes special characters or placeholders to represent unknown or variable parts of a term. The two common operators used in wildcard patterns are the question mark "?", which matches any single character, and the asterisk "*", which can match zero or more characters, ...