Skip to content

[FEATURE] Add Support for SimpleQueryStringQuery "flags" parameter in 8.x client #7863

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

Closed
gise88 opened this issue Jul 27, 2023 · 5 comments · Fixed by #7869
Closed

[FEATURE] Add Support for SimpleQueryStringQuery "flags" parameter in 8.x client #7863

gise88 opened this issue Jul 27, 2023 · 5 comments · Fixed by #7869
Labels
8.x Relates to a 8.x client version

Comments

@gise88
Copy link

gise88 commented Jul 27, 2023

I'd like to request support for the SimpleQueryString flags parameter in v8.x. We're planning to upgrade to the ES 8 but some part of our project relies on this feature and it seems to be missing in this new client.

As part of the migration process, I'm performing a gap analysis and I noticed some other features are missing like Filter aggregation or JoinField (#7756), and other that might come next days.

Because of this need, I would also really love to contribute to this repo but after watching this talk from @stevejgordon I fear the "converter" from elasticsearch-specification to generated code is still a private repository.. Could you please advise me on how to proceed with this request?

Thank you in advance,
Gianluca

@gise88 gise88 added the Feature label Jul 27, 2023
@flobernd flobernd added the 8.x Relates to a 8.x client version label Jul 28, 2023
@flobernd
Copy link
Member

Hi @gise88!

Unfortunately you are right about the code generator aka "converter". The code generator repositories are highly coupled to our internal workflow, so opening them up would be a non-trivial task.

Some features can be implemented as handcrafted extensions (where it makes sense) as the generated files are mostly partial.

The flags field seems to be in the specification. I'll have to check why it's not generated.

@gise88
Copy link
Author

gise88 commented Jul 28, 2023

Hey @flobernd! Thank you very much for the answer!

Yep, I saw SimpleQueryStringQuery class is partial but that means I'll need to fork this library (since partials can only live in the same assembly) and create my own Nuget and maintain it, which of course is something we would like to avoid.

What if I sing the CLA? Can you then share the code generator to me? 😀

@flobernd
Copy link
Member

What if I sing the CLA? Can you then share the code generator to me? 😀

The CLA must be signed in order to contribute to our open source repositories, but signing it does not grant you access to any private repository. Unfortunately we can not make any exceptions here.

Yep, I saw SimpleQueryStringQuery class is partial but that means I'll need to fork this library (since partials can only live in the same assembly) and create my own Nuget and maintain it, which of course is something we would like to avoid.

In this particular case it does not make sense to manually extend the class. I just checked and the generator is aware of the flags, but currently has no support for generation of [Flags] enums.

@gise88
Copy link
Author

gise88 commented Jul 28, 2023

The CLA must be signed in order to contribute to our open source repositories, but signing it does not grant you access to any private repository. Unfortunately we can not make any exceptions here.

I can say "unfortunately" as well but yeah, I fully understand .. and I had to try! 😄

In this particular case it does not make sense to manually extend the class. I just checked and the generator is aware of the flags, but currently has no support for generation of [Flags] enums.

I see! Even if I've already a workaround creating our own SimpleQueryStringQuery wrapper on top of the RawJsonQuery, can you give me an ETA for this implementation? I just need to discuss internally on how to proceed..

@flobernd
Copy link
Member

can you give me an ETA for this implementation?

I'm currently working on the code generator anyways, which means you could be lucky, but I won't promise anything 🙂 I will take a more detailed look next week in order to estimate and prioritize. Will come back to you afterwards!

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

Successfully merging a pull request may close this issue.

2 participants