use API endpoint for retrieving search docs (fixes #45)