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]

sequence of results, each result is a namedtuple of your requested fields