added serach with thinking sphinx, fixed some bugs