[Koha-bugs] [Bug 24559] Elasticsearch - add support for 'date' fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 28 20:39:42 CET 2020


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

Michal Denar <black23 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99626|0                           |1
        is obsolete|                            |
  Attachment #99785|0                           |1
        is obsolete|                            |

--- Comment #6 from Michal Denar <black23 at gmail.com> ---
Created attachment 99791
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99791&action=edit
Bug 24559: Add 'year' type to Elasticsearch

When indexing fields like 260c or 008_/7-10 we need a way to format
these 'date' fields into years. Removing punctuation and coverting
unknown values to 0

To test:
 1 - Edit some records to have dates of publication in 008 like
    202u
    2021
    203u
    2039
 2 - Also add to title for all records a unique word like 'octoparrot'
 3 - Search for 'octoparrot'
 4 - Sort records by publication/copyrightdate
 5 - Confirm sorting is not as expected
 6 - Apply patch
 7 - Set copydate to 'year' type
 8 - Reindex
 9 - Repeat search
10 - Confirm sorting works as expected

Nice work, Nick.

Signed-off-by: Michal Denar <black23 at gmail.com>

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


More information about the Koha-bugs mailing list