[Koha-bugs] [Bug 18827] New: Elasticsearch mappings - not displayed or retrieved in saved order

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 19 22:12:52 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18827

            Bug ID: 18827
           Summary: Elasticsearch mappings - not displayed or retrieved in
                    saved order
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching
          Assignee: nick at bywatersolutions.com
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

The mappings listed under 'Biblios' and 'Authorities' are draggable - this
allows ordering of fields.

The ordering affects the id field in the search_marc_map table

When retrieving for display or mapping we are not ordering by the this field.


In general I am not sure if we are gaining anything with this ordering:

https://www.elastic.co/guide/en/elasticsearch/guide/current/_sorting.html
" When sorting on fields with more than one value, remember that the values do
not have any intrinsic order; a multivalue field is just a bag of values. Which
one do you choose to sort on?"

I think we can switch to the idea that a single field per index should be
chosen for ordering:
author = 100 (only make this one sortable)
author = 700
author = 245c


or, in the case of authorities, we should expect a single field to populate the
field for sorting (100, 110, 150 ... are alldefined as 'main-heading' - but
each record should only have a single one of these field)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list