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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.5
    • Affects Version/s: 2.5.4
    • Component/s: Text Search
    • None
    • ALL
    • None
    • 3
    • 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:
            J Rassi (Inactive)
            Reporter:
            J Rassi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: