Bug 21581 ensured that we can pass authority indexes through to the authorities search for matching, however, when searching in Zebra we deault to using: @attr 6=3 This seems to be equivalent to searching 'phrase' index for a field: See section 2.4.5 https://software.indexdata.com/zebra/doc/querymodel-rpn.html It seems Local-Number does not support phrase searching currently To recreate: 1 - Define a matching rule for authorities on field 001 index Local-Number 2 - In koha-conf.xml raise the zebra_loglevels <zebra_loglevels>none,fatal,warn,request,info</zebra_loglevels> 3 - Export some authorities using the tools->export data 4 - Import those authorities 5 - Note no matches found 6 - View the zebra output log, you should see lots of error 114
Created attachment 90336 [details] [review] Bug 23053: Add phrase index to authority Local-Number To test: 1 - Define a matching rule for authorities on field 001 index Local-Number 2 - In koha-conf.xml raise the zebra_loglevels <zebra_loglevels>none,fatal,warn,request,info</zebra_loglevels> 3 - Export some authorities using the tools->export data 4 - Import those authorities 5 - Note no matches found 6 - View the zebra output log, you should see lots of error 114 7 - Apply patch 8 - Copy the indexdefs files to the installed versions 9 - Reapply matchign rules to staged files 10 - Matches should now be found 11 - Logs should not have errors
Created attachment 90412 [details] [review] Bug 23053: Add phrase index to authority Local-Number To test: 1 - Define a matching rule for authorities on field 001 index Local-Number 2 - In koha-conf.xml raise the zebra_loglevels <zebra_loglevels>none,fatal,warn,request,info</zebra_loglevels> 3 - Export some authorities using the tools->export data 4 - Import those authorities 5 - Note no matches found 6 - View the zebra output log, you should see lots of error 114 7 - Apply patch 8 - Copy the indexdefs files to the installed versions 9 - Reapply matchign rules to staged files 10 - Matches should now be found 11 - Logs should not have errors Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Created attachment 90446 [details] [review] Bug 23053: Add phrase index to authority Local-Number To test: 1 - Define a matching rule for authorities on field 001 index Local-Number 2 - In koha-conf.xml raise the zebra_loglevels <zebra_loglevels>none,fatal,warn,request,info</zebra_loglevels> 3 - Export some authorities using the tools->export data 4 - Import those authorities 5 - Note no matches found 6 - View the zebra output log, you should see lots of error 114 7 - Apply patch 8 - Copy the indexdefs files to the installed versions 9 - Reapply matchign rules to staged files 10 - Matches should now be found 11 - Logs should not have errors Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Nice work! Pushed to master for 19.11.00
Should'nt it also be added to UNIMARC ?
Created attachment 90530 [details] [review] Bug 23053: [follow-up] Same changes for UNIMARC
Followup pushed
Pushed to 19.05.x for 19.05.01
backported to 18.11.x for 18.11.07