def test_termvector(self): c = BaseClient() c.termvector( 'index', 'index', 'bulk1', cb=self.handle_cb, ) self.wait()
def test_termvector(self): c = BaseClient() h_cb = partial( self.handle_cb, **{'codes':[500, 404]} ) body = """ { "fields" : ["text", "some_field_without_term_vectors"], "offsets" : true, "positions" : true, "term_statistics" : true, "field_statistics" : true } """ c.termvector( 'index', 'test', 'test123', body=body, cb=h_cb, ) self.wait()
def test_termvector(self): c = BaseClient() h_cb = partial( self.handle_cb, **{'codes':[500, 404]} ) body = """ { "fields" : ["text", "some_field_without_term_vectors"], "offsets" : true, "positions" : true, "term_statistics" : true, "field_statistics" : true } """ c.termvector( 'index', 'test', 'test123', body=body, callback=h_cb, ) self.wait()