Esempio n. 1
0
def get_imgfile(img_id):
    s = Search(index='idx1').query('match', image_id=img_id)
    s = s.using(client)
    s.execute()
    for hit in s.scan():
        imgfile = hit.imagefile
        return imgfile
Esempio n. 2
0
def get_imgfile(img_id):
    s = Search(index='idxi20').query('match', image_id=img_id)
    s = s.using(client)
    s.execute()
    for hit in s.scan():
        imgfile = hit.imagefile
        #imagefile = hit.url
        #print("22 imgfile = ", imgfile)
        return imgfile