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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Text Search
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
      

            Assignee:
            rassi J Rassi (Inactive)
            Reporter:
            rassi J Rassi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: