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.