[Koha-bugs] [Bug 15745] New: C4::Matcher gets CCL parsing error if term contains ? (question mark)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 5 06:02:35 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15745
Bug ID: 15745
Summary: C4::Matcher gets CCL parsing error if term contains ?
(question mark)
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: MARC Bibliographic record staging/import
Assignee: gmcharlt at gmail.com
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
I was using C4::Matcher via the record matching rules during an import, and I
kept getting the following error: "CCL parsing error (10014) Embedded
truncation not supported ZOOM".
Query:
id-other,st-urx=http://www.skovdenyheter.se?p=38004
I wondered why it was trying to do "embedded truncation" when it shouldn't have
been doing any truncation by default... so I thought about wrapping the whole
term in double quotation marks.
Sure enough, the following worked and didn't produce an error:
id-other,st-urx="http://www.skovdenyheter.se?p=38004"
You can notice this same problem elsewhere when using CCL. Most noticeably
directly with yaz-client:
Z> find ti=test?
CCL ERROR: Right truncation not supported
Z> find ti="test?"
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 4, setno 2
SearchResult-1: term=test cnt=4
records returned: 0
Elapsed: 0.000816
Also consider the following:
Z> find kw,rt=tes*
CCL ERROR: Right truncation not supported
Z> find kw="tes*"
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 0, setno 23
SearchResult-1: term=tes cnt=0
records returned: 0
Elapsed: 0.000679
Z> find kw,rt="tes*"
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 6, setno 24
SearchResult-1: term=tes cnt=6
records returned: 0
Elapsed: 0.001049
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list