0
我正在使用App Engine搜索API,並試圖提取doc_ids列表。以下是我的查詢結果:如何解析SearchResults的列表?
search.SearchResults(results=[
search.ScoredDocument(doc_id=u'-8853541246119947279', rank=0),
search.ScoredDocument(doc_id=u'-8853541246119948097', rank=0),
search.ScoredDocument(doc_id=u'-8853541246119946461', rank=0),
search.ScoredDocument(doc_id=u'51713103325273223', rank=0),
search.ScoredDocument(doc_id=u'5587798675278816831', rank=0),
search.ScoredDocument(doc_id=u'-8853541246119946464', rank=0),
search.ScoredDocument(doc_id=u'-3372400065395745350', rank=0),
search.ScoredDocument(doc_id=u'5587798675278815364', rank=0)
], number_found=8L)
如何提取doc_id
s作爲列表?
其樣的怪癖,而是分裂的「「」行了,他們掉在每隔一行 – gkusner