A PUI search limited to Notes also returns records with the value in unpublished notes records

Description

The unpublished note does not appear in the PUI (you have to look in the staff interface to determine why the result was returned) but this is still undesirable behavior.

Environment

None

Activity

Show:

Donald SmithNovember 20, 2023 at 6:48 PM

's additional updates to this have been merged.

Austin MunsellNovember 17, 2023 at 5:59 PM

Confirming Bri’s results, the PUI did not return results when searching for specific terms in unpublished notes. Hopefully Andrew’s issues can also be addressed in a future development.

Andrew MorrisonNovember 13, 2023 at 2:02 PM
Edited

I have observed the following side-effects:

  • Archival objects match keywords in their parent resource when searching in the PUI. That is because the PUI indexer retrieves ancestors in order to do inheritance of selected fields, but all the fields in those ancestors are now being included in the new “fullrecord_published” index.

  • Indexing is slower, because each record is being scanned for fields to include in the new “fullrecord_published” and “notes_published” indexes. It only adds hundredths of a second per record, but for very large institutions that could add hours to a full re-index.

I have created a pull request with a possible approach to fixing these issues:

Brianna McLaughlinNovember 10, 2023 at 10:21 PM

Tested and can confirm that a search through notes in the PUI does not return unpublished note contents or references to the resources they are within.

Donald SmithNovember 3, 2023 at 9:18 PM
Edited

This PR made some changes to Solr search, so we should test that well to make sure it didn’t have any unintended consequences.

Done

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Harvest Time Tracking

Open Harvest Time Tracking

Created October 12, 2017 at 6:42 PM
Updated March 14, 2024 at 4:21 PM
Resolved March 14, 2024 at 4:21 PM
Harvest Time Tracking