Skip to content

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

Merged
merged 11 commits into from
Dec 14, 2021

Conversation

damcou
Copy link
Contributor

@damcou damcou commented Dec 3, 2021

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:

  • See if it's possible to define an argument SynonymHits instead of SynonymHit[]

@damcou damcou marked this pull request as ready for review December 6, 2021 14:13
Copy link
Member

@shortcuts shortcuts left a 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

@damcou damcou requested review from shortcuts and millotp December 10, 2021 16:39
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damcou damcou requested review from millotp and shortcuts December 13, 2021 15:24
Copy link
Member

@shortcuts shortcuts left a 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

@damcou damcou requested review from millotp and shortcuts December 14, 2021 09:22
@damcou damcou merged commit a8af9b1 into main Dec 14, 2021
@damcou damcou deleted the feat/APIC-191/synonyms-endpoints branch December 14, 2021 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants