save lucene index function for events for new longitudinal report