Bugzilla – Attachment 164958 Details for
Bug 33407
With ES and QueryAutoTruncate on, a search containing ISBD punctuation returns no results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33407: Unit tests
Bug-33407-Unit-tests.patch (text/plain), 1.47 KB, created by
Roman Dolny
on 2024-04-16 16:18:44 UTC
(
hide
)
Description:
Bug 33407: Unit tests
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2024-04-16 16:18:44 UTC
Size:
1.47 KB
patch
obsolete
>From 8a1d0d9d9699cfbe923c10d36157b4c4e783b25c Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Wed, 10 Apr 2024 19:38:29 +0000 >Subject: [PATCH] Bug 33407: Unit tests > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >index e834187ba6..fa42527d94 100755 >--- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >+++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >@@ -219,7 +219,7 @@ subtest 'build_authorities_query_compat() tests' => sub { > }; > > subtest 'build_query tests' => sub { >- plan tests => 63; >+ plan tests => 64; > > my $qb; > >@@ -468,6 +468,14 @@ subtest 'build_query tests' => sub { > "query of boolean type field is not truncated even if QueryAutoTruncate is set" > ); > >+ ( undef, $query ) = >+ $qb->build_query_compat( undef, ['First title ; Second title : some & subtitle / Authors Name'] ); >+ is( >+ $query->{query}{query_string}{query}, >+ '(First* title* Second* title* some* subtitle* Authors* Name*)', >+ "ISBD punctualtion and problematic characters properly removed" >+ ); >+ > ( undef, $query ) = $qb->build_query_compat( undef, ['J.R.R'] ); > is( > $query->{query}{query_string}{query}, >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33407
:
164633
|
164634
|
164957
|
164958
|
167410
|
167419
|
167420
|
167649