I have a use case for needing to index documents that live in different locations (Content Server, file share, SharePoint Online) so i can use this index for a search feature in a web app. The plan was to consider using elasticsearch because of it's fast search apis and fast indexing capabilities.
My question is what is a good way to access the SharePoint online search index for a particular site or document library? Idea is to have a job that would read the SP index and add it to the elasticsearch index.