Add search backend config

This PR implements search backend configuration and index querying.