meilisearch / meilisearch-java

Java client for Meilisearch

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[v1.4] Support text-separator customization

curquiza opened this issue · comments

Following this central issue

  • 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-tokens
client.index('indexName').updateSeparatorTokens(['|', '/', '&sep']);  // calls PUT /indexes/:uid/settings/separator-tokens
client.index('indexName').resetSeparatorTokens(); // calls DELETE /indexes/:uid/settings/separator-tokens

client.index('indexName').getNonSeparatorTokens(); // calls GET /indexes/:uid/settings/non-separator-tokens
client.index('indexName').updateNonSeparatorTokens(['@', '#']); // calls PUT /indexes/:uid/settings/non-separator-tokens
client.index('indexName').resetNonSeparatorTokens(); // calls DELETE /indexes/:uid/settings/non-separator-tokens