search_rule classes moved into lib
search_rules template