Bug 34245 - Scan index option only works on limited indexes
Summary: Scan index option only works on limited indexes
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on: 22592
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-10 13:27 UTC by Nick Clemens (kidclamp)
Modified: 2023-07-16 11:19 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2023-07-10 13:27:43 UTC
Currently in the code, the only indexes in ES that can be used with 'scan' are:
 647 our %scan_field_convert = (
 648     'ti' => 'title',
 649     'au' => 'author',
 650     'su' => 'subject',
 651     'se' => 'title-series',
 652     'pb' => 'publisher',
 653 );


This is not apparent to the end user, and causes confusion. We need to broaden support, or limit the displayed list of options for 'scan indexes'
Comment 1 Katrin Fischer 2023-07-16 11:19:14 UTC
Limiting the list when Elasticsearch is used makes sense to me. Should we hardcode the list or would it be possible to look-up which of the indexes are configured to work? I would support both fixes, we have the most important ones covered I think.