[Koha-bugs] [Bug 24567] Elasticsearch: CCL syntax does not allow for multiple indexes to be searched at once

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 27 13:30:09 CET 2020


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

Séverine Queune <severine.queune at bulac.fr> changed:

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

--- Comment #4 from Séverine Queune <severine.queune at bulac.fr> ---
Created attachment 112564
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112564&action=edit
Bug 24567: Don't strip spaces along with dangling colons

This updates the regex used for removing colons to capture those with space on
either side, and remove the colon
while preserving the space

To test:
 1 - Have Koha using ES
 2 - Search for:
    ti:chess AND chess
 3 - You should get a result in sample data, otherwise replace 'chess' with a
title in your catalogue
 4 - Search for:
    ti:chess AND kw:chess
 5 - No result
 6 - Enable  DumpTemplateVarsIntranet  and  DumpSearchQueryTemplate
 7 - Repeate search and check page source
 8 - search_query has:
    title:chess ANDchess
 9 - Apply patch
10 - Repeat
11 - Seaerch works!
12 - query is now:
     title:chess AND chess

Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>

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


More information about the Koha-bugs mailing list