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를 구현한다. #40

Merged
merged 9 commits into from
Aug 30, 2024
Merged

feat: 검색 api를 구현한다. #40

merged 9 commits into from
Aug 30, 2024

Conversation

min429
Copy link
Collaborator

@min429 min429 commented Aug 23, 2024

📄 변경 사항

  • 임시로 문자열 비교 기반으로 만들었습니다.

🤔 고민되는 부분

  • Region -> tagName -> title -> content 순으로 score 기반 검색으로 구현할까 싶습니다.
  • 문자열 비교로 할지 Elasticsearch를 적용할지 고민입니다.

@min429 min429 requested a review from rlarltj August 23, 2024 06:02
@min429 min429 self-assigned this Aug 23, 2024
Comment on lines 95 to 96
booleanBuilder.or(accompanyBoard.title.contains(keyword));
booleanBuilder.or(accompanyBoard.content.contains(keyword));
Copy link
Member

Choose a reason for hiding this comment

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

피그마를 봤는데요, title에서만 찾으면 되지 않나요? content까지 포함하면 너무 slow query가 될 것 같아용

Copy link
Collaborator Author

@min429 min429 Aug 27, 2024

Choose a reason for hiding this comment

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

아.. 맞네요

@min429 min429 closed this Aug 29, 2024
@min429 min429 reopened this Aug 29, 2024
@min429
Copy link
Collaborator Author

min429 commented Aug 29, 2024

@rlarltj 혹시 content만 없애면 될까요?? title, tag, region에서 검색하고 있는데, 그냥 title만 검색할까요?? tag는 서브쿼리 써야할 것 같고, title이랑 region은 그렇게 느려지진 않을 것 같아요

@min429 min429 requested a review from rlarltj August 29, 2024 09:24
@rlarltj
Copy link
Member

rlarltj commented Aug 30, 2024

@min429 content만 없애면 될 것 같아요~

@min429 min429 merged commit c703662 into main Aug 30, 2024
2 checks passed
@min429 min429 deleted the ISSUE-203 branch August 30, 2024 06:20
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.

2 participants