Skip to content

feat(synonym-set): add item retrieve, upsert and delete - #102

Merged
haydenhoang merged 2 commits into
typesense:masterfrom
tharropoulos:feat/synonym-set-items
Nov 10, 2026
Merged

haydenhoang merged 2 commits into
typesense:masterfrom
tharropoulos:feat/synonym-set-items

Conversation

@tharropoulos

Copy link
Copy Markdown
Collaborator
  • add SynonymSetItems with retrieve() to list every item in a synonym set
  • add SynonymSetItem with retrieve(), upsert() and delete() on /synonym_sets/{name}/items/{id}, URL-encoding both the set name and the item id
  • expose both through SynonymSet.items() and SynonymSet.items(itemId), caching one SynonymSetItem per id
  • route both Client constructors through one private constructor, which fixes the OkHttpClient constructor leaving synonymSets and curationSets null
  • add SynonymSetItemsTest integration tests, skipped on servers below v30
  • add ClientTest to check that a custom OkHttpClient handles synonym and curation set calls and that the default constructor still resets the node index

@haydenhoang

Copy link
Copy Markdown
Collaborator

lgtm!

@haydenhoang
haydenhoang merged commit a3ac6aa into typesense:master Nov 10, 2026
3 checks passed
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.

2 participants