Bugzilla – Attachment 105470 Details for
Bug 24555
POC Elasticsearch - Use boolean queries instead of full text queries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24555: Use operator "and" for match query
Bug-24555-Use-operator-and-for-match-query.patch (text/plain), 918 bytes, created by
Julian Maurice
on 2020-06-01 11:23:21 UTC
(
hide
)
Description:
Bug 24555: Use operator "and" for match query
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2020-06-01 11:23:21 UTC
Size:
918 bytes
patch
obsolete
>From 5109f164a522abb39bb529b39eb5003fca9360f6 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 27 May 2020 14:26:28 +0200 >Subject: [PATCH] Bug 24555: Use operator "and" for match query > >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index 8797b9e0b3..1efadf02c1 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -287,7 +287,10 @@ sub _create_match_expression { > > my $field = $search_param->{field}; > $expression->{match} = { >- $field => $search_param->{operand} >+ $field => { >+ query => $search_param->{operand}, >+ operator => 'and', >+ }, > }; > > return $expression; >-- >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 24555
:
98242
|
98243
|
98247
|
98248
|
104419
|
104422
|
105061
| 105470 |
105471
|
105472
|
105744