From 046a896c418718aac114e0c53a9fb2ca602d8112 Mon Sep 17 00:00:00 2001 From: chaejm55 Date: Wed, 16 Oct 2024 15:33:17 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20QueryDSL=EC=97=90=EC=84=9C=EB=8F=84=20su?= =?UTF-8?q?bTitle=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official_homepage/repository/PostQueryFactoryImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/gdsc_knu/official_homepage/repository/PostQueryFactoryImpl.java b/src/main/java/com/gdsc_knu/official_homepage/repository/PostQueryFactoryImpl.java index 64bdf99d..75c56ea6 100644 --- a/src/main/java/com/gdsc_knu/official_homepage/repository/PostQueryFactoryImpl.java +++ b/src/main/java/com/gdsc_knu/official_homepage/repository/PostQueryFactoryImpl.java @@ -55,7 +55,6 @@ public Page searchByKeyword(Pageable pageable, String keyword) { .selectFrom(QPost.post) .where(QPost.post.status.eq(PostStatus.SAVED) .and(QPost.post.title.contains(keyword) - .or(QPost.post.subTitle.contains(keyword)) .or(QPost.post.content.contains(keyword)))) .offset(pageable.getOffset()) .limit(pageable.getPageSize()) @@ -66,7 +65,6 @@ public Page searchByKeyword(Pageable pageable, String keyword) { .from(QPost.post) .where(QPost.post.status.eq(PostStatus.SAVED) .and(QPost.post.title.contains(keyword) - .or(QPost.post.subTitle.contains(keyword)) .or(QPost.post.content.contains(keyword)))) .fetchFirst();