$text search with $language set to "none" miss some result

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.6.7
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A collection "test" with the following documents

      {name:"green apple"} {name:"red apple"} {name:"banana"}

      In the shell, running
      db.getCollection('test').find({$text:{$search:"apple"}})
      or
      db.getCollection('test').find({$text:{$search:"banana"}})
      will return results as expected

      db.getCollection('test').find({$text:{$search:"banana",$language:"none"}})
      will also return 1 result as expected

      But
      db.getCollection('test').find({$text:{$search:"apple",$language:"none"}})
      will return NO result

            Assignee:
            Stennie Steneker (Inactive)
            Reporter:
            aunz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: