AngelaFabregues commented on code in PR #578:
URL: https://github.com/apache/jackrabbit-oak/pull/578#discussion_r901641707


##########
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticDocument.java:
##########
@@ -147,13 +155,18 @@ public String build() {
                 if (!similarityTags.isEmpty()) {
                     builder.field(ElasticIndexDefinition.SIMILARITY_TAGS, 
similarityTags);
                 }
+                for (Map.Entry<String, Set<Object>> prop : 
toStoreInSource.entrySet()) {
+                    if (!properties.containsKey(prop.getKey())) {
+                        builder.field(prop.getKey(), prop.getValue());
+                    }
+                }

Review Comment:
   Aligned, regex are excluded and a next PR is setting the fields dynamicly 
created to be only stored. if they are useInExcerpt only.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to