Does anyone have any guides on how to get search with Algolia working?

I get search results when it's data that I already have in Statamic (Like a blog post), but external data i'm trying to integrate doesn't appear. I've tried using Javascript but how do I then link the objectID to a page in statamic?

So confused!!