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

Elasticsearch client is missing Synonyms Set configuration in Analysis.SynonymGraphTokenFilter #8125

Closed
avaudo opened this issue Apr 12, 2024 · 4 comments · Fixed by #8129
Closed
Labels
8.x Relates to 8.x client version Area: Specification Category: Bug

Comments

@avaudo
Copy link

avaudo commented Apr 12, 2024

Elasticsearch Version

8.13.1

Installed Plugins

No response

Java Version

bundled

OS Version

windows 11

Problem Description

The Elastic.Clients.Elasticsearch library for .Net (8.13.5 or earlier) is completely missing the ability to create a SynonymGraphTokenFilter using a synonyms set. It only allows for a list of synonym words or a synonyms path, not a synonyms set that was created through the Synonyms API. This is almost an identical issue that somebody reported here, but for Java.

elastic/elasticsearch-java#781

Steps to Reproduce

There is absolutely no way to create a filter like below using the elastic client library (8.13.5 or earlier) .

"filter": {
"synonyms_filter": {
"type": "synonym_graph",
"synonyms_set": "my-synonym-set",
"updateable": true
}
}

Logs (if relevant)

No response

@avaudo avaudo changed the title Elasticsearch client is missing SynonymsSet configuration in Analysis.SynonymGraphTokenFilter Elasticsearch client is missing Synonyms Set configuration in Analysis.SynonymGraphTokenFilter Apr 12, 2024
@elasticsearchmachine
Copy link

Pinging @elastic/clients-team (Team:Clients)

@pquentin pquentin transferred this issue from elastic/elasticsearch Apr 16, 2024
@flobernd flobernd added 8.x Relates to 8.x client version Area: Specification Category: Bug labels Apr 16, 2024
@flobernd
Copy link
Member

@avaudo Hi! Thanks for reporting. This is a specification issue which means it is fixed on a central place for all (most) language clients. @l-trotta already took care of this after it was reported for the Java client. It will be fixed for .NET in one of the next patch releases as well.

@avaudo
Copy link
Author

avaudo commented May 24, 2024

This is now available in the .Net version of elasticsearch client?

@flobernd
Copy link
Member

@avaudo Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to 8.x client version Area: Specification Category: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants