(self, fields)
return self.source(fields)
Restrict the fields returned from elasticsearch

            Deprecated. Use `source` instead.
Restrict the fields returned from elasticsearch
Restrict the fields returned from elasticsearch
def fields(self, fields):
        """
            Restrict the fields returned from elasticsearch

            Deprecated. Use `source` instead.
            """
        self._legacy_fields = True
        return self.source(fields)
def fields ( self , fields ) : self . _legacy_fields = True return self . source ( fields )