Skip to content

How to list/remove synonym sets on collection level? #119

@maurictg

Description

@maurictg

Hi,

I have the synonym_sets configured on a specific collection, but I would like to modify it using the PHP SDK/API.
I couldn't find an example of how to do it.
I tried to do

$this->client->collections['product']->synonyms->retrieve()

But it gives me a 404 error

Typesense\Exceptions\ObjectNotFound: Not Found in file /var/www/html/vendor/typesense/typesense-php/src/ApiCall.php on line 418

How can I assign/remove a specific synonym set to a collection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions