Bugzilla – Attachment 101852 Details for
Bug 23204
Add script for exporting Elasticsearch mappings to YAML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23204: export field weights
Bug-23204-export-field-weights.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2020-03-26 14:16:25 UTC
(
hide
)
Description:
Bug 23204: export field weights
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-26 14:16:25 UTC
Size:
1.21 KB
patch
obsolete
>From 0f1301958cf0f6a16c20494c861ad441a2142416 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 6 Aug 2019 08:03:18 +0000 >Subject: [PATCH] Bug 23204: export field weights > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/SearchEngine/Elasticsearch.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index 31ab470864..0863faf307 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -273,6 +273,7 @@ sub raw_elasticsearch_mappings { > $mappings->{ $marc_map->index_name }{ $search_field->name }{label} = $search_field->label; > $mappings->{ $marc_map->index_name }{ $search_field->name }{type} = $search_field->type; > $mappings->{ $marc_map->index_name }{ $search_field->name }{facet_order} = $search_field->facet_order; >+ $mappings->{ $marc_map->index_name }{ $search_field->name }{weight} = $search_field->weight || undef; > > push (@{ $mappings->{ $marc_map->index_name }{ $search_field->name }{mappings} }, > { >-- >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 23204
:
90999
|
91350
|
92022
|
92023
|
92024
|
92174
|
93524
|
95986
|
100960
|
100961
|
100962
|
100963
|
100964
|
100965
|
101742
|
101850
|
101851
| 101852 |
101853
|
101854
|
101855
|
101856
|
101857
|
101858
|
102010