- Non Indexable fields should be remvoed at the end (#16499)

This commit is contained in:
Mohit Yadav 2024-06-03 11:04:32 +05:30 committed by GitHub
parent 30dd7e736c
commit f0b0f7a942
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,13 +36,13 @@ public interface SearchIndex {
Set.of("changeDescription", "lineage.pipeline.changeDescription");
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
removeNonIndexableFields(esDoc);
// Build Index Doc
return this.buildSearchIndexDocInternal(esDoc);
return esDoc;
}
default void removeNonIndexableFields(Map<String, Object> esDoc) {