Improoved search(), now it does not require search definitions