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

[Dev-Log] 진가람 2021-12-15 #451

Open
heartane opened this issue Dec 15, 2021 · 0 comments
Open

[Dev-Log] 진가람 2021-12-15 #451

heartane opened this issue Dec 15, 2021 · 0 comments
Assignees
Labels
dev-log dev 로그 작성시 사용하는 라벨

Comments

@heartane
Copy link
Collaborator

오늘은 어떻게 프로젝트에 기여했나요?

오늘의 프로젝트에서 힘든 점은 무엇인가요?

  • 검색 키워드를 쿼리로 받아 몽고디비에서 찾을 때 $regex를 사용했고
    여러 필드에서 찾을 수 있도록 구현했다. $regex외에 $text, $search를 이용한 쿼리도 있는데 추후 더 찾아보고 공부할 것이다.
    또한 몽고디비 검색을 찾아보다 Elasticsearch를 알게됐는데 이 또한 프로젝트 이후 업데이트하며 찾아볼 것이다!
// 작품 타이틀과 작가명에서 키워드 찾기
const keyword = req.query.keyword
    ? {
        $or: [
          {
            title: {
              $regex: req.query.keyword,
              $options: 'i',
            },
          },
          {
            artist: {
              $regex: req.query.keyword,
              $options: 'i',
            },
          },
        ],
      }
    : {};

내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?

  • 이미지 리사이징 공부하기
  • 배포한 것으로 테스트하며 오류 잡기
  • 데이터 더 추가하기

찾아본 링크

@heartane heartane added the dev-log dev 로그 작성시 사용하는 라벨 label Dec 15, 2021
@heartane heartane self-assigned this Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-log dev 로그 작성시 사용하는 라벨
Projects
None yet
Development

No branches or pull requests

1 participant