Sriharsha Chintalapani 45efc76ea1
Fix: Search Slowness when painless scripts aggregates for terms and classifications (#24038)
* Fix: Search Slowness when painless scripts aggregates for terms and classifications

* Fix Sql

* Add fields to security service index

---------

Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com>
2025-10-28 07:18:32 -07:00

14 lines
421 B
SQL

UPDATE test_definition
SET json = JSON_SET(
json,
'$.testPlatforms',
CAST(REPLACE(
JSON_EXTRACT(json, '$.testPlatforms'),
'"DBT"',
'"dbt"'
) AS JSON)
)
WHERE JSON_CONTAINS(json, '"DBT"', '$.testPlatforms');
-- Delete searchSettings to force reload from packaged searchSettings.json with field-based aggregations
DELETE FROM openmetadata_settings WHERE configType='searchSettings';