Incorrect search page result in events search
From https://gitlab.esrf.fr/icat/icat-ingester/-/issues/20
Example Logbook entry: https://data.esrf.fr/investigation/561456366/events
search ClassCastException
https://icatplus.esrf.fr/logbook/b0552927-95fd-4996-b49f-edc721a1c011/event?investigationId=561456366&limit=100&sortBy=_id&sortOrder=-1&types=notification-error&search=ClassCastException&filterInvestigation=undefined
Response:
[{"_id":"61907c727959fe0020ded88d","tag":[{"_id":"61907c727959fe0020ded88b","name":"system","investigationId":561456366,"createdAt":"2021-11-14T03:03:14.407Z","updatedAt":"2021-11-14T03:03:14.407Z","__v":0},{"_id":"61907c727959fe0020ded88c","name":"ingester","investigationId":561456366,"createdAt":"2021-11-14T03:03:14.407Z","updatedAt":"2021-11-14T03:03:14.407Z","__v":0}],"file":[],"investigationName":"HC-4568","investigationId":561456366,"type":"notification","category":"error","instrumentName":"ID11","software":"INGESTER","machine":"bcu-mq-07","creationDate":"2021-11-14T03:03:14.000Z","content":[{"_id":"61907c727959fe0020ded88e","format":"plainText","text":"Dataset Z029 (Sample id11) could not be stored. Error=java.lang.ClassCastException"}],"previousVersionEvent":null,"createdAt":"2021-11-14T03:03:14.414Z","updatedAt":"2021-11-14T03:03:14.414Z","__v":0,"fullName":"Unknown","meta":{"page":{"total":1,"totalPages":1,"currentPage":1},"search":{"index":0,"page":1,"total":1},"executionTimeMs":232.337888}}]