defer loading of search index in api doc

fixes #3289