-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Added synonyms endpoints for the search client #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small general feedbacks! Looks good overall :D
clients/algoliasearch-client-javascript/client-search/model/synonymObject.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall! Small feedbacks:
We should mark the response as required
to avoid having optional properties like: https://github.com/algolia/api-clients-automation/blob/76ebf76841530d95720cbc7f2ece81e6b7a41a7d/clients/algoliasearch-client-javascript/client-search/model/clearAllSynonymsResponse.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the engine never returns empty responses, so we should mark properties
like taskID
and updatedAt
as required
Added synonyms endpoints for the search client:
/1/indexes/{indexName}/synonyms/{objectID}
(saveSynonym(), getSynonym(), deleteSynonym())/1/indexes/{indexName}/synonyms/batch
(saveSynonyms())/1/indexes/{indexName}/synonyms/clear
(clearAllSynonyms())/1/indexes/{indexName}/synonyms/search
(searchSynonyms())Related doc :
TODO: