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
493: Support text-separator customization r=brunoocasali a=ellnix
# Pull Request
## Related issue
Fixes#487
## 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?
There are linter errors on both this pull request and the #491 since they add new settings, but they cannot reasonably be tackled while adding settings. A separate issue and PR would be more appropriate.
Co-authored-by: ellnix <[email protected]>
Co-authored-by: Bruno Casali <[email protected]>
493: Support text-separator customization r=brunoocasali a=ellnix
# Pull Request
## Related issue
Fixes#487
## 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?
There are linter errors on both this pull request and the #491 since they add new settings, but they cannot reasonably be tackled while adding settings. A separate issue and PR would be more appropriate.
Co-authored-by: ellnix <[email protected]>
Co-authored-by: Bruno Casali <[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: