Using an example record in the testing DB, try searching for: Pictura murală din nordul Moldovei: modificari estetice si restarare = Mural painting in the north of Moldavia: aesthetic modification and restoration In ES the search fails. If you look at the query we end up with terms like: Moldoveimodificari AND Moldaviaaesthetic This is because of this line in Koha/SearchEngine/Elasticsearch/QueryBuilder.pm 935 # Remove unquoted colons that have whitespace on either side of them 936 $term =~ s/(\:[:\s]+|[:\s]+:)$lookahead//g; Removing colons with a space on either side, we must be careful to put that space back: 936 $term =~ s/(\:[:\s]+|[:\s]+:)$lookahead/ /g;
Code has changed : $term =~ s/(:+)(\s+)$lookahead/$2/g; $term =~ s/(\s+)(:+)$lookahead/$1/g; But bug looks still valid.
Enable DumpSearchQueryTemplate syspref and look in HTML code to "query_string" > "query"
(In reply to Fridolin Somers from comment #1) > Code has changed : > $term =~ s/(:+)(\s+)$lookahead/$2/g; > $term =~ s/(\s+)(:+)$lookahead/$1/g; > > But bug looks still valid. This new code should fix this, at least for me this search now works with this new code.
Running into this problem. Would love for this fix to be released.
*** This bug has been marked as a duplicate of bug 24567 ***