diff --git a/src/main/java/com/example/daemawiki/domain/document/repository/DocumentRepository.java b/src/main/java/com/example/daemawiki/domain/document/repository/DocumentRepository.java index 681458b9..7bfb816a 100644 --- a/src/main/java/com/example/daemawiki/domain/document/repository/DocumentRepository.java +++ b/src/main/java/com/example/daemawiki/domain/document/repository/DocumentRepository.java @@ -9,7 +9,7 @@ public interface DocumentRepository extends ReactiveMongoRepository { @Aggregation(pipeline = { - "{ $unwind: '$content' }", + "{ $unwind: '$contents' }", "{ $match: { $or: [ " + "{ 'title': { $regex: '?0', $options: 'i' } }, " + "{ 'contents.detail': { $regex: '?0', $options: 'i' } }" +