Lines Matching refs:fuzzy_match

292                                            const FuzzyMatch *fuzzy_match)  in ide_code_index_index_create_search_result()  argument
311 g_assert (fuzzy_match != NULL); in ide_code_index_index_create_search_result()
313 value = dzl_fuzzy_index_match_get_document (fuzzy_match->match); in ide_code_index_index_create_search_result()
321 key = dzl_fuzzy_index_match_get_key (fuzzy_match->match); in ide_code_index_index_create_search_result()
325 path = dzl_fuzzy_index_get_metadata_string (fuzzy_match->index, num); in ide_code_index_index_create_search_result()
331 score = dzl_fuzzy_index_match_get_score (fuzzy_match->match); in ide_code_index_index_create_search_result()
382 FuzzyMatch fuzzy_match = {0}; in ide_code_index_index_query_cb() local
384 fuzzy_match.index = index; in ide_code_index_index_query_cb()
385 fuzzy_match.match = g_list_model_get_item (list, 0); in ide_code_index_index_query_cb()
386 fuzzy_match.list = g_steal_pointer (&list); in ide_code_index_index_query_cb()
387 fuzzy_match.match_num = 0; in ide_code_index_index_query_cb()
389 dzl_heap_insert_val (data->fuzzy_matches, fuzzy_match); in ide_code_index_index_query_cb()
426 FuzzyMatch fuzzy_match; in ide_code_index_index_query_cb() local
428 dzl_heap_extract (data->fuzzy_matches, &fuzzy_match); in ide_code_index_index_query_cb()
430 item = ide_code_index_index_create_search_result (context, &fuzzy_match); in ide_code_index_index_query_cb()
436 g_clear_object (&fuzzy_match.match); in ide_code_index_index_query_cb()
438 fuzzy_match.match_num++; in ide_code_index_index_query_cb()
440 if (fuzzy_match.match_num < g_list_model_get_n_items (fuzzy_match.list)) in ide_code_index_index_query_cb()
442 fuzzy_match.match = g_list_model_get_item (fuzzy_match.list, fuzzy_match.match_num); in ide_code_index_index_query_cb()
443 dzl_heap_insert_val (data->fuzzy_matches, fuzzy_match); in ide_code_index_index_query_cb()
447 g_clear_object (&fuzzy_match.list); in ide_code_index_index_query_cb()