Skip to content

feat: 나만의 레시피 키워드 검색 - #135

Merged
joona95 merged 1 commit into
developfrom
fix/version2-bug
Aug 5, 2026
Merged

feat: 나만의 레시피 키워드 검색#135
joona95 merged 1 commit into
developfrom
fix/version2-bug

Conversation

@joona95

@joona95 joona95 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

등록한 레시피 목록 조회(GET /recipes/users)에 keyword 를 추가해, 로그인 유저가 자신의 레시피(비공개 포함)를 키워드로 검색할 수 있게 한다. 새 엔드포인트는 만들지 않는다.

  • keyword 없음 → 기존 그대로 내 레시피 전체(recipeId 역순)
  • keyword 있음 → 내 레시피 검색: recipe.userId 필터(내 비공개 포함, hiddenYn 미적용), 공개 검색과 동일한 매칭/랭킹(일치율 -> 제목 매칭 우선 -> 최신순)
  • 내부: 공개 검색 메서드는 그대로 두고 유저 범위 전용 메서드를 분리 신설 (countByKeywordAndUserId, findByKeywordAndUserIdLimitOrderByCreatedAtDesc). 정렬 옵션(scraps/views)은 두지 않아 최신순 메서드만 추가.

등록한 레시피 목록 조회(GET /recipes/users)에 keyword 를 추가해, 로그인 유저가
자신의 레시피(비공개 포함)를 키워드로 검색할 수 있게 한다. 새 엔드포인트는 만들지 않는다.

- keyword 없음 → 기존 그대로 내 레시피 전체(recipeId 역순)
- keyword 있음 → 내 레시피 검색: recipe.userId 필터(내 비공개 포함, hiddenYn 미적용),
  공개 검색과 동일한 매칭/랭킹(일치율 -> 제목 매칭 우선 -> 최신순)
- 내부: 공개 검색 메서드는 그대로 두고 유저 범위 전용 메서드를 분리 신설
  (countByKeywordAndUserId, findByKeywordAndUserIdLimitOrderByCreatedAtDesc).
  정렬 옵션(scraps/views)은 두지 않아 최신순 메서드만 추가.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joona95
joona95 merged commit a36574f into develop Aug 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant