mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-01 13:13:10 +00:00
- Non Indexable fields should be remvoed at the end (#16499)
This commit is contained in:
parent
30dd7e736c
commit
f0b0f7a942
@ -36,13 +36,13 @@ public interface SearchIndex {
|
|||||||
Set.of("changeDescription", "lineage.pipeline.changeDescription");
|
Set.of("changeDescription", "lineage.pipeline.changeDescription");
|
||||||
|
|
||||||
default Map<String, Object> buildSearchIndexDoc() {
|
default Map<String, Object> buildSearchIndexDoc() {
|
||||||
Map<String, Object> esDoc = JsonUtils.getMap(getEntity());
|
// Build Index Doc
|
||||||
|
Map<String, Object> esDoc = this.buildSearchIndexDocInternal(JsonUtils.getMap(getEntity()));
|
||||||
|
|
||||||
// Non Indexable Fields
|
// Non Indexable Fields
|
||||||
removeNonIndexableFields(esDoc);
|
removeNonIndexableFields(esDoc);
|
||||||
|
|
||||||
// Build Index Doc
|
return esDoc;
|
||||||
return this.buildSearchIndexDocInternal(esDoc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
default void removeNonIndexableFields(Map<String, Object> esDoc) {
|
default void removeNonIndexableFields(Map<String, Object> esDoc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user