Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 용어 사전 api 구현 (#33) #34

Merged
merged 19 commits into from
Jan 25, 2025
Merged

[Feat] 용어 사전 api 구현 (#33) #34

merged 19 commits into from
Jan 25, 2025

Conversation

chanmin-00
Copy link
Member

@chanmin-00 chanmin-00 commented Jan 24, 2025

#️⃣연관된 이슈

Close #33

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

용어 사전 엑셀 데이터 저장 기능 구현

  • 용어 사전 엑셀 데이터 읽어서 Term 데이터 성상 후 Batch Save 기능 구현
image

용어 사전 키워드 검색 기능 구현

  • 용어 사전 검색인자를 입력받아 Querydsl로 검색
image

용어 사전 자음 검색 기능 구현

  • 용어 데이터 저장 시 초성 추출
  • 자음을 입력 받아서 초성의 첫번째 문자와 비교하여 일치하는 데이터 반환
image image

용어 상세 조회 기능 구현

용어 스크랩 및 취소 기능 추가

용어 목록 조회 성능 향상을 위한 인덱싱 및 페이징 기능 추가

image

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@chanmin-00 chanmin-00 added the ✨ Feat 새로운 기능 추가 label Jan 24, 2025
@chanmin-00 chanmin-00 added this to the #2 - 용어사전 milestone Jan 24, 2025
@chanmin-00 chanmin-00 self-assigned this Jan 24, 2025
Comment on lines +76 to +88
public static String getInitialSound(String text) {
StringBuilder result = new StringBuilder();
for (char ch : text.toCharArray()) {
if (isHangul(ch)) {
int unicode = ch - HANGUL_START;
int choSungIndex = unicode / (21 * 28);
result.append(CHO_SUNG[choSungIndex]);
} else {
result.append(ch); // 한글이 아닌 경우 그대로 입력
}
}
return result.toString();
}
Copy link
Member

Choose a reason for hiding this comment

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

초성 검색시에 'ㄱ', 'ㄴ' 이런식으로 첫번째 초성만 들어오는 것 같은데 initial에는 전체초성을 저장하는 이유가 궁금해욥!!

Copy link
Member Author

Choose a reason for hiding this comment

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

추후에 혹시 초성 검색 기능까지 포함될 수 있을거 같아서 추가했어요

Copy link
Member

Choose a reason for hiding this comment

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

오 좋네요!! 👍

@chanmin-00 chanmin-00 merged commit 6761b52 into develop Jan 25, 2025
@chanmin-00 chanmin-00 changed the title [Feat] 용어 사전 api 구현 [Feat] 용어 사전 api 구현 (#33) Jan 25, 2025
@chanmin-00 chanmin-00 deleted the feat/term-#33 branch January 28, 2025 04:45
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] 용어 사전 기능을 구현한다.
2 participants