From a80699e0ecf3686fc2f81901e6add4dc026b586f Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 24 Jul 2013 12:39:59 +0200 Subject: [PATCH] Bug 10544 - add Number-local-acquisition in QueryParser config Content-Type: text/plain; charset=utf-8 This patch adds the Number-local-acquisition into QueryParser configuration file. Like in ccl.properties, "Number-local-acquisition" is the main index name and "stocknumber" and "inv" are aliases. Test plan : Enable QueryParser : - Enable UseQueryParser syspref - Edit your koha-conf.xml - Add to "config" node : [your path]/etc/searchengine/queryparser.yaml, adapt [your patch] to your install configuration folder - If needed copy from sources "etc/searchengine/queryparser.yaml" into your install configuration folder Test search : - Add Number-local-acquisition on an existing subfield in records.abs. For example on item barcode field - Reindex Zebra database - Choose a value of this field that will match some results. For example : "0*" will match all barcodes beginning with zero - In intranet, enter this URL : /cgi-bin/koha/catalogue/search.pl?idx=stocknumber&q=0*&sort_by=relevance => You get some results - In intranet, enter this URL : /cgi-bin/koha/catalogue/search.pl?idx=inv&q=0*&sort_by=relevance => You get the same results - In intranet, enter this URL : /cgi-bin/koha/catalogue/search.pl?idx=Number-local-acquisition&q=0*&sort_by=relevance => You get the same results Signed-off-by: Marcel de Rooy --- etc/searchengine/queryparser.yaml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml index 0cce85c..db44805 100644 --- a/etc/searchengine/queryparser.yaml +++ b/etc/searchengine/queryparser.yaml @@ -947,13 +947,14 @@ field_mappings: aliases: - stock-number label: Stock-number - stocknumber: + number-local-acq: bib1_mapping: biblioserver: 1: 1062 enabled: 1 - index: stocknumber + index: Number-local-acquisition aliases: + - Number-local-acquisition - stocknumber - inv label: Stocknumber -- 1.7.7.6