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

Martin Renvoize <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121000|0                           |1
        is obsolete|                            |

--- Comment #4 from Martin Renvoize <[email protected]> ---
Created attachment 121035
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121035&action=edit
Bug 28326: Escape special characters in title when searching for analytics

Bug 26313 introduced a search for analytics, which is great, but it started
sending titles to ES. This, unfrotunately, caused problems where the title
contained reserved ES characters.

As these searches should always be literl title searches, we should escape all
the ES
characters before the search.

We should not make this a standard, however, as then it prevents using the
characters for advanced ES
searching

To test:
1 - Have ES setup and running and swtich SearchEngine syspref to
'Elasticsearch'
2 - Edit a record and add some reserved ES characters to the title
   
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
    e.g. De [Crasi] Aristophea.
3 - You get an error on the detail page loading
4 - Apply patch
5 - Reload
6 - The page successfully loads

Signed-off-by: David Nind <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to