zoukankan      html  css  js  c++  java
  • 后端程序员之路 32、Index搜索引擎实现分析1-类的设计

    # 1、forward_index 正排索引(正向索引)
    - filter_t
    - filter_judge

    # 2、inverted_index 倒排索引(反向索引)
    - inverted_pre_scoring_t

    # 3、index_box 提供搜索功能的实现
    - 1、2

    # 4、search_index 对文章根据语言、地域、类型进行分块索引
    - 3

    # 5、part_indexer 对文章根据id的hash进行分块索引
    - 4

    # 6、index_helper index_manager使用的辅助类

    # 7、inc_reader 用于往index server增量的添加数据
    - gmp_update_t
    - boost::unordered_map<uint64_t, gmp_update_t> gmp_cache_t;

    # 8、theta_heap
    - theta_candidate_t
    - local_theta_heap

    # 9、index_manager 单例类,唯一对外接口
    - 4、5、6、7、8
    - partition_task_tracker_t
    - partition_task_t
    - methods
        - init
        - inc_data、inc_gmp
        - trigger
        - get_item、get_all_items
        - get_size、get_gmp_size

  • 相关阅读:
    2019春季助教学期总结
    第二次实验设计报告
    第十二周作业
    第十一周作业
    第十周作业
    第九周作业
    第八周作业
    万恶的第七周作业
    第六周作业
    堆积如山的第五周作业
  • 原文地址:https://www.cnblogs.com/zapline/p/6688868.html
Copyright © 2011-2022 走看看