Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add limitation about manually specifying searchableAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmourier committed Mar 16, 2022
1 parent 1ef2651 commit 981cbfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion text/0123-searchable-attributes-setting-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ To make some attributes non-searchable, or change the attribute ranking order. A

The [Attribute Ranking Rule]() ranks search results by the order defined in the `searchableAttributes` setting. Documents that contain query terms in the more important searchable attribute will be returned first.

Manually updating searchableAttributes will change the displayed order of document fields in the JSON response.

#### 3.1.3. Relationship With Ranking Rules

A document field that is not defined in the list of `searchableAttributes` will not be considered by the following ranking rules to match and rank search results.
Expand Down Expand Up @@ -170,4 +172,5 @@ Modifying this index setting cause documents to be re-indexed.

- Replace `POST` HTTP verb with `PATCH`
- Add dedicated error to avoid using generic `bad_request` error code
- Return an error when `searchableAttributes` is defined as an empty array
- Return an error when `searchableAttributes` is defined as an empty array
- Fix the reordering issue of document representation when searchableAttributes is specified.

0 comments on commit 981cbfe

Please sign in to comment.