Bugzilla – Attachment 136696 Details for
Bug 31061
OPACSuppress behavior with Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31061: Change type of suppress in Elasticsearch mappings
Bug-31061-Change-type-of-suppress-in-Elasticsearch.patch (text/plain), 1.48 KB, created by
Fridolin Somers
on 2022-06-28 20:21:54 UTC
(
hide
)
Description:
Bug 31061: Change type of suppress in Elasticsearch mappings
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-06-28 20:21:54 UTC
Size:
1.48 KB
patch
obsolete
>From bbb1fa7016623186d893de19ded5316db4301b58 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 28 Jun 2022 10:08:17 -1000 >Subject: [PATCH] Bug 31061: Change type of suppress in Elasticsearch mappings > >--- > admin/searchengine/elasticsearch/mappings.yaml | 2 +- > installer/data/mysql/atomicupdate/bug_31061.pl | 13 +++++++++++++ > 2 files changed, 14 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_31061.pl > >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index 28429878f9..8123f173a8 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -3018,7 +3018,7 @@ biblios: > marc_type: unimarc > sort: ~ > suggestible: '' >- type: boolean >+ type: '' > ta: > label: ta > mappings: >diff --git a/installer/data/mysql/atomicupdate/bug_31061.pl b/installer/data/mysql/atomicupdate/bug_31061.pl >new file mode 100755 >index 0000000000..1fcfa69afa >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_31061.pl >@@ -0,0 +1,13 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "31061", >+ description => "Remove suppress search field boolean type", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ UPDATE `search_field` SET type = '' WHERE name = 'suppress' AND type = 'boolean' >+ }); >+ }, >+}; >-- >2.35.3
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 31061
:
136695
|
136696
|
136697
|
136799