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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/