Skip to content

Logical operations between QueryDescriptor objects are not allowed #8002

Closed
@bonny-bonev

Description

@bonny-bonev

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):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions