Allow the search index class to be provided by the user in `index`.

Defaults to SearchIndex otherwise.

Could be a very simple fix for #96.

(If this kind of change is desirable I'll be more than happy to supplement it with documentation updates.)