Hi, On Thu, Jun 19, 2008 at 1:17 PM, MJ Ray <[EMAIL PROTECTED]> wrote: > "Galen Charlton" <[EMAIL PROTECTED]> wrote: >> I would expect that a search of "mice not men" would turn up all >> records that have "mice" but not the term "men", so that would yield a >> resultset containing record 1. > > Where's this query language defined? It didn't seem explicit in > t/lib/KohaTest/Search/NoZebra.pm and I'd expect "mice not men" to be > an invalid binary use of a unary operator, at first glance.
At least as used by the OPAC and staff advanced search pages (click on more options to see the operators), "not' isn't a unary operator, it's actually "and not". As far as I can tell, NZoperatorNOT was always meant to do this - it doesn't support a true unary not, which given how the nozebra table currently works could be an unduly expensive operation. There is no formal definition of the search query language that I'm aware of. Regards, Galen -- Galen Charlton Koha Application Developer LibLime [EMAIL PROTECTED] p: 1-888-564-2457 x709 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
