wiring up search and index