[search] added advanced search & fixed bugs