Skip to content

[FEAT]: 게시글 검색 전문 검색 적용#138

Merged
shihan00321 merged 7 commits into
mainfrom
feat/posts-fulltext
Oct 14, 2025
Merged

[FEAT]: 게시글 검색 전문 검색 적용#138
shihan00321 merged 7 commits into
mainfrom
feat/posts-fulltext

Conversation

@shihan00321
Copy link
Copy Markdown
Collaborator

@shihan00321 shihan00321 commented Oct 14, 2025

제목(필수): [TYPE]: 제목 예) [FEAT]: 회원가입 기능 추가

제목 규칙 자세히 보기
  • 형식: [TYPE]: 제목
  • 제한: 50자 이내, 첫 글자 대문자, 명령문
  • TYPE: FEAT FIX REFACTOR COMMENT STYLE TEST CHORE INIT

무엇을 / 왜

  • 무엇(What):
  • 기존의 %LIKE% 기반으로 검색되던 기능을 전문 검색으로 변경하였습니다.
  • 로컬 개발 환경에서는 h2 DB를 사용하므로 기존 로직은 로컬환경에서 전문 검색은 prod 환경에서 동작하도록 하였습니다.
  • 왜(Why):
  • 기존 로직은 모든 행을 조회하므로 성능 저하가 있음

어떻게(요약) — 3줄 이내

  • tsvector 컬럼 추가 및 GIN 인덱스 생성 (GIN 인덱스 - 역색인 구조로 값이 포함된 모든 행들을 저장)
  • Full-text Search 쿼리(@@ plainto_tsquery)를 이용한 검색. 제목, 내용이 들어오면 search_vector 필드가 업데이트 되도록 트리거 설정
  • 정렬 및 필터링 성능 향상을 위해 created_date, category 인덱스 추가

영향 범위

  • API 변경
  • DB 마이그레이션
  • Breaking Change
  • 보안/권한 영향
  • 문서/가이드 업데이트 필요

체크리스트

  • 타입 라벨 부착 (FEAT/FIX/REFACTOR/COMMENT/STYLE/TEST/CHORE/INIT)
  • 로컬/CI 테스트 통과
  • 영향도 점검 완료
  • 주석/문서 반영(필요 시)

ToDo (선택)

  • 할 일 1
  • 할 일 2

스크린샷/증빙(선택)

이슈 연결 (자동)

Closes #139

@shihan00321 shihan00321 self-assigned this Oct 14, 2025
@shihan00321 shihan00321 added the FEAT 새로운 기능 추가 label Oct 14, 2025
Copy link
Copy Markdown
Collaborator

@lcs9317 lcs9317 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다! 제꺼 풀만 받아주시고 바로 푸쉬해주세요!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파일명 변경 부탁드립니다!
V7 파일은 이미 머지 되어서 v8 과 같은 네이밍으로 변경 고려해주시면 좋을 것 같아요!

Copy link
Copy Markdown
Collaborator

@Gooraeng Gooraeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다. 고생하셨습니다!!

Copy link
Copy Markdown
Collaborator

@johnbosco0414 johnbosco0414 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@shihan00321 shihan00321 merged commit 97f9d5f into main Oct 14, 2025
3 checks passed
@shihan00321 shihan00321 deleted the feat/posts-fulltext branch October 16, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: 게시글 검색 전문 검색 적용

4 participants