-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
- 초성 필드 추가 - 설명 필드 VARCHAR -> TEXT 변경
- 제목 키워드 검색 기능 추가 - 초성 검색 기능 추가
- Batch Insert 기능 추가
- 용어 목록 조회 - 용어 키워드 별 검색 기능 - 자음 초성 별 검색 기능
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(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
초성 검색시에 'ㄱ', 'ㄴ' 이런식으로 첫번째 초성만 들어오는 것 같은데 initial에는 전체초성을 저장하는 이유가 궁금해욥!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추후에 혹시 초성 검색 기능까지 포함될 수 있을거 같아서 추가했어요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 좋네요!! 👍
#️⃣연관된 이슈
📝작업 내용
용어 사전 엑셀 데이터 저장 기능 구현
용어 사전 키워드 검색 기능 구현
용어 사전 자음 검색 기능 구현
용어 상세 조회 기능 구현
용어 스크랩 및 취소 기능 추가
용어 목록 조회 성능 향상을 위한 인덱싱 및 페이징 기능 추가
💬리뷰 요구사항(선택)