Hỏi & Đáp
배열에 담김 값도 search를 하고싶은데 어떻게 해야하나요?
//검색 기능에서 검색 우선순위 설정 productSchema. index ({ title: 'text' , description: 'text' , keywords: 'text' },{ weights:{ title: 5 , description: 3 , keywords: 1 } }) const Product = mongoose. model ( 'Product' , productSchema); module . exports = { Product } 추가해도 안되길래 ARRAY에 감싸져있어서 안되는건가 싶어서 질문드렸는데 ARRAY에 있는 값을 검색할때도 똑같이 keywords : 'text' 하면 된다는 말씀이신가요?
- Lượt thích
- 0
- Số bình luận
- 3
- Lượt xem
- 314

