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.
Affected module
Backend API (Elasticsearch/search endpoint)
Describe the bug
Passing a
queryFilterwith a range condition toGET /api/v1/search/queryreturns 0 hits, even when many matching records exist. The parameter is silently ignored rather than returning an error.To Reproduce
Returns
{"hits":{"total":{"value":0},...}}despite many tables havingupdatedAtvalues above the threshold.A plain
GET /api/v1/search/query?q=*&index=table_search_indexwithout the filter returns results normally.Expected behavior
The
queryFilterrange condition should be applied and filter results by theupdatedAtfield, returning only matching records.Version Information
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.