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

Logical operations between QueryDescriptor objects are not allowed #8002

Open
Tracked by #8356
bonny-bonev opened this issue Dec 13, 2023 · 3 comments
Open
Tracked by #8356
Labels
8.x Relates to 8.x client version Category: Feature Usability

Comments

@bonny-bonev
Copy link

bonny-bonev commented Dec 13, 2023

Elastic.Clients.Elasticsearch version:8.11

Elasticsearch version:8.11

.NET runtime version:4.8

Operating system version:Win 11

Description of the problem including expected versus actual behavior:
In previous versions (7.x) the QueryContainer objects could be used for logical operations like && and || example:
QueryContainer container = container1 || container2;

In 8.x this is not working. The QueryContainer seems to be replaced with QueryDescriptor, which is fine, but the logical operations implementation is missing. Is this a bug, or something that will be added in the future, or is it replaced with some other approach?

Steps to reproduce:

  1. Try to construct a QueryDescriptor from two other queries with logical operations

Expected behavior
The operation to be allowed, or documentation to be available on how to migrate such code.

Provide ConnectionSettings (if relevant):

Provide DebugInformation (if relevant):

Tasks

No tasks being tracked yet.
@bonny-bonev bonny-bonev added the 8.x Relates to 8.x client version label Dec 13, 2023
@bonny-bonev
Copy link
Author

Found a workaround to use Query object and not the facades. However it will be nice to port the functionality to the new 8.x API.

@flobernd
Copy link
Member

Hi @bonny-bonev, some of the convenience features are not yet ported over from 7.x to 8.x. My primary focus is on endpoint support at the moment (there is still a lot of functionality missing in 8.x). Afterwards I definitely plan to bring back some of these usability imrovements.

@niemyjski
Copy link
Contributor

And operators overloads*

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 Category: Feature Usability
Projects
None yet
Development

No branches or pull requests

3 participants