Skip to content

Search API queryFilter range parameter ignored — returns 0 results on v1.12.5 #27520

@romamo

Description

@romamo

Affected module
Backend API (Elasticsearch/search endpoint)

Describe the bug
Passing a queryFilter with a range condition to GET /api/v1/search/query returns 0 hits, even when many matching records exist. The parameter is silently ignored rather than returning an error.

To Reproduce

GET /api/v1/search/query?q=*&index=table_search_index&queryFilter={"query":{"range":{"updatedAt":{"gte":1700000000000}}}}

Returns {"hits":{"total":{"value":0},...}} despite many tables having updatedAt values above the threshold.

A plain GET /api/v1/search/query?q=*&index=table_search_index without the filter returns results normally.

Expected behavior
The queryFilter range condition should be applied and filter results by the updatedAt field, returning only matching records.

Version Information

  • OpenMetadata version: 1.12.5 (sandbox.open-metadata.org)

Additional context
Discovered while building a "recently modified assets" workflow using the CLI. The current workaround is to fetch all results and filter client-side on updatedAt, which is inefficient for large catalogs. The range approach is documented as valid but does not work on this version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions