Peter,
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
http://swish-e.org/docs/swish-search.html before posting, but it tries to be
helpful rather than theoretical :)
Dave
--
Dave Brown
dave@davidhbrown.us
-----Original Message-----
From: users-bounces@lists.swish-e.org
[mailto:users-bounces@lists.swish-e.org] 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
Hi.
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.
thanks.
--
Peter Karman . http://peknet.com/ . peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Fri Feb 5 17:35:07 2010