Bugzilla – Attachment 68241 Details for
Bug 19481
Elasticsearch - Set default fields for sorting in mappings.yaml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19481 - Set default sort options as sortable in ES default mappings
Bug-19481---Set-default-sort-options-as-sortable-i.patch (text/plain), 2.76 KB, created by
Nick Clemens (kidclamp)
on 2017-10-18 10:33:56 UTC
(
hide
)
Description:
Bug 19481 - Set default sort options as sortable in ES default mappings
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-10-18 10:33:56 UTC
Size:
2.76 KB
patch
obsolete
>From 1cd708815aef039f3cd3e1d26e2fa541a963b32a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 18 Oct 2017 10:29:24 +0000 >Subject: [PATCH] Bug 19481 - Set default sort options as sortable in ES > default mappings > >To test: >1 - Setup Koha with ES >2 - perform a search >3 - try sorting by pubdate, acqdate, popularity, or title >4 - Search fails! >5 - Apply patch >6 - visit: >/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl?op=reset&i_know_what_i_am_doing=1 >7 - Re-index ES >8 - Perform search >9 - All sorting options should work >--- > admin/searchengine/elasticsearch/mappings.yaml | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index f01fd01..44bc219 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -583,17 +583,17 @@ biblios: > - facet: '' > marc_field: 952d > marc_type: marc21 >- sort: ~ >+ sort: 1 > suggestible: '' > - facet: '' > marc_field: 952d > marc_type: normarc >- sort: ~ >+ sort: 1 > suggestible: '' > - facet: '' > marc_field: '9955' > marc_type: unimarc >- sort: ~ >+ sort: 1 > suggestible: '' > type: date > an: >@@ -1594,12 +1594,12 @@ biblios: > - facet: '' > marc_field: 952l > marc_type: marc21 >- sort: ~ >+ sort: 1 > suggestible: '' > - facet: '' > marc_field: 952l > marc_type: normarc >- sort: ~ >+ sort: 1 > suggestible: '' > type: sum > itemnumber: >@@ -1916,17 +1916,17 @@ biblios: > - facet: '' > marc_field: 008_/7-10 > marc_type: marc21 >- sort: ~ >+ sort: 1 > suggestible: '' > - facet: '' > marc_field: 008_/7-10 > marc_type: normarc >- sort: ~ >+ sort: 1 > suggestible: '' > - facet: '' > marc_field: 100a_/9-12 > marc_type: unimarc >- sort: ~ >+ sort: 1 > suggestible: '' > type: '' > publisher: >@@ -2308,7 +2308,7 @@ biblios: > - facet: '' > marc_field: 245a > marc_type: marc21 >- sort: ~ >+ sort: 1 > suggestible: '1' > - facet: '' > marc_field: '246' >@@ -2388,7 +2388,7 @@ biblios: > - facet: '' > marc_field: 245a > marc_type: normarc >- sort: ~ >+ sort: 1 > suggestible: '1' > - facet: '' > marc_field: '246' >@@ -2443,7 +2443,7 @@ biblios: > - facet: '' > marc_field: 200a > marc_type: unimarc >- sort: ~ >+ sort: 1 > suggestible: '1' > - facet: '' > marc_field: 200c >-- >2.1.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 19481
:
68241
|
68788
|
69224