2013-01-17 2 views

답변

0

return_fields 인수에 순위 식의 이름을 추가

import boto 
conn = boto.connect_cloudsearch(key,secret) 
domain = conn.create_domain('domain_name') 
search_service = domain.get_search_service() 

results = search_service.search(query, return_fields=['text_relevance','name_of_custom_rank_expression']) 

for result in results: 
    score = result['data']['name_of_custom_rank_expression'][0] 
관련 문제