[Koha-bugs] [Bug 15541] Create additional normalizers for Record Matching Rules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 12 06:59:24 CET 2016


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

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Of course, what I've said isn't 100% true. 

There's one more obstacle between C4::Matcher::get_matches and Zebra's
normalized indexes.

And that's C4::Search::SimpleSearch(), which uses the s/:/=/g regex before
sending the query. 

While that's trivial for Zebra's CHR and ICU indexing for words and phrases,
since they just strip out punctuation anyway, it's a problem for Zebra's URL
Charmap, which doesn't normalize URLs. 

So you'll get a failed match in that case.

So I think a pure match would have to be done without any normalization before
the query gets to Zebra. That should be easy enough to implement in C4::Matcher
when it uses C4::Search::SimpleSearch(). Because it's a simple search, it
shouldn't be normalizing the query anyway. I'll just add a flag so that you can
do an unnormalized search.

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


More information about the Koha-bugs mailing list