Searching for descriptions based on Language and Script Notes

42 views
Skip to first unread message
Assigned to da...@artefactual.com by me

Ad Axem

unread,
Dec 19, 2019, 8:54:11 AM12/19/19
to AtoM Users
Hi everyone,

Is there any way to search for archival descriptions based on the Language and Script Notes (ISAD 3.4.3) field?

This field is not available to select in the Advanced Search Options. Furthermore, it does not seem to be listed in the 'Expert searching and indexed Elasticsearch fields' section of the AtoM documentation.

Does this mean that the field is not currently being indexed by Elasticsearch? If that is the case, can we modify the Elasticsearch mapping in order to make it available at least as part of the expert searching commands?

Thank you in advance for your help and guidance!

David at Artefactual

unread,
Dec 19, 2019, 1:36:06 PM12/19/19
to AtoM Users
Hi Ad Axem,

It doesn't look like the "Language and Script Notes" field is is included in the information_object (i.e. archival description) Elasticsearch mapping:

Because it is a note field, and stored as a related "note" record in the database, the field would need to be added to the "_foreign_types" list the Elasticsearch mapping, similar to the other "note" attributes that appear there:

In addition code would need to be added to the "arElasticSearchInformationObjectPdo" class to get the data from the database and serialize it for use in the ES index, similar to this code for the "General notes" field:

I think modifying the mapping and arElasticSearchInformationObjectPdo files should be sufficient to index the data.

Best regards,
David

Ad Axem

unread,
Dec 19, 2019, 5:56:10 PM12/19/19
to AtoM Users
Thank you so much for these detailed instructions David 🙏🏻
Reply all
Reply to author
Forward
0 new messages