Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10382

Clarify if MongoDB text search is correct in manual or not

    XMLWordPrintableJSON

Details

    Description

      According to the manual (https://docs.mongodb.com/manual/text-search/),
      Below text search will find all documents containing “java” or “coffee shop”,
      But in the result all documents containing only "java" are excluded. This text search return documents containing only "coffee shop".

      db.stores.find( { $text: { $search: "java \"coffee shop\"" } } )
      

      I am not sure whether manual is correct or not. Anyway manual and MongoDB result are not matched.

      Attachments

        Activity

          People

            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            sunguck.lee@gmail.com 아나 하리
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 3 weeks, 2 days ago