Make search-index export a function that takes options instead of exporting a separate configure function