- Type:
list<string>
- Default:
[]
(all searchable attributes) - Scope:
search
Usage
- Attribute names are case-sensitive.
- This parameter only works if
searchableAttributes
isn’t empty ornull
.
- Target attributes from a comma-separated list of attributes within
searchableAttributes
. For example, if yoursearchableAttributes
is set to['title, category', 'content']
, you can restrict to"content"
, but not to"title"
or"category"
individually, nor to"title,category"
. - Change the ranking priority of matched attributes.
For example, if
searchableAttributes
is["title", "category", "content"]
and you restrict the search to["category", "title"]
, matches in thetitle
attribute still rank higher than matches incategory
.
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