Bugzilla – Attachment 105061 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: Remove 'mc-' prefix in facet field name
Bug-24555-Remove-mc--prefix-in-facet-field-name.patch (text/plain), 866 bytes, created by
Julian Maurice
on 2020-05-19 08:24:21 UTC
(
hide
)
Description:
Bug 24555: Remove 'mc-' prefix in facet field name
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2020-05-19 08:24:21 UTC
Size:
866 bytes
patch
obsolete
>From 273b0a71e7ea94ff97bb2a96f20b1c87c41e8bf2 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 19 May 2020 10:23:36 +0200 >Subject: [PATCH] Bug 24555: Remove 'mc-' prefix in facet field name > >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index e372c44b49..653822ec3d 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -800,6 +800,7 @@ sub _build_limit_filters { > > my ($conv) = $self->_convert_index_fields($field); > my $facet_name = $conv->{field} . '__facet'; >+ $facet_name =~ s/^mc-//; > push @res, { > term => { > $facet_name => $term >-- >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