Change `fields` behaviour in get and search api.

See #4542