From 1c901f4d7460c2b38e3aebe4e9cdf81090e776f5 Mon Sep 17 00:00:00 2001 From: GiJungPark Date: Mon, 8 Dec 2025 01:02:01 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20Full=20Text=20Search=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dmforu/storage/db/mysql/notice/NoticeJpaRepository.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/notice/NoticeJpaRepository.kt b/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/notice/NoticeJpaRepository.kt index 52b11ff..863620b 100644 --- a/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/notice/NoticeJpaRepository.kt +++ b/dmforu-infrastructure/storage/mysql/src/main/kotlin/com/dmforu/storage/db/mysql/notice/NoticeJpaRepository.kt @@ -37,9 +37,9 @@ internal interface NoticeJpaRepository : JpaRepository { value = """ SELECT * FROM notice - WHERE MATCH(title) AGAINST (?1 IN NATURAL LANGUAGE MODE) - ORDER BY date DESC, id DESC - """, + WHERE REPLACE(title, ' ', '') LIKE CONCAT('%', REPLACE(?1, ' ', ''), '%') + AND type IN (?2, '대학') + """, nativeQuery = true ) fun findBySearchWordAndDepartment(searchWord: String, department: String, pageable: Pageable): Page