Skip to content
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

Possibility to supply custom synonym id #75774

Open
meurling opened this issue Jul 28, 2021 · 3 comments
Open

Possibility to supply custom synonym id #75774

meurling opened this issue Jul 28, 2021 · 3 comments
Labels
>enhancement :Search/Analysis How text is split into tokens Team:Search Meta label for search team

Comments

@meurling
Copy link

Currently it is not possible to supply a custom synonym-id when creating a new synonym-set through the synonyms API.
It would be helpful if this was possible, so we don't have to manage a mapping between your default id's and our own id's.

@meurling meurling added >enhancement needs:triage Requires assignment of a team area label labels Jul 28, 2021
@meurling
Copy link
Author

I guess it would look like this and be optional to provide a custom id
curl -X POST 'https://[instance id].ent-search.[region].[provider].cloud.es.io/api/as/v1/engines/national-parks-demo/synonyms' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer private-xxxxxxxxxxxxxxxxxxxx' \ -d '{ "id": "my-pig-synonyms", "synonyms": ["pig", "boar"] }'

@albertzaharovits
Copy link
Contributor

Thanks for your interest in Elasticsearch!

I will transfer the issue to a separate repo, because it is actually a separate component of the app search solution that deals with this.

@gwbrown gwbrown added :Search/Analysis How text is split into tokens and removed needs:triage Requires assignment of a team area label labels Aug 5, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Aug 5, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Analysis How text is split into tokens Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

4 participants