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

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Works as Designed
    • Priority: 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
            Reporter:
            Joe Cho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: