Content APISearchKeyword Search

Keyword Search

Keyword search is a method that allows users to search your data based on specific keywords. Unlike semantic search which focuses on the meaning of the search query, keyword search relies on exact matches of the keywords used in the search query.

This method is best to use when you want to provide quick and straightforward search results. It is especially effective when dealing with large databases where users are familiar with the specific keywords used within the data.

Syntax

Keyword search can be operated on an any object’s string or string[] field. Here’s how:

Usage

Example 1 - Google Docs

Example 2 - Any text block

Example 3 - Google Docs - search in specific properties

Arguments

NameTypeDescription
query*stringThe keyword or phrase to search for
propertiesstring[]Array of field names to limit the search to specific properties
©2024 Unbody