Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3046

The issue that searches cannot be done only with letter 'a'

    • Type: Icon: Investigation Investigation
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.12
    • Component/s: All Tools
    • None

      Problem Statement/Rationale

      The issue that searches cannot be done only with letter 'a'

      Steps to Reproduce

      ```

      db.stores.insertMany(
        [
          { _id: 1, description: "a" },
          { _id: 2, description: "b" },
          { _id: 3, description: "c" },
        ]
      )

      db.stores.createIndex( { description: "text" } )

      db.stores.find( { $text:

      { $search: "a" }

      } )

      ```

      Expected Results

      description 'a' should be in the result.

      Actual Results

      'b' and 'c' are searched, but not only 'a'.

       

            Assignee:
            tim.fogarty@mongodb.com Tim Fogarty
            Reporter:
            goinhacker@gmail.com Joe Cho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: