mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-01 19:18:05 +00:00
Add Api Service, Collection and Endpoint in reindex app (#17527)
* Add Api Service and Collection and Endpoint * Keep SearchIndexing as false by Default
This commit is contained in:
parent
5133c31d31
commit
9309cf94c1
@ -303,3 +303,9 @@ ALTER TABLE automations_workflow
|
||||
ADD COLUMN workflowType VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.workflowType') STORED NOT NULL;
|
||||
|
||||
ALTER TABLE entity_extension ADD INDEX extension_index(extension);
|
||||
|
||||
-- Remove SearchIndexing for api Service, collection and endpoint
|
||||
DELETE er FROM entity_relationship er JOIN installed_apps ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
|
||||
DELETE er FROM entity_relationship er JOIN apps_marketplace ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
|
||||
DELETE from installed_apps where name = 'SearchIndexingApplication';
|
||||
DELETE from apps_marketplace where name = 'SearchIndexingApplication';
|
||||
@ -275,3 +275,9 @@ update table_entity set json = jsonb_set(json#-'{dataModel,owner}', '{dataModel,
|
||||
jsonb_build_array(json#>'{dataModel,owner}')) where json #>> '{dataModel,owner}' is not null;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS extension_index ON entity_extension (extension);
|
||||
|
||||
-- Remove SearchIndexing for api Service, collection and endpoint
|
||||
DELETE er FROM entity_relationship er JOIN installed_apps ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
|
||||
DELETE er FROM entity_relationship er JOIN apps_marketplace ia ON er.fromId = ia.id OR er.toId = ia.id WHERE ia.name = 'SearchIndexingApplication';
|
||||
DELETE from installed_apps where name = 'SearchIndexingApplication';
|
||||
DELETE from apps_marketplace where name = 'SearchIndexingApplication';
|
||||
@ -89,7 +89,10 @@ public class SearchIndexApp extends AbstractNativeApplication {
|
||||
"domain",
|
||||
"storedProcedure",
|
||||
"storageService",
|
||||
"testCaseResolutionStatus");
|
||||
"testCaseResolutionStatus",
|
||||
"apiService",
|
||||
"apiEndpoint",
|
||||
"apiCollection");
|
||||
public static final Set<String> TIME_SERIES_ENTITIES =
|
||||
Set.of(
|
||||
ReportData.ReportDataType.ENTITY_REPORT_DATA.value(),
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
"apiEndpoint",
|
||||
"apiCollection"
|
||||
],
|
||||
"recreateIndex": true,
|
||||
"recreateIndex": false,
|
||||
"batchSize": "100",
|
||||
"searchIndexMappingLanguage": "EN"
|
||||
},
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
"apiEndpoint",
|
||||
"apiCollection"
|
||||
],
|
||||
"recreateIndex": true,
|
||||
"recreateIndex": false,
|
||||
"batchSize": "100",
|
||||
"searchIndexMappingLanguage": "EN"
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
"recreateIndex": {
|
||||
"title": "Recreate Indexes",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
"default": false
|
||||
},
|
||||
"searchIndexMappingLanguage": {
|
||||
"description": "Recreate Indexes with updated Language",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user