It only worked for name, the new definition is just below and works for name and id to make Hammer users happy.  API users shouldn't get different results, except for users who had a host named "1" and another host with an id of "1", in this case they'd get two hosts in the results.