- stat_method(), get statistics of method name in codebase.
- stat_parsed(), get statistics of method body in codebase.
- analyze_method(), get vocabulary of method name according to the output of stat_method().
- analyze_parsed(), get vocabulary of method body according to the output of stat_parsed().
- query_parse(), preprocess queries and get metadata for each token in queries.
- query_parse_tree(), generate query keywords with importance order.
- format_data(), save reprocessed method components to Json data structure.
- create_index(), create codebase index for elasticsearch. 为了简化直接用 create_simple_index()
- fill_data(), fill the formatted data to the elasticsearch. 简化直接用 fill_simple_data()
- fuzzy_search(), perform fuzzy search on the indexed code with parsed queries.
- reranking(), reorder the search results returned by the fuzzy_search() and generate the final results in 'search.txt'
- '_search_codematcher_parsed_lzw.txt' in Baidu Pan link shows the final result.