- Type:
list<string> - Default:
[](all searchable attributes) - Scope:
search
Usage
Usage
- Attribute names are case-sensitive.
- This parameter only works if
searchableAttributesisn’t empty ornull.
- Target attributes from a comma-separated list of attributes within
searchableAttributes. For example, if yoursearchableAttributesis set to['title, category', 'content'], you can restrict searches to"content", but not to"title"or"category"individually, or to"title,category". - Change the ranking priority of matched attributes.
For example, if
searchableAttributesis["title", "category", "content"]and you restrict the search to["category", "title"], matches in thetitleattribute still rank higher than matches incategory. - Apply or override
searchableAttributesmodifiers such asunordered. This parameter only accepts attribute names. For example, if you configuredunordered(title)insearchableAttributes, restrict the search with["title"], not["unordered(title)"].
Example
The following example restricts the search to thetitle and author attributes,
even if your searchableAttributes setting includes more.
Current API clients
Current API clients
Legacy API clients
Legacy API clients