NERC-CEH / irecord-butterflies-app

Repository for the code for the iRecord Butterflies App
0 stars 0 forks source link

Add sample ID to ElasticSearch occurrences output #140

Closed kazlauskis closed 2 years ago

kazlauskis commented 2 years ago

Currently, fetching services/rest/es-occurrences/_search doesn't include the occurrence's parent sample ID in the output. For us to be able to link the occurrences we need a parent sample ID included.

Links to #138

kazlauskis commented 2 years ago

@johnvanbreda to advise if this is doable.

kazlauskis commented 2 years ago

I have found event.event_id might be linked to sample ID, but not sure if this is that.

johnvanbreda commented 2 years ago

Correct - event.event_id is the sample ID, and event.parent_event_id is the parent sample ID. See https://github.com/Indicia-Team/support_files/blob/master/Elasticsearch/docs/occurrences-document-structure.md for the full list.

kazlauskis commented 2 years ago

Great, thanks for the documentation! Closing this now.