Howdy, all --

If I run the following query against a large, full-text-indexed store (output from "svn log --xml" on a repository with several hundred thousand entries), I get results back in well under a second:

count(/log/logentry[./paths/path/text() contains text "trunk"])

However, the following variant takes multiple minutes to execute -- actually, has never yet completed before I've lost patience and cancelled it:

count(/log/logentry[
  ./paths/path/text() contains text "trunk"
  and not(
    (./paths/path/text() contains text "tags") or
    (./paths/path/text() contains text "branches")
  )
])

Is there a way to get reasonable(ish) performance for the more complex query?