def search(self, body, filter_path, **kwargs):
if '<STR_LIT>' in body['<STR_LIT>']:<EOL><INDENT>items = list(self.store.items())<EOL>for name, key in items:<EOL><INDENT>return self.store[name]<EOL><DEDENT>else:<EOL><INDENT>return {'<STR_LIT>': {'<STR_LIT>': []}}<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return self.store.get(body['<STR_LIT>']['<STR_LIT>']['<STR_LIT:name>'])<EOL><DEDENT>
{
    u'hits': {
        u'hits': [
            {
                u'_id': u'AVewADAWUnUKEMeMQ4QB',
                u'_source': {
                    u'description': None,
                    u'created_at':
                    u'2016-10-10 22:09:44',
                    u'modified_at':
                    u'2016-10-10 22:09:44',
                    u'value': u'the_value',
                    u'name': u'aws',
                    u'uid': u'7a1caa7d-14d4-4045-842c-66adf22190b5',
                    u'metadata': None
                }
            },
        ]
    }
}