-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Synonyms and Query rules APIs #2299
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
Add Synonyms and Query rules APIs #2299
Conversation
@pquentin Thanks for adding this. This is odd, I can put in an issue to improve it for 8.11. There may already be other client updates to go along with it as it's in tech preview. |
This issue was supposed to be fixed by elastic/elasticsearch-specification#2242 but @Anaethelion is also seeing the same issue in Go, which likely means we need an additional fix in elasticsearch-specification. |
Thanks @pquentin. I think this should resolve it? elastic/elasticsearch-specification#2276 |
Was DMing with @pquentin about this, figured I'd put it on the PR itself to register my confusion openly. 😆 What is the difference between 9965478 and 5abe9cf? Both have the same exact number of lines changed, but they differ in ways that are hard to see immediately, mostly because it's so many lines changed. Also: is @pquentin a high-performing genius that he was able to modify thousands of lines of code in a relatively short period of time? |
Never mind. Github is apparently lying to me today. 😱 I have reloaded those diffs in my browser multiple times and suddenly, just now, the diffs changed completely. I may be going crazy. |
New day, brain is working properly. Thanks for fixing this. Once it's merged, we can publish 8.10 to PyPI. Can you make sure the fix gets merged to the generator as well? |
@kderusso With your fix, I can now write the following code:
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making this fix!
Closes #2288
The first commit applies generation and
nox -rs format
, while the second one contains my manual fixes. Tested as follows:Note that
es.query_ruleset.put
is weird, I would have expected to be able to usees.query_ruleset.put(ruleset_id="my-ruleset", rules=[...])
instead as is idiomatic for the 8.x client. Any thoughts on that @kderusso?