Bugzilla – Attachment 114701 Details for
Bug 27307
"Keyword as phrase" option in search dropdown doesn't work with Elastic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27307: Unit test
Bug-27307-Unit-test.patch (text/plain), 1.39 KB, created by
Andrew Fuerste-Henry
on 2020-12-24 15:33:31 UTC
(
hide
)
Description:
Bug 27307: Unit test
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2020-12-24 15:33:31 UTC
Size:
1.39 KB
patch
obsolete
>From b48802eb96f9150790e5b516b300cec213b4866d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 24 Dec 2020 14:04:17 +0000 >Subject: [PATCH] Bug 27307: Unit test > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >--- > t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >index e62e57f4e4..07861c7f28 100755 >--- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >+++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >@@ -216,7 +216,7 @@ subtest 'build_authorities_query_compat() tests' => sub { > }; > > subtest 'build_query tests' => sub { >- plan tests => 56; >+ plan tests => 57; > > my $qb; > >@@ -279,6 +279,13 @@ subtest 'build_query tests' => sub { > "query not altered if QueryAutoTruncate disabled" > ); > >+ ( undef, $query ) = $qb->build_query_compat( undef, ['donald duck'], ['kw,phr'] ); >+ is( >+ $query->{query}{query_string}{query}, >+ '("donald duck")', >+ "keyword as phrase correctly quotes search term and strips index" >+ ); >+ > ( undef, $query ) = $qb->build_query_compat( undef, ['donald duck'], ['title'] ); > is( > $query->{query}{query_string}{query}, >-- >2.11.0
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 27307
:
114699
|
114700
|
114701
|
114702
|
115077
|
115078