Skip to content

8.15.6 - Term/Terms Filtering feedback #8344

Open
@niemyjski

Description

@niemyjski

Elastic.Clients.Elasticsearch version: 8.15.6

Elasticsearch version: 8.15.1

.NET runtime version: 8.x

Operating system version: Any

Description of the problem including expected versus actual behavior:

I noticed a lot of inconsistencies / verbosity when converting to the new api's

Previous

The existing TermQueryDescriptor is more aligned with the new mapping api where you select the field with an expression. The new one is very verbose

Filter(f => f.Term(m => m.Field1, "value1") 

New

Filter(f => f.Term(m => m.Field(tf => tf.Field1).Value("value1")))

Expected behavior

New filtering is really verbose and and doesn't feel like other areas of the api.

Reference: FoundatioFx/Foundatio.Parsers#84

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