Bugzilla – Attachment 114707 Details for
Bug 26051
Elasticsearch uses the wrong field for callnumber sorting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26051: Elasticsearch field local-classification sort=1 in mapping.yaml
Bug-26051-Elasticsearch-field-local-classification.patch (text/plain), 2.02 KB, created by
Victor Grousset/tuxayo
on 2020-12-27 16:41:06 UTC
(
hide
)
Description:
Bug 26051: Elasticsearch field local-classification sort=1 in mapping.yaml
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-12-27 16:41:06 UTC
Size:
2.02 KB
patch
obsolete
>From 06c04a6fcf593965114c9a9e2bbb6b06893a30b6 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 23 Jul 2020 14:51:47 +0200 >Subject: [PATCH] Bug 26051: Elasticsearch field local-classification sort=1 in > mapping.yaml >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >With Elasticsearch the search field use for sorting by callnumber is "local-classification" (from Koha::SearchEngine::Elasticsearch::QueryBuilder::_convert_sort_fields). >So this search field must be sortable in default mappings.yaml. > >If not you see this error in logs : >No mapping found for [local-classification__sort] > >Test plan : >1) Install Koha with Elasticsearch with mappings.yaml from sources (admin/searchengine/elasticsearch/mappings.yaml) > It should be the case on all developement instalations >2) Reset mappings (Administration ⺠Search engine configuration (Elasticsearch)) >3) Rebuild indexes: misc/search_tools/rebuild_elasticsearch.pl -v -d >4) Perform a search >5) Check sorting by callnumber is OK (add some call numbers if > necessary) > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > admin/searchengine/elasticsearch/mappings.yaml | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index 0a1cd86454..b07c287a77 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -2635,7 +2635,7 @@ biblios: > - facet: '' > marc_field: 952o > marc_type: marc21 >- sort: 0 >+ sort: 1 > suggestible: 1 > - facet: '' > marc_field: 686 >@@ -2645,12 +2645,12 @@ biblios: > - facet: '' > marc_field: 995k > marc_type: unimarc >- sort: 0 >+ sort: 1 > suggestible: 1 > - facet: '' > marc_field: 952o > marc_type: normarc >- sort: 0 >+ sort: 1 > suggestible: 1 > type: '' > local-number: >-- >2.29.2
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 26051
:
107237
|
114707
|
114957
|
115662
|
115664
|
116086
|
116087
|
116295
|
117165
|
117166