Bugzilla – Attachment 115077 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.45 KB, created by
Martin Renvoize (ashimema)
on 2021-01-12 12:14:48 UTC
(
hide
)
Description:
Bug 27307: Unit test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-01-12 12:14:48 UTC
Size:
1.45 KB
patch
obsolete
>From f3e243bd9a42a3293e6857af56716733f5ce9212 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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.20.1
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