Bugzilla – Attachment 64789 Details for
Bug 18434
Elasticsearch indexing broken with newer catmandu version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18434 - Followup - same changes for sort and facet fields
Bug-18434---Followup---same-changes-for-sort-and-f.patch (text/plain), 1.94 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-07-03 19:07:39 UTC
(
hide
)
Description:
Bug 18434 - Followup - same changes for sort and facet fields
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-07-03 19:07:39 UTC
Size:
1.94 KB
patch
obsolete
>From cdbab7507806115f020e488c61d5e10a2fb24535 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 16 Jun 2017 10:01:12 -0400 >Subject: [PATCH] Bug 18434 - Followup - same changes for sort and facet fields > >To test: >1 - Index some stuff with multiple fields defined for sorting > i.e. Authorites - make heading sortable - default is 110a and 111a for > heading - a record with 111a empty will make the sort field empty >2 - view the record: >curl http://localhost:9200/koha_kohadev_authorities/data/30?pretty=true >3 - Note the blank field >4 - Apply patch >5 - Reindex >6 - Fields should be correctly populated > >Unit tests to follow (once I have the originals working for all) > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/SearchEngine/Elasticsearch.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index b079dca..43bb0a8 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -328,7 +328,7 @@ sub get_fixer_rules { > $options = '-split => 1' unless $marc_field =~ m|_/| || $type eq 'sum'; > push @rules, "marc_map('$marc_field','${name}.\$append', $options)"; > if ($facet) { >- push @rules, "marc_map('$marc_field','${name}__facet', $options)"; >+ push @rules, "marc_map('$marc_field','${name}__facet.\$append', $options)"; > } > if ($suggestible) { > push @rules, >@@ -351,7 +351,7 @@ sub get_fixer_rules { > # to do the default thing, which is make it sortable. > if ($self->sort_fields()->{$name}) { > if ($sort || !defined $sort) { >- push @rules, "marc_map('$marc_field','${name}__sort', $options)"; >+ push @rules, "marc_map('$marc_field','${name}__sort.\$append', $options)"; > } > } > } >-- >2.7.4
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 18434
:
62171
|
62702
|
63451
|
63452
|
63453
|
63473
|
63477
|
63478
|
63479
|
64386
|
64773
|
64786
|
64787
|
64788
| 64789 |
64790