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

Text search matcher can incorrectly match documents w/ non-lowercased negated term

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • 2.5.4
    • Text Search
    • None
    • ALL

    Description

      If a text query contains a negated term with a non-trivial stemming, the text search matcher will incorrectly match documents that contain the term if it is not completely lowercased.

      Reproduce with:

      > db.foo.remove()
      Remove WriteResult({ "ok" : 1, "n" : 1 })
      > db.foo.insert({a:"PIZZA RESTAURANT"})
      Insert WriteResult({ "ok" : 1, "n" : 1 })
      > db.foo.runCommand("text",{search:"pizza -restaurant"}).stats.n
      1

      Attachments

        Activity

          People

            rassi J Rassi
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: