Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
update DocumentRepository.java
Browse files Browse the repository at this point in the history
edit Mongo Aggregate field $content -> $contents
  • Loading branch information
ori0o0p committed Mar 11, 2024
1 parent f47d7c3 commit de51a25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public interface DocumentRepository extends ReactiveMongoRepository<DefaultDocument, String> {
@Aggregation(pipeline = {
"{ $unwind: '$content' }",
"{ $unwind: '$contents' }",
"{ $match: { $or: [ " +
"{ 'title': { $regex: '?0', $options: 'i' } }, " +
"{ 'contents.detail': { $regex: '?0', $options: 'i' } }" +
Expand Down

0 comments on commit de51a25

Please sign in to comment.