Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] query syntax question

From: David Brown <dave(at)>
Date: Fri Feb 05 2010 - 22:34:56 GMT

I think it could be your expectations, presuming that not has high
precedence and we can look at it as Boolean / set logic.

~foo ^ ~bar  ==> intersection of all items that are not foo with all items
that are not bar
~ (foo ^ bar) ==> complement (not) of all items that are both (intersection
of) foo and bar

Truth table:
foo | bar | ~foo^~bar | ~(foo ^ bar)
T   | T   | F         | F
T   | F   | F         | T
F   | T   | F         | T
F   | F   | T         | T

Would that thinking actually carry through to swish-e? I did review before posting, but it tries to be
helpful rather than theoretical :)

Dave Brown

-----Original Message-----
[] On Behalf Of Peter Karman
Sent: Friday, February 05, 2010 3:26 PM
To: Swish-e Users Discussion List
Subject: [swish-e] query syntax question


Would you expect these 2 queries to swish-e to act the same?

swishdefault=(not foo not bar)
not swishdefault=(foo bar)

They don't. I am looking for a sanity check as to whether (a) my
expectations are out of whack and/or (b) there is a bug in the query parser.


Peter Karman  .  .  peter(at)
Users mailing list

Users mailing list
Received on Fri Feb 5 17:35:07 2010