Skip to content

Commit

Permalink
- Non Indexable fields should be remvoed at the end (#16499)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohityadav766 authored Jun 3, 2024
1 parent 30dd7e7 commit f0b0f7a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f0b0f7a

Please sign in to comment.