Fixed some search problems: multiphrase search, complex formats (see issue 0005597), infinite recursion and other minor troubles.