You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add two new settings: separatorTokens and nonSeparatorTokens with get, update, and reset methods associated.
Here are the JS equivalents in meilisearch-js you should create for this repository:
client.index('indexName').getSeparatorTokens();// calls GET /indexes/:uid/settings/separator-tokensclient.index('indexName').updateSeparatorTokens(['|','/','&sep']);// calls PUT /indexes/:uid/settings/separator-tokensclient.index('indexName').resetSeparatorTokens();// calls DELETE /indexes/:uid/settings/separator-tokensclient.index('indexName').getNonSeparatorTokens();// calls GET /indexes/:uid/settings/non-separator-tokensclient.index('indexName').updateNonSeparatorTokens(['@','#']);// calls PUT /indexes/:uid/settings/non-separator-tokensclient.index('indexName').resetNonSeparatorTokens();// calls DELETE /indexes/:uid/settings/non-separator-tokens
The methods associated with the /settings API route (to get, reset and update the settings globally) must be able to receive in the payload the two new configurations separatorTokens and nonSeparatorTokens
595: Supports text separation r=irevoire a=NoodleSamaChan
# Pull Request
## Related issue
#526
## What does this PR do?
Added two new settings: separatorTokens and nonSeparatorTokens with get, update, and reset methods associated.
## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?
Thank you so much for contributing to Meilisearch!
Co-authored-by: NoodleSamaChan <[email protected]>
Co-authored-by: NoodleSamaChan <[email protected]>
Following this central issue
separatorTokens
andnonSeparatorTokens
withget
,update
, andreset
methods associated.Here are the JS equivalents in meilisearch-js you should create for this repository:
/settings
API route (to get, reset and update the settings globally) must be able to receive in the payload the two new configurationsseparatorTokens
andnonSeparatorTokens
.code-samples.meilisearch.yaml
get_separator_tokens_1
key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/2060089a5c10bcd0beb28633062f90cf0b279f7f/.code-samples.meilisearch.yaml#L1111update_separator_tokens_1
key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/2060089a5c10bcd0beb28633062f90cf0b279f7f/.code-samples.meilisearch.yaml#L1114reset_separator_tokens_1
key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/2060089a5c10bcd0beb28633062f90cf0b279f7f/.code-samples.meilisearch.yaml#L1119get_non_separator_tokens_1
key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/2060089a5c10bcd0beb28633062f90cf0b279f7f/.code-samples.meilisearch.yaml#L1122update_non_separator_tokens_1
key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/2060089a5c10bcd0beb28633062f90cf0b279f7f/.code-samples.meilisearch.yaml#L1125reset_non_separator_tokens_1
key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/2060089a5c10bcd0beb28633062f90cf0b279f7f/.code-samples.meilisearch.yaml#L1130The text was updated successfully, but these errors were encountered: