def METHOD_NAME(es_obj, tid1, tid2):
    left_sum, right_sum = None, None
    buf = es_obj.search(index=get_analysis_index(), query=get_query_by_info_id(tid1))["hits"]["hits"]
    if buf:
        left_sum = buf[-1]["_source"]
    buf = es_obj.search(index=get_analysis_index(), query=get_query_by_info_id(tid2))["hits"]["hits"]
    if buf:
        right_sum = buf[-1]["_source"]
    return get_similar_summary(left_sum, right_sum) if left_sum and right_sum else {}