search: support "attributes": "*" and "output": ["attributes"]