Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20516

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.7
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • 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:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Reporter:
            aunz aunz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: