def get_document_from_index(doc_id, index):
 index = gae_search.Index(index)
 return _search_document_to_dict(index.get(doc_id))

def get_document_from_index ( doc_id , index ) : index = gae_search . Index ( index ) return _search_document_to_dict ( index . get ( doc_id ) )
returns a document with a give doc_id(s) from the index .