Koha/admin
David Gustafsson d1c8d7ecce Bug 24807: Add "year" type to improve sorting behaviour
Add a "year" search field type. Fields with this type will only
retain values that looks like years, so invalid values such as
whitespace or word characters will not be indexed.
This for instance improves the behaviour when sorting by
"date-of-publication". If all values are indexed, records with
junk data instead of valid years will appear first among the search
results, drowning out more relevant hits. If assigning this field
the "year" type these records will instead always appear last,
regarless of sort order.

To test:

1) Have at least two biblios, one with a valid year in 008 (pos 7-10)
and another with an invalid one ("uuuu" for example)
2) Perform a wildcard search (*) and sort results by publication date.
3) The record with invalid year of pulication in 008 should appear first
4) Apply patch and run database updates
5) Reindex ElasticSearch
6) Perform the same search as in 2)
7) The record with the invalid year should now appear last

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-18 11:21:31 +02:00
..
searchengine/elasticsearch Bug 24807: Add "year" type to improve sorting behaviour 2020-09-18 11:21:31 +02:00
add_user_search.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
additional-fields.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
admin-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
adveditorshortcuts.pl Bug 24663: Force auth in adveditorshortcuts.pl 2020-09-03 10:40:35 +02:00
aqbudgetperiods.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
aqbudgets.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
aqcontract.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
aqplan.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
audio_alerts.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
auth_subfields_structure.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
auth_tag_structure.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
authorised_values.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
authtypes.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
biblio_framework.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
branch_transfer_limits.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
branches.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cash_registers.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
categories.pl Bug 23816: Add minimum password length and require strong password overrides by category 2020-09-09 15:39:52 +02:00
check_budget_parent.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
check_parent_total.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
checkmarc.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cities.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
classsources.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
clone-rules.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
columns_settings.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
columns_settings.yml Bug 21750: Move collection code to its own column on checkins table 2020-08-24 12:10:53 +02:00
credit_types.pl Bug 24663: (follow-up) Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
currency.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
debit_types.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
desks.pl Bug 13881: (QA follow-up) Check for manage_libraries permission 2020-03-25 09:19:34 +00:00
didyoumean.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
edi_accounts.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
edi_ean_accounts.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
import_export_framework.pl Bug 23398: Disable the XML import/export format for biblio framework 2019-11-08 12:51:16 +00:00
item_circulation_alerts.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
items_search_field.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
items_search_fields.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
itemtypes.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
koha2marclinks.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
library_groups.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
localization.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
marc_subfields_structure.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
marctagstructure.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
matching-rules.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
oai_set_mappings.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
oai_sets.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
overdrive.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
patron-attr-types.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
preferences.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
share_content.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
smart-rules.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
sms_providers.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
sru_modmapping.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
systempreferences.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
transport-cost-matrix.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
usage_statistics.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
z3950servers.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00