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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.6.7
    • None
    • None
    • ALL

    Description

      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

      Attachments

        Activity

          People

            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            aunz aunz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: