# datacube.index._datasets.DatasetResource.search_returning¶

DatasetResource.search_returning(field_names, limit=None, **query)[source]

Perform a search, returning only the specified fields.

This method can be faster than normal search() if you don’t need all fields of each dataset.

It also allows for returning rows other than datasets, such as a row per uri when requesting field ‘uri’.

Parameters: Returns __generator[tuple]: field_names (tuple[str]) – query (Union[str,float,Range,list]) – limit (int) – Limit number of datasets sequence of results, each result is a namedtuple of your requested fields