From 32975c7c31076018d67b224909959337494efe7e Mon Sep 17 00:00:00 2001 From: Anna-Jin Date: Mon, 1 Aug 2022 04:32:21 +0900 Subject: [PATCH] =?UTF-8?q?#39=20[Update]=20stackoverflow=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bulder.and(builder.and())가 되고 있었다. --- src/main/java/com/mpnp/baechelin/common/QueryDslSearch.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/common/QueryDslSearch.java b/src/main/java/com/mpnp/baechelin/common/QueryDslSearch.java index 18fb7f1..0bd8227 100644 --- a/src/main/java/com/mpnp/baechelin/common/QueryDslSearch.java +++ b/src/main/java/com/mpnp/baechelin/common/QueryDslSearch.java @@ -63,9 +63,7 @@ public static BooleanBuilder getSearchBooleanBuilder(String sido, String sigungu // 검색어 fulltext search builder.and(matchKeyword(keyword)); - // 카테고리, 시설 - builder.and(getBooleanBuilder(category, facility, builder)); - - return builder; + // 카테고리, 시설까지 builder에 넣은 후 리턴 + return getBooleanBuilder(category, facility, builder); } }