[Koha-bugs] [Bug 29418] Zebra clean_search_term does not clean search and so results in error
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 12 01:57:15 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29418
--- Comment #18 from David Cook <dcook at prosentient.com.au> ---
Ah, but as I look again at Koha/Biblio.pm, we have to factor in Elasticsearch.
I don't know if Elasticsearch can handle double quotes around $cleaned_title.
I suppose clean_search_term() could escape double quotes within 245$a using a
backslash[1], plus it could return the clean_search_term wrapped in double
quotes, so that Zebra processes it correctly.
I'll leave that distinction up to someone more familiar with the Koha-ES
integration...
[1]
Z> find (Any="shuffle "")
CCL ERROR: ')' expected
Z> find (Any="shuffle \"")
Sent searchRequest.
Received SearchResponse.
Search was a success.
Number of hits: 3, setno 28
SearchResult-1: term=shuffle cnt=3
records returned: 0
Elapsed: 0.000369
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list