diff --git a/core/app/datasource/src/main/java/io/openk9/datasource/service/DataIndexService.java b/core/app/datasource/src/main/java/io/openk9/datasource/service/DataIndexService.java index d0ea8649f..d9821d999 100644 --- a/core/app/datasource/src/main/java/io/openk9/datasource/service/DataIndexService.java +++ b/core/app/datasource/src/main/java/io/openk9/datasource/service/DataIndexService.java @@ -100,7 +100,7 @@ public String[] getSearchFields() { public Uni findByIdWithVectorIndex(Mutiny.Session session, long dataIndexId) { return session.createQuery( - "from DataIndex di join fetch di.vectorIndex where di.id = :dataIndexId", + "from DataIndex di left join fetch di.vectorIndex where di.id = :dataIndexId", DataIndex.class ) .setParameter("dataIndexId", dataIndexId)