Add search backend config

This PR is not urgent - I am still debugging this. Just here to make you aware of these changes soon, before someone else starts working on this. Feel free to comment.