Skip to content

Commit 51f89ae

Browse files
committed
Bug #13512
DefaultKmeliaService asks for indexation of a new publication after this one was put into a given topic only if it is indexable.
1 parent 7a13551 commit 51f89ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kmelia/kmelia-library/src/main/java/org/silverpeas/components/kmelia/service/DefaultKmeliaService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,9 @@ public void addPublicationToTopicWithoutNotifications(PublicationPK pubPK, NodeP
15171517
publicationService.addFather(pubPK, fatherPK);
15181518
}
15191519
// index publication to index path
1520-
publicationService.createIndex(pubPK);
1520+
if (pubDetail.isIndexable()) {
1521+
publicationService.createIndex(pubPK);
1522+
}
15211523
} catch (Exception e) {
15221524
throw new KmeliaRuntimeException(e);
15231525
}

0 commit comments

Comments
 (0)