]> git.koha-community.org Git - koha.git/commit
Bug 9239: Allow the use of QueryParser for all queries
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 11 Dec 2012 17:52:40 +0000 (12:52 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 17 Mar 2013 01:32:32 +0000 (21:32 -0400)
commit144c7f4e4e023f7a701a1e58524409628295343b
tree30f58ef0d7a01fa41a673dfb45293410c12f3c1d
parentb086fcab9a32c8fc7cbca99e5d23a5323603c7b6
Bug 9239: Allow the use of QueryParser for all queries

With the inclusion of this patch, all searches will (try) to use
QueryParser for handling queries for both the bibliographic and authority
databases if UseQueryParser is enabled. If QueryParser is unavailable,
UseQueryParser is disabled, or the search uses CCL indexes, the old
search code will be used.

To test:
1) Apply patch.
2) Run the unit test with `prove t/QueryParser.t`
3) Enable the UseQueryParser syspref.
4) Try searches that should return results in the following places:
   * OPAC (simple search)
   * OPAC (advanced search)
   * OPAC (authorities)
   * Staff client (header search)
   * Staff client (advanced search)
   * Staff client (cataloging search)
   * Staff client (authorities)
   * Staff client (importing a batch using a match point)
   * Staff client (searching for an item for adding to a label)
   * Staff client (acquisitions)
   * Staff client (searching for a record to create a serial)
   * ANYWHERE ELSE I HAVE FORGOTTEN
5) Disable the UseQueryParser syspref. Repeat at least some of the
   searches you did above.
6) If all searches worked, sign off.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Elliott Davis <elliott@bywatersolions.com>
Searching still works as expected for variuos places.
QueryParser syspref seemed to be enabled by default

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/AuthoritiesMarc.pm
C4/Matcher.pm
C4/Search.pm
Koha/SuggestionEngine/Plugin/AuthorityFile.pm
cataloguing/addbooks.pl
cataloguing/value_builder/marc21_linking_section.pl
cataloguing/value_builder/unimarc_field_4XX.pl
labels/label-item-search.pl
misc/migration_tools/bulkmarcimport.pl
serials/subscription-bib-search.pl
t/db_dependent/Search.t