Bug 34766 - Searching for URIs in MARC fields could be improved
Summary: Searching for URIs in MARC fields could be improved
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-12 13:56 UTC by Marcel de Rooy
Modified: 2023-09-12 13:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2023-09-12 13:56:24 UTC
In Zebra we currently have this index:
  <index_subfields tag="952" subfields="u">
    <target_index>uri:u</target_index>
  </index_subfields>
It seems to be connected only to items.uri however. The generic index name would suggest a broader range. Or perhaps, allow a broader range?

We still have one other specific uri indexed:
  <index_subfields tag="024" subfields="a" condition="marc:subfield[@code='2' and text()='uri']">
    <target_index>Identifier-other:u</target_index>
  </index_subfields>

Two popular MARC fields for URIs, 520$u and 856$u are not indexed in a specific index.

How about adding them to uri ?
Since we do now have uri bound to items, do we need a specific subindex (like item_uri) for that one? Or the other way around, given that uri is already taken, why not add generic_uri or any other (better) new index name?

And still elaborating here, a urx search does not really work in Koha. Several special characters in URLs seem to return nothing, since C4/Search does not like them probably. (While the search works in yaz-client.)

Should we make it possible to search those just like other text fields too? If I am looking for a record containing a URL like sub.domain.country, why not look for a word in the string like sub or domain?
Comment 1 Marcel de Rooy 2023-09-12 13:59:49 UTC
I might be wrong, but I do not see the uri as a specific index type in Elastic?