[Koha-bugs] [Bug 5369] se queries with paranthesis fail

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 18 15:13:58 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5369

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.rooy at rijksmuseum.nl

--- Comment #4 from M. de Rooy <m.de.rooy at rijksmuseum.nl> 2011-08-18 13:13:58 UTC ---
Looking at this problem, I suspect that the problem is not in the parentheses
but in the use of an index (like se) together with a number of search operands
between spaces.
Search.pm interprets this as a ccl query. But ZOOM does not like this query
since it expects operators between the operands. In other words, it does not
like query [Field1=Value1 Value2]; it does like: [Field1=Value1 or Value2] or
even better: [Field1=Value1 or Field2=Value2]. (Brackets for visibility only!) 

In case you would really want to do a phrase search, you need to tell Koha
something like [se,phr: "Value1 Value2"]
Note that such a phrase search with parentheses could even work:
se,phr: "(Low countries)" worked for me;
se,phr: "Low (countries)" worked as well.
But I wonder if a regular user would ever come up with such searches..

This problem should be solved by refactoring Search.pm; especially routine
buildQuery is here the problem.
The Advanced Search could offer some more assistance in making the difference
between word and phrase search.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list