def test_search(self):
"""It should be possible to find an item by query"""
self._index_img(self.img1)
s = self.s.query(Q("match", title="greyhounds"))
r = s.execute()
self.assertEquals(1, r.hits.total)
评论列表
文章目录