fixed bug with sunspot config and fixed searching