Change partial match level to word 44/180444/1
authorWonnam Jang <wn.jang@samsung.com>
Tue, 29 May 2018 12:17:06 +0000 (21:17 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Tue, 29 May 2018 12:17:06 +0000 (21:17 +0900)
Change-Id: Ia3110f87da01bac30720c91f7ef4ada86ae98972
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
server/vcd_server.c

index 0a9b9e927838acc152a275ee8740581d4c0fd27d..89a58d12a1ca00cd35c2eaf3bfbfc754b5ba582a 100644 (file)
@@ -683,7 +683,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                        vc_cmd_list_get_count(widget_cmd_list, &cnt);
                        if (0 < cnt) {
                                /* Matched with widget command partially */
-                               vc_cmd_get_partially_matched_cmd_list(all_result, widget_cmd_list, vc_cmd_list, VC_SEARCH_CHAR_LEVEL);
+                               vc_cmd_get_partially_matched_cmd_list(all_result, widget_cmd_list, vc_cmd_list, VC_SEARCH_WORD_LEVEL);
                                vc_cmd_list_get_count(vc_cmd_list, &cnt);
                                if (0 < cnt) {
                                        top_priority = VC_COMMAND_PRIORITY_WIDGET;
@@ -702,7 +702,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                                vc_cmd_list_get_count(foreground_cmd_list, &cnt);
                                if (0 < cnt) {
                                        /* Matched with foreground command partially */
-                                       vc_cmd_get_partially_matched_cmd_list(all_result, foreground_cmd_list, vc_cmd_list, VC_SEARCH_CHAR_LEVEL);
+                                       vc_cmd_get_partially_matched_cmd_list(all_result, foreground_cmd_list, vc_cmd_list, VC_SEARCH_WORD_LEVEL);
                                        vc_cmd_list_get_count(vc_cmd_list, &cnt);
                                        if (0 < cnt) {
                                                top_priority = VC_COMMAND_PRIORITY_FOREGROUND;
@@ -777,7 +777,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                        vc_cmd_list_get_count(widget_cmd_list, &cnt);
                        if (0 < cnt) {
                                /* Matched with widget command partially */
-                               vc_cmd_get_partially_matched_cmd_list(all_result, widget_cmd_list, temp_list, VC_SEARCH_CHAR_LEVEL);
+                               vc_cmd_get_partially_matched_cmd_list(all_result, widget_cmd_list, temp_list, VC_SEARCH_WORD_LEVEL);
                                vc_cmd_list_get_count(temp_list, &cnt);
                                if (0 < cnt) {
                                        if (0 != vc_cmd_list_destroy(vc_cmd_list, true)) {
@@ -801,7 +801,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                                vc_cmd_list_get_count(foreground_cmd_list, &cnt);
                                if (0 < cnt) {
                                        /* Matched with foreground command partially */
-                                       vc_cmd_get_partially_matched_cmd_list(all_result, foreground_cmd_list, temp_list, VC_SEARCH_CHAR_LEVEL);
+                                       vc_cmd_get_partially_matched_cmd_list(all_result, foreground_cmd_list, temp_list, VC_SEARCH_WORD_LEVEL);
                                        vc_cmd_list_get_count(temp_list, &cnt);
                                        if (0 < cnt) {
                                                if (0 != vc_cmd_list_destroy(vc_cmd_list, true)) {