Keyword Search
Keyword search is a method that allows users to search your data based on specific keywords. Unlike [semantic search]/content-api/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 - specific fields
Arguments
Name | Type | Default | Description |
---|---|---|---|
query * | string, string[] | ||
fields | string[] | Specify which fields to search, |