[Koha-bugs] [Bug 15745] 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
Mon Feb 15 00:14:11 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15745

--- Comment #6 from David Cook <dcook at prosentient.com.au> ---
As expected, the double quote is removed during normalization during indexing
and retrieval for the phrase index:

245 00 $a This is a "test" / $c by David Cook

Z> find ti,phr="This is a "test""
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 4, setno 4
SearchResult-1: term=This cnt=4, term=is cnt=4, term=a cnt=8, term=test cnt=4
records returned: 0
Elapsed: 0.001117

Z> show 1

245 00 $a This is a "test" / $c by David Cook

Z> find ti,phr="This is a test"
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 4, setno 5
SearchResult-1: term=This cnt=4, term=is cnt=4, term=a cnt=8, term=test cnt=4
records returned: 0
Elapsed: 0.000991
Z> show 1

245 00 $a This is a "test" / $c by David Cook

--

We can see this using "elements zebra::index" too:

<index name="Title" type="p" seq="112">this is a test by david cook</index>

We can see it with the word register too:

<index name="Title" type="w" seq="113">this</index>
<index name="Title" type="w" seq="114">is</index>
<index name="Title" type="w" seq="115">a</index>
<index name="Title" type="w" seq="116">test</index>
<index name="Title" type="w" seq="117">by</index>
<index name="Title" type="w" seq="118">david</index>
<index name="Title" type="w" seq="119">cook</index>

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


More information about the Koha-bugs mailing list