thomasmueller commented on a change in pull request #518: URL: https://github.com/apache/jackrabbit-oak/pull/518#discussion_r828003867
########## File path: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneDocumentMaker.java ########## @@ -283,8 +283,10 @@ protected boolean indexTypeOrderedFields(Document doc, String pname, int tag, Pr } if (f != null && includePropertyValue(property, 0, pd)) { - doc.add(f); - fieldAdded = true; + if (doc.getField(f.name()) == null) { + doc.add(f); + fieldAdded = true; + } Review comment: Hm, we could, but then we need to limit the logging to e.g. one message per minute or so (otherwise there might be millions of log messages) -- 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: dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org