• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Node.js, Express 게시판 Search Index에서 오류가 발생합니다.

Search Index에서 오류가 발생합니다.

3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 글쓴이
  • #128781

    김형진
    참가자
    문의
    코드
    
    이렇게 되어있고, 테스트 쿼리도 정상적으로 검색이 되는데.. (그냥 index로 했을 때 잘 됐습니다.)
    
    
    
    MongoServerError: "text.query" is required
        at Connection.onMessage (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\connection.js:202:26)
        at MessageStream.<anonymous> (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\connection.js:61:60)
        at MessageStream.emit (node:events:519:28)
        at processIncomingData (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\message_stream.js:124:16)
        at MessageStream._write (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\message_stream.js:33:9)
        at writeOrBuffer (node:internal/streams/writable:564:12)
        at _write (node:internal/streams/writable:493:10)
        at Writable.write (node:internal/streams/writable:502:10)
        at TLSSocket.ondata (node:internal/streams/readable:1007:22)
        at TLSSocket.emit (node:events:519:28) {
      ok: 0,
      code: 8,
      codeName: 'UnknownError',
      '$clusterTime': {
        clusterTime: Timestamp { low: 2, high: 1721999546, unsigned: true },
        signature: {
          hash: Binary {
            sub_type: 0,
            buffer: Buffer(20) [Uint8Array] [
              175, 188, 182, 215, 232,   4,
              102,   4,  93, 179, 166, 145,
              121, 249, 248, 112, 121, 145,
              159, 253
            ],
            position: 20
          },
          keyId: Long { low: 7, high: 1713457117, unsigned: false }
        }
      },
      operationTime: Timestamp { low: 2, high: 1721999546, unsigned: true },
      [Symbol(errorLabels)]: Set(0) {}
    }
    Node.js v20.13.1
    [nodemon] app crashed - waiting for file changes before starting...
    
    
    자꾸 이렇게 에러가 뜨는데 text.query가 대체 뭔지 모르겠슴다...
     
    #128786

    codingapple
    키 마스터
    searchItem변수에 값 잘 들어있나 출력부터 해봅시다
    #128840

    김형진
    참가자
    감사합니다~!
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠