[Koha-bugs] [Bug 9239] Koha should share Evergreen's QueryParser module for parsing queries

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 18 09:34:59 CET 2012


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

Chris Cormack <chris at bigballofwax.co.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14174|0                           |1
        is obsolete|                            |

--- Comment #13 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 14182
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14182&action=edit
Bug 9239: Add syspref to enable QueryParser

In light of the experimental nature of the QueryParser code at this
juncture, it behooves Koha to have the option of disabling QP, at least
for the purpose of comparing results between QP-enabled and QP-disabled
searches. This patch adds a UseQueryParser syspref to do just that. In
cases where the user enables QP without having QP installed, however,
there will be no dramatic failure, and Koha will simply fall back to
using the non-QP search code.

In order to reduce the overhead added by the introduction of QueryParser,
this patch adds a C4::Context->queryparser accessor to a static
QueryParser object which is initialized the first time it is required
and then reset thereafter.

Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list