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

Clarify if MongoDB text search is correct in manual or not

    XMLWordPrintable

    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

          Issue Links

            Activity

              People

              Assignee:
              stennie Stennie Steneker
              Reporter:
              matt.lee Matt SeongUck Lee
              Participants:
              Last commenter:
              Stennie Steneker Stennie Steneker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 45 weeks, 1 day ago
                Date of 1st Reply: