search function working with sphinx and postgres