search for the metadata of the objects in Swift