From 0569dccd5f7385ca13071d07924317dac822a498 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 25 May 2007 09:34:30 +0000 Subject: [PATCH] some changes to default zebra config for better searches --- misc/migration_tools/rebuild_zebra.pl | 10 +++++----- misc/zebra/default.idx | 1 + misc/zebra/record_biblios_unimarc.abs | 18 +++++++++--------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 0a2d1220df..5e705a348d 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -14,7 +14,7 @@ use strict; $|=1; # flushes output # limit for database dumping -my $limit;# = "LIMIT 1000"; +my $limit;# = "LIMIT 1"; my $directory; my $skip_export; my $keep_export; @@ -204,13 +204,13 @@ if ($authorities) { $created_dir_or_file++; } - unless (-f C4::Context->zebraconfig('authorityserver')->{ccl2rpn}) { + unless (-f "$authorityserverdir/etc/ccl.properties") { # system("cp -f $kohadir/misc/zebra/ccl.properties ".C4::Context->zebraconfig('authorityserver')->{ccl2rpn}); system("cp -f $kohadir/misc/zebra/ccl.properties $authorityserverdir/etc/ccl.properties"); print "Info: copied ccl.properties\n"; $created_dir_or_file++; } - unless (-f C4::Context->zebraconfig('authorityserver')->{cql2rpn}) { + unless (-f "$authorityserverdir/etc/pqf.properties") { # system("cp -f $kohadir/misc/zebra/pqf.properties ".C4::Context->zebraconfig('authorityserver')->{ccl2rpn}); system("cp -f $kohadir/misc/zebra/pqf.properties $authorityserverdir/etc/pqf.properties"); print "Info: copied pqf.properties\n"; @@ -392,13 +392,13 @@ if ($biblios) { print "Info: copied default.idx\n"; $created_dir_or_file++; } - unless (-f C4::Context->zebraconfig('biblioserver')->{ccl2rpn}) { + unless (-f "$biblioserverdir/etc/ccl.properties") { # system("cp -f $kohadir/misc/zebra/ccl.properties ".C4::Context->zebraconfig('biblioserver')->{ccl2rpn}); system("cp -f $kohadir/misc/zebra/ccl.properties $biblioserverdir/etc/ccl.properties"); print "Info: copied ccl.properties\n"; $created_dir_or_file++; } - unless (-f C4::Context->zebraconfig('biblioserver')->{cql2rpn}) { + unless (-f "$biblioserverdir/etc/pqf.properties") { # system("cp -f $kohadir/misc/zebra/pqf.properties ".C4::Context->zebraconfig('biblioserver')->{ccl2rpn}); system("cp -f $kohadir/misc/zebra/pqf.properties $biblioserverdir/etc/pqf.properties"); print "Info: copied pqf.properties\n"; diff --git a/misc/zebra/default.idx b/misc/zebra/default.idx index c88e83684b..2d4b39faff 100644 --- a/misc/zebra/default.idx +++ b/misc/zebra/default.idx @@ -8,6 +8,7 @@ index w completeness 0 position 1 +alwaysmatches 1 charmap sort-string-utf.chr # Phrase index diff --git a/misc/zebra/record_biblios_unimarc.abs b/misc/zebra/record_biblios_unimarc.abs index 49ed3f2acf..ca13a68f0e 100644 --- a/misc/zebra/record_biblios_unimarc.abs +++ b/misc/zebra/record_biblios_unimarc.abs @@ -88,25 +88,25 @@ melm 101$a Code-Language:w ############ AUTHORS ################## # main author -melm 200$f author,author:p,author:s +melm 200$f author:w,author:p,author:s # other authors -melm 200$g author,author:p +melm 200$g author:w,author:p # physical author melm 700$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 700$a author -melm 700 author,author:p +melm 700$a author:w +melm 700 author:w,author:p melm 701$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 701 author,author:p +melm 701 author:w,author:p melm 702$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 702 author,author:p +melm 702 author:w,author:p # collective author melm 710$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 710 author,author:p +melm 710 author:w,author:p melm 711$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 711 author,author:p +melm 711 author:w,author:p melm 712$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 712 author,author:p +melm 712 author:w,author:p ############## TITLE ################## # main title -- 2.39.5