Skip to content

Using a single 'Range' query inside a Query can cause a server side error #971

Closed
@kohner86

Description

@kohner86

Not sure if this is by design but if I define a query with a single QueryDescriptor inside of type Range in which the 'OnField' value is null ES throws a QueryParsingException since the emitted JSON in the query is empty due to no queries being present.

It seems that the nest library will automatically inject a match_all into the query if none are specified but in the above case the match_all is not added.

In the mean time I've been able to stop the issue from popping up by putting the Range query in a boolean query paired with a match_all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions