make sure search uses an index