Application Search Method, Device, Electronic Device, Storage Medium and Program Product
By obtaining the application name keyword entered by the user on the terminal and searching for the application based on the current name keyword associated with the keyword, the problem of low search efficiency after the application name changes is solved, and more efficient application search is achieved.
Patent Information
- Application Number
- CN202210189722.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-02-28
AI Technical Summary
In the prior art, when a user searches for an application on a terminal, if the application name of the target application changes, the terminal cannot search for the application, resulting in low search efficiency.
By obtaining the first name keyword entered by the user, the second name keyword associated with the keyword is determined. The second name keyword is the keyword corresponding to the current name of the target application, and the target application is searched based on the keyword.
Even if the application name of the target application changes, the application can be searched through the keywords of the historical name, without the user's own search, thus improving the application search efficiency.
Smart Images

Figure CN114564646B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to an application search method, apparatus, electronic device, storage medium, and program product. Background Art
[0002] Currently, with the emergence of various applications, the number of applications installed by users on terminals is also increasing. As the number of applications on the terminal increases, in order to facilitate users to quickly find the target application they want to start from the multiple installed applications, the terminal generally supports a search function, so that users can search for the installed applications among the multiple installed applications based on the search function of the terminal.
[0003] In the related art, users all input the application name, and the terminal searches for the target application according to the application name. However, when the application name of the target application changes, the terminal cannot search for the target application according to the application name. In this case, the user needs to search for the target application from the multiple installed applications by themselves, resulting in low search efficiency. Summary of the Invention
[0004] Embodiments of this application provide an application search method, apparatus, electronic device, storage medium, and program product, which can improve the search efficiency of applications. The technical solution is as follows:
[0005] On the one hand, an application search method is provided, and the method includes:
[0006] In response to a search operation, obtain a first name keyword that is input, where the first name keyword is used to search for a target application;
[0007] In the case where it is determined based on the first name keyword that the name of the target application has changed, based on the first name keyword, determine a second name keyword associated with the first name keyword, where the second name keyword is a keyword corresponding to the current name of the target application;
[0008] Search for the target application based on the second name keyword.
[0009] In a possible implementation manner, the determining, based on the first name keyword, a second name keyword associated with the first name keyword includes:
[0010] Call a first mapping relation table in the memory of the electronic device, where the first mapping relation table includes mapping relations between the historical names and current names of at least one application;
[0011] Based on the first name keyword, determine a second name keyword associated with the first name keyword from the first mapping relation table.
[0012] In another possible implementation, the invoking of the first mapping relation table in the memory of the electronic device includes:
[0013] Determine the language type of the first name keyword;
[0014] Based on the language type, invoke the first mapping relation table associated with the language type from multiple mapping relation tables stored in the memory of the electronic device, where the multiple mapping relation tables are mapping relation tables associated with multiple language types.
[0015] In another possible implementation, the method further includes:
[0016] For each of the at least one application, obtain the historical name and the current name of the application;
[0017] Generate the first mapping relation table corresponding to the application based on the historical name and the current name of the application;
[0018] Persist the first mapping relation table corresponding to the application into the storage space of the electronic device;
[0019] When the electronic device starts up, store the first mapping relation table in the storage space into the memory.
[0020] In another possible implementation, the searching for the target application based on the second name keyword includes:
[0021] Based on the second name keyword, determine the package name of the installation package associated with the second name keyword;
[0022] Based on the package name of the installation package, search for the target application among the applications installed in the electronic device.
[0023] In another possible implementation, the determining of the package name of the installation package associated with the second name keyword based on the second name keyword includes:
[0024] Invoke the second mapping relation table in the memory of the electronic device, where the second mapping relation table includes the mapping relation between the current names of the applications installed in the electronic device and the package names of the installation packages;
[0025] Based on the second name keyword, determine the package name of the installation package associated with the second name keyword from the second mapping relation table.
[0026] In another possible implementation, the searching for the target application based on the second name keyword includes at least one of the following implementation manners:
[0027] Search for the target application in a third-party search service based on the second name keyword;
[0028] Search for the target application in an app store based on the second name keyword;
[0029] Search for the target application in a game store based on the second name keyword.
[0030] In another possible implementation, the method further includes:
[0031] Call a second mapping relation table in the memory of the electronic device, where the second mapping relation table includes the corresponding relationship between the current name of the applications installed in the electronic device and the package name of the installation package;
[0032] In the case where the package name of the installation package associated with the first name keyword does not exist in the second mapping relation table, determine that the name of the target application has changed.
[0033] In another possible implementation, the method further includes:
[0034] In the case where the target application is searched, display the target application and the current name of the target application, where the current name includes the second name keyword, and the second name keyword is highlighted.
[0035] On the other hand, an application search device is provided, and the device includes:
[0036] A first acquisition module, configured to acquire a first name keyword input in response to a search operation, where the first name keyword is used to search for a target application;
[0037] A first determination module, configured to, in the case where it is determined based on the first name keyword that the name of the target application has changed, determine a second name keyword associated with the first name keyword based on the first name keyword, where the second name keyword is the keyword corresponding to the current name of the target application;
[0038] A search module, configured to search for the target application based on the second name keyword.
[0039] In a possible implementation, the first determination module is configured to call a first mapping relation table in the memory of the electronic device, where the first mapping relation table includes the mapping relationship between the historical name and the current name of at least one application; determine the second name keyword associated with the first name keyword from the first mapping relation table based on the first name keyword.
[0040] In another possible implementation, the first determination module is configured to determine the language type of the first name keyword; based on the language type, call the first mapping relation table associated with the language type from multiple mapping relation tables stored in the memory of the electronic device, where the multiple mapping relation tables are mapping relation tables associated with multiple language types.
[0041] In another possible implementation, the apparatus further includes:
[0042] A second acquisition module, configured to, for each of the at least one application, acquire the historical name and the current name of the application;
[0043] A generation module, configured to generate a first mapping relation table corresponding to the application based on the historical name and the current name of the application;
[0044] A first storage module, configured to persist the first mapping relation table corresponding to the application to the storage space of the electronic device;
[0045] A second storage module, configured to, when the electronic device is started, store the first mapping relation table in the storage space into the memory.
[0046] In another possible implementation, the search module is configured to determine the package name of the installation package associated with the second name keyword based on the second name keyword; search for the target application among the applications installed in the electronic device based on the package name of the installation package.
[0047] In another possible implementation, the search module is configured to call a second mapping relation table in the memory of the electronic device, where the second mapping relation table includes the mapping relation between the current name of the application installed in the electronic device and the package name of the installation package; determine the package name of the installation package associated with the second name keyword from the second mapping relation table based on the second name keyword.
[0048] In another possible implementation, the search module is configured to search for the target application in a third-party search service based on the second name keyword; search for the target application in an application mall based on the second name keyword; search for the target application in a game mall based on the second name keyword.
[0049] In another possible implementation, the apparatus further includes:
[0050] A call module, configured to call a second mapping relation table in the memory of the electronic device, where the second mapping relation table includes the correspondence between the current name of the application installed in the electronic device and the package name of the installation package;
[0051] A second determination module, configured to determine that the name of the target application has changed when the package name of the installation package associated with the first name keyword does not exist in the second mapping table.
[0052] In another possible implementation, the apparatus further includes:
[0053] A display module, configured to display the target application and the current name of the target application when the target application is searched, where the current name includes the second name keyword, and the second name keyword is highlighted.
[0054] On the other hand, an electronic device is provided, where the electronic device includes a processor and a memory, and at least one program code is stored in the memory. The at least one program code is loaded and executed by the processor to implement the application search method described above.
[0055] On the other hand, a computer-readable storage medium is provided, where at least one program code is stored in the computer-readable storage medium. The at least one program code is loaded and executed by a processor to implement the application search method described above.
[0056] On the other hand, a computer program product is provided, where at least one program code is stored in the computer program product. The at least one program code is loaded and executed by a processor to implement the application search method described above.
[0057] The beneficial effects brought by the technical solution provided in the embodiments of this application are:
[0058] The embodiments of this application provide an application search method. When the name of the target application changes, according to the currently input first name keyword, the keyword corresponding to the current name of the target application is determined, and the target application is searched according to the keyword corresponding to the current name of the target application. In this way, when the application name of the target application changes, the target application can also be searched through the keyword of the historical name, without the user having to search by themselves, thereby improving the application search efficiency.
[0059] It should be understood that the above general description and the following detailed description are only exemplary and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a schematic diagram of an implementation environment of an application search method provided in an embodiment of this application;
[0061] Figure 2 is a flowchart of an application search method provided in an embodiment of this application;
[0062] Figure 3 is a flowchart of an application search method provided by an embodiment of the present application;
[0063] Figure 4 is a schematic diagram of searching for a target application among installed applications provided by an embodiment of the present application;
[0064] Figure 5 is a schematic diagram of searching for a target application in an application mall provided by an embodiment of the present application;
[0065] Figure 6 is a schematic diagram of searching for a target application in a third - party search service provided by an embodiment of the present application;
[0066] Figure 7 is a schematic structural diagram of an application search device provided by an embodiment of the present application;
[0067] Figure 8 is a structural block diagram of a terminal provided by an embodiment of the present application;
[0068] Figure 9 is a structural block diagram of a server provided by an embodiment of the present application. Detailed implementation manners
[0069] To make the technical solutions and advantages of the present application clearer, the following further describes the embodiments of the present application in detail.
[0070] The terms "first", "second", "third", "fourth", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non - exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.
[0071] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the name keywords, mapping relation tables, etc. involved in the present application are obtained under full authorization.
[0072] Figure 1FIG. is a schematic diagram of an implementation environment of an application search method provided by an embodiment of the present application. Refer to Figure 1 This implementation environment includes: an electronic device, which can be provided as terminal 101, or can be provided as terminal 101 and server 102. Terminal 101 and server 102 can be connected through a wireless or wired network. In the embodiments of the present application, the electronic device is not specifically limited.
[0073] If the electronic device is provided as terminal 101, the terminal 101 can search for a target application among the installed applications. For example, multiple applications are installed on the terminal 101, such as instant messaging applications, shopping applications, and other applications. The user can search for an instant messaging application among these applications based on the search function of the terminal 101.
[0074] If the electronic device is provided as terminal 101 and server 102, the terminal can not only search for a target application among the installed applications, but also search for a target application among multiple applications such as an application store, a third-party search service, and a game store. For example, multiple applications such as an application store, a third-party search service, and a game store are installed on the terminal 101, but the instant messaging application is not installed. The user can search for the instant messaging application in the application store. In this case, when the terminal 101 detects the user's search operation, it obtains the input name keyword, which is used to search for the instant messaging application. The terminal 101 sends the name keyword to the server 102. The server 102 searches for the application based on the name keyword, and then returns the search result to the terminal 101. If the server 102 searches for the application, the terminal 101 displays the application. If the server 102 does not search for the application, the terminal 101 displays a notification message indicating that the application has not been found.
[0075] In the embodiments of the present application, the electronic device can not only search for an application based on the name keyword corresponding to the current name of the application, but also search for an application based on the name keyword corresponding to the historical name of the application when the name of the application changes. In this way, even if the name of the application changes, the electronic device can search for the application without the user having to search manually, thereby improving the search efficiency of the application.
[0076] Terminal 101 is at least one of devices such as a mobile phone, a tablet computer, and a PC (Personal Computer) device. Server 102 can be at least one of a single server, a server cluster composed of multiple servers, a cloud server, a cloud computing platform, and a virtualization center.
[0077] Figure 2 FIG. is a flowchart of an application search method provided by an embodiment of the present application. Refer to Figure 2 This method includes:
[0078] Step 201: In response to a search operation, obtain a first name keyword that is input, where the first name keyword is used to search for a target application.
[0079] Step 202: When it is determined, based on the first name keyword, that the name of the target application has changed, determine, based on the first name keyword, a second name keyword associated with the first name keyword, where the second name keyword is a keyword corresponding to the current name of the target application.
[0080] Step 203: Search for the target application based on the second name keyword.
[0081] In a possible implementation manner, determining a second name keyword associated with the first name keyword based on the first name keyword includes:
[0082] Invoke a first mapping relation table in the memory of the electronic device, where the first mapping relation table includes mapping relations between the historical names and current names of at least one application;
[0083] Based on the first name keyword, determine a second name keyword associated with the first name keyword from the first mapping relation table.
[0084] In another possible implementation manner, invoking a first mapping relation table in the memory of the electronic device includes:
[0085] Determine the language type of the first name keyword;
[0086] Based on the language type, invoke, from multiple mapping relation tables stored in the memory of the electronic device, a first mapping relation table associated with the language type, where the multiple mapping relation tables are mapping relation tables associated with multiple language types.
[0087] In another possible implementation manner, the method further includes:
[0088] For each of at least one application, obtain the historical name and current name of the application;
[0089] Based on the historical name and current name of the application, generate a first mapping relation table corresponding to the application;
[0090] Persist the first mapping relation table corresponding to the application to the storage space of the electronic device;
[0091] When the electronic device is started, store the first mapping relation table in the storage space into the memory.
[0092] In another possible implementation manner, searching for the target application based on the second name keyword includes:
[0093] Determine the package name of the installation package associated with the second name keyword;
[0094] Search for the target application among the applications installed on the electronic device based on the package name of the installation package.
[0095] In another possible implementation, determining the package name of the installation package associated with the second name keyword based on the second name keyword includes:
[0096] Call the second mapping relationship table in the memory of the electronic device. The second mapping relationship table includes the mapping relationship between the current names of the applications installed on the electronic device and the package names of the installation packages;
[0097] Determine the package name of the installation package associated with the second name keyword from the second mapping relationship table based on the second name keyword.
[0098] In another possible implementation, searching for the target application based on the second name keyword includes at least one of the following implementation methods:
[0099] Search for the target application in the third-party search service based on the second name keyword;
[0100] Search for the target application in the application store based on the second name keyword;
[0101] Search for the target application in the game store based on the second name keyword.
[0102] In another possible implementation, the method further includes:
[0103] Call the second mapping relationship table in the memory of the electronic device. The second mapping relationship table includes the corresponding relationship between the current names of the applications installed on the electronic device and the package names of the installation packages;
[0104] In the case where the package name of the installation package associated with the first name keyword does not exist in the second mapping relationship table, determine that the name of the target application has changed.
[0105] In another possible implementation, the method further includes:
[0106] In the case where the target application is searched, display the target application and the current name of the target application. The current name includes the second name keyword, and the second name keyword is highlighted.
[0107] An embodiment of the present application provides an application search method. When the name of the target application changes, according to the first name keyword input currently, the keyword corresponding to the current name of the target application is determined, and the target application is searched according to the keyword corresponding to the current name of the target application. In this way, when the application name of the target application changes, the target application can also be searched through the keyword of the historical name, without the user having to search by themselves, thereby improving the application search efficiency.
[0108] Figure 3 FIG. 4 is a flowchart of an application search method provided by an embodiment of the present application, which is executed by an electronic device. This embodiment is only described by taking the target application as an installed application in the electronic device as an example. Refer to Figure 3 , the method includes:
[0109] Step 301: In response to a search operation, the electronic device obtains the first name keyword input.
[0110] The first name keyword is used to search for the target application, and the target application is an installed application on the electronic device.
[0111] In an embodiment of the present application, when the electronic device detects a pull-down operation on the main interface of the electronic device, it determines that a search operation is detected, displays a search interface, and obtains the first name keyword input in the search interface. Alternatively, when the electronic device detects a trigger operation for triggering a search entry on the negative first screen of the electronic device, it determines that a search operation is detected, displays a search interface, and obtains the first name keyword input in the search interface. Among them, the first name keyword may be the name of the application, a part of the name of the application, or the pinyin of the name of the application, and no specific limitation is made thereto.
[0112] The search interface may include multiple search options. The first search option is used to search for the target application from the installed applications, the second search option is used to search for the target application from the application store, and the third search option is used to search for applications through a third-party search service. The user can select the search scope of the target application by triggering the corresponding search option. For example, the user selects to search for the target application among the installed applications by triggering the first search option. Alternatively, the electronic device searches for the target application in sequence. For example, the electronic device first searches for the target application under the first search option, that is, searches for the target application among the installed applications.
[0113] Refer to Figure 4 , Figure 4 The "This device" option in Figure 4 is the first search option, and "AAAA" is the first name keyword. When the electronic device detects that the first search option is triggered, it searches for Application A among the installed applications. Continue to refer to Figure 4It can be seen that the search interface further includes a fourth search option "Comprehensive", which is used to search all files, information, applications, etc. related to the first name keyword from the electronic device. The electronic device can also search for Application A globally on the electronic device when the fourth search option is triggered.
[0114] In the embodiment of the present application, after the electronic device obtains the first name keyword, it can call the second mapping relationship table in the memory of the electronic device. When the package name of the installation package associated with the first name keyword does not exist in the second mapping relationship table, it is determined that the name of the target application has changed, and then step 302 is executed.
[0115] The second mapping relationship table includes the mapping relationship between the current name of the application installed in the electronic device and the package name of the installation package. The electronic device searches the second mapping relationship table based on the first name keyword to determine whether there is a name corresponding to the first name keyword in the second mapping relationship table. If there is a name corresponding to the first name keyword, it is determined that the package name of the installation package corresponding to the name is the package name of the installation package of the target application, and then the target application is searched based on the package name of the installation package of the target application. If there is no name corresponding to the first name keyword, it indicates that the first name keyword may be the keyword corresponding to the historical name of the application, and the name of the application has changed. In this case, the electronic device executes step 302.
[0116] For example, the first name keyword is "AAAA", the name of the target application is changed from "Application A" to "Application B", the name of the application has changed, and the corresponding keyword has also changed. In this case, the keyword of the historical name cannot be searched in the second mapping relationship table, that is, the first name keyword.
[0117] If the package name of the installation package associated with the first name keyword exists in the second mapping relationship table, it indicates that the first name keyword is the keyword corresponding to the current name of the target application. In this case, the electronic device directly determines the package name of the installation package associated with the first name keyword, and searches for the target application based on the package name of the installation package.
[0118] Among them, the process for the electronic device to establish the second mapping relationship table can be: for each application in at least one application, the electronic device obtains the current name and the package name of the installation package of the application, generates the second mapping relationship table corresponding to the application based on the current name and the package name of the installation package of the application, persists the second mapping relationship table corresponding to the application into the storage space of the electronic device, and when the electronic device is started, stores the second mapping relationship table in the storage space into the memory.
[0119] In this implementation, the electronic device includes: an installation package service program, which parses and installs the resource files (resources) when installing the application, obtains the current name of the application and the package name of the installation package from the AndroidManifest.xml (application manifest) of the resource file, and then generates a second mapping relationship table. The electronic device also includes: a background search program, which loads the second mapping relationship table and stores the second mapping relationship table in the storage space into the memory when the electronic device starts up.
[0120] It should be noted that the above is described by taking the mapping relationship between the current name of the installed application and the package name of the installation package included in the second mapping relationship table as an example. In the embodiments of the present application, the second mapping relationship table may also include the mapping relationship between the current name keyword of the installed application and the package name of the installation package, and the current name keyword is the name keyword corresponding to the current name of the installed application. In this case, the electronic device can search whether the first name keyword exists in the second mapping relationship table based on the first name keyword. If the first name keyword exists, directly determine the package name of the installation package corresponding to the first name keyword, and search for the target application based on the package name of the installation package. If the first name keyword does not exist, then execute step 302.
[0121] Step 302: When the electronic device determines that the name of the target application has changed based on the first name keyword, call the first mapping relationship table in the memory of the electronic device.
[0122] In the embodiments of the present application, if the second mapping relationship table includes the mapping relationship between the current name of the installed application and the package name of the installation package, the first mapping relationship table includes the mapping relationship between the historical name and the current name of at least one application.
[0123] In this implementation, when the electronic device calls the first mapping relationship table, it can first determine the language type of the first name keyword, and based on this language type, call the first mapping relationship table associated with this language type from the multiple mapping relationship tables stored in the memory of the electronic device. The multiple mapping relationship tables are mapping relationship tables associated with multiple language types.
[0124] The first mapping relationship table is established in advance by the electronic device. The process for the electronic device to establish the first mapping relationship table can be: for each application in at least one application, the electronic device obtains the historical name and the current name of the application; based on the historical name and the current name of the application, generates the first mapping relationship table corresponding to the application; persists the first mapping relationship table corresponding to the application into the storage space of the electronic device; when the electronic device starts up, stores the first mapping relationship table in the storage space into the memory.
[0125] In this implementation manner, both the historical name and the current name of the application are the historical name and the current name corresponding to the language type. The historical name of the application may include the names that have been used, or may include the historical Internet terms of the application, and the historical Internet terms are used to represent the historical names of the application on the Internet. Correspondingly, the current name of the application may include the names currently in use, or may include the current Internet terms of the application. Here, the historical name and the current name are not specifically limited.
[0126] After the electronic device generates the first mapping relationship table of the language type corresponding to at least one application, it persistently stores the first mapping relationship table in the storage space of the electronic device. When the electronic device finishes booting, that is, when the electronic device starts up, it stores the first mapping relationship table in the memory.
[0127] It should be noted that the process of the electronic device generating the mapping relationship table of other language types is similar to the process of generating the first mapping relationship table, and will not be elaborated here.
[0128] In the embodiments of the present application, the electronic device generates mapping relationship tables of different language types based on the language type, so that no matter what language type of name keyword the user inputs, the associated second name keyword can be determined.
[0129] If the second mapping relationship table includes the mapping relationship between the name keyword corresponding to the current name of the installed application and the package name of the installation package, the first mapping relationship table includes the mapping relationship between the historical name keyword and the current name keyword of at least one application. The historical name keyword is the name keyword corresponding to the historical name of the application, and the current name keyword is the name keyword corresponding to the current name of the application.
[0130] In this implementation manner, the process of the electronic device calling the first mapping relationship table is similar to the process of calling the first mapping relationship table in the above implementation manner, and the generation process of the first mapping relationship table is also similar to the process of generating the first mapping relationship table in the above implementation manner, and will not be elaborated here.
[0131] In the embodiments of the present application, if the first mapping relationship table includes the mapping relationship between the historical name keyword and the current name keyword of at least one application, the electronic device can directly search the first mapping relationship table based on the first name keyword, without having to perform the process of determining the historical name corresponding to the first name keyword, determining the current name corresponding to the historical name, and then determining the second name keyword based on the current name, which shortens the time and improves the search efficiency of subsequent applications to a certain extent.
[0132] Step 303: The electronic device determines the second name keyword associated with the first name keyword from the first mapping table based on the first name keyword.
[0133] The second name keyword is the keyword corresponding to the current name of the target application.
[0134] In the embodiments of the present application, if the first mapping table includes the mapping relationships between the historical names and current names of at least one application, the electronic device may first determine the historical name corresponding to the first name keyword based on the first name keyword, then determine the current name corresponding to the historical name from the first mapping table, and further determine the name keyword of the current name to obtain the second name keyword.
[0135] If the first mapping table includes the mapping relationships between the historical name keywords and current name keywords of at least one application, the electronic device may directly determine the second name keyword corresponding to the first name keyword from the first mapping table.
[0136] If there is a second name keyword associated with the first name keyword in the first mapping table, the electronic device executes Step 304.
[0137] If there is no second name keyword associated with the first name keyword in the first mapping table, the electronic device may search for the target application in the application store. The process may be: The electronic device calls the third mapping table and determines the second name keyword associated with the first name keyword from the third mapping table based on the first name keyword. The third mapping table includes the mapping relationships between the historical names and current names of at least one application in the application store, or the mapping relationships between the historical name keywords and current name keywords of at least one application in the application store, and no specific limitation is made thereto.
[0138] In this implementation manner, if there is a second name keyword associated with the first name keyword in the third mapping table, the electronic device searches for the target application in the application store based on the second name keyword.
[0139] If there is no second name keyword associated with the first name keyword in the third mapping table, the electronic device may search for the target application in the third-party search service. Alternatively, if there is no second name keyword associated with the first name keyword in the first mapping table, the electronic device may also directly search for the target application in the third-party search service. The process of the electronic device searching for the target application in the third-party search service may be:
[0140] The electronic device invokes the fourth mapping relation table to determine the second name keyword associated with the first name keyword. The fourth mapping relation table includes the mapping relation between the historical name and the current name of at least one application in the third-party search service, or the mapping relation between the historical name keyword and the current name keyword of at least one application in the third-party search service, which is not specifically limited herein.
[0141] If there is a second name keyword associated with the first name keyword in the fourth mapping relation table, the electronic device searches for the target application in the third-party search service based on the second name keyword.
[0142] Alternatively, if there is no second name keyword associated with the first name keyword in the first mapping relation table, the electronic device can also search for the target application in the game mall or other types of malls. The way the electronic device searches for the target application in the game mall or other types of malls is similar to the way it searches for the target application in the app mall, which will not be elaborated here.
[0143] In the embodiment of the present application, when the name of the target application changes, the electronic device converts the keyword corresponding to the historical name of the target application into the keyword corresponding to the current name of the target application through the first mapping relation table, and searches for the target application based on the keyword corresponding to the current name of the target application, without the user having to search by themselves, thereby improving the application search efficiency.
[0144] Step 304: The electronic device determines the package name of the installation package associated with the second name keyword based on the second name keyword.
[0145] The electronic device can invoke the second mapping relation table in the memory of the electronic device, search the second mapping relation table based on the second name keyword, and determine the package name of the installation package associated with the second name keyword from the second mapping table. The second mapping relation table includes the mapping relation between the current name of the applications installed in the electronic device and the package name of the installation package, or the mapping relation between the current name keyword of the installed applications and the package name of the installation package.
[0146] In the embodiment of the present application, the first mapping relation table and the second mapping relation table can also be combined into one mapping relation table, that is, the fifth mapping relation table. The fifth mapping relation table includes the mapping relation between the historical name, the current name, and the package name of each application installed in the electronic device, or the mapping relation between the historical name keyword, the current name keyword, and the package name of each application installed. In this case, after the electronic device obtains the first name keyword, it can directly invoke the fifth mapping relation table, search in the fifth mapping relation table, and directly determine the package name of the installation package associated with the first name keyword.
[0147] In this implementation manner, if the fifth mapping relationship table includes the mapping relationship between the historical name, current name, and package name of each application installed on the electronic device, the electronic device determines whether there is a name of the application corresponding to the first name keyword in the fifth mapping relationship table based on the first name keyword. If it exists, it directly determines the package name of the installation package corresponding to this name, and this name is the historical name or the current name.
[0148] If the fifth mapping relationship table includes the mapping relationship between the historical name keyword, current name keyword, and package name of each application installed, the electronic device directly determines whether there is a first name keyword in the fifth mapping relationship table. If it exists, it directly determines the package name of the installation package corresponding to the first name keyword.
[0149] Referring to Table 1, Table 1 takes the mapping relationship between the historical name, current name, and package name of each application installed on the electronic device in the fifth mapping relationship table as an example for illustration. It can be seen from Table 1 that for an application, the application can have names of different language types, but the package name of the installation package of this application remains unchanged, that is, the package name of an installation package corresponds to names of different language types.
[0150] Table 1 Mapping relationship between the name of the application and the package name of the installation package
[0151]
[0152] Step 305: The electronic device searches for the target application among the applications installed on the electronic device based on the package name of this installation package.
[0153] Different applications correspond to different package names of the installation package, that is, the package name of the installation package is used to uniquely identify the application. Therefore, the electronic device can search for the target application among the applications installed on the electronic device based on the package name of this installation package.
[0154] When the electronic device searches for the target application, it displays the target application and the current name of the target application on the search interface, and the current name includes the second name keyword, and the second name keyword is highlighted.
[0155] When the electronic device also displays the target application and its current name, it can display a prompt message, and this prompt message is used to remind the user that the name of the target application has changed. For example, this prompt message is "The name of Application A has changed, please pay attention", or "The name of Application A has changed from the first name to the second name, please pay attention". The time when the name of the target application has changed can also be displayed in this prompt message. For example, this prompt message is "The name of Application A has changed from the first name to the second name at the first time, please pay attention".
[0156] An embodiment of the present application provides an application search method. In the case where the name of a target application changes, according to a first name keyword input currently, a keyword corresponding to the current name of the target application is determined, and the target application is searched according to the keyword corresponding to the current name of the target application. In this way, when the application name of the target application changes, the target application can also be searched through the keyword of the historical name, without the user having to search by themselves, thereby improving the application search efficiency. This method can solve the problem that when the user encounters an application with an updated name and inputs the keyword of the historical name, the application cannot be searched.
[0157] It should be noted that the above embodiment is described by taking the electronic device searching for the target application among the installed applications as an example. If the target application is not searched among the installed applications, the electronic device can search for the target application in the application mall, the third-party search service or the game mall. In the embodiment of the present application, the electronic device can also directly search for the target application in the application mall, the third-party search service or the game mall.
[0158] If the electronic device directly searches for the target application in the application mall, the process can be as follows: when the electronic device detects a trigger operation for the second search option being triggered, or detects a trigger operation for the search option in the main interface of the application mall being triggered, based on the first name keyword, it is determined whether the name of the target application has changed. In the case where it is determined that the application name of the target application has changed, a second name keyword associated with the first name keyword is determined, and the target application is searched in the application mall based on the second name keyword.
[0159] In this implementation manner, the electronic device can determine whether the name of the target application has changed based on the sixth mapping relationship table. The sixth mapping relationship table includes the mapping relationship between the current name of at least one application in the application mall and the package name of the installation package, or the mapping relationship between the current name keyword of at least one application in the application mall and the package name of the installation package. If the package name of the installation package associated with the first name keyword does not exist in the sixth mapping relationship table, the electronic device determines that the name of the target application has changed.
[0160] In the case where the electronic device determines that the application name of the target application has changed, the process of determining the second name keyword associated with the first name keyword is the same as the process in step 303 where the electronic device calls the third mapping relationship table to determine the second name keyword associated with the first name keyword, and will not be elaborated here.
[0161] The electronic device calls the sixth mapping relation table based on the second name keyword, determines the package name of the installation package associated with the second name keyword, and searches for the target application among at least one application in the application market based on the package name of the installation package. When the electronic device searches for the target application, it can also determine the application type of the target application based on the second name keyword, search for at least one application of this application type in the application market, and display the target application and the at least one application. If the target application is not found, the at least one application can be directly displayed.
[0162] See Figure 5 , Figure 5 The "application" in it is the second search option. When the electronic device detects that this search option is triggered, it searches for Application A in the application market. When the electronic device searches for Application A in the application market, it can also search for applications related to Application A. For example, applications of the same type as Application A, such as Application B and Application C, which are displayed together when Application A is displayed.
[0163] If the electronic device directly searches for the target application in the third-party search service, the process can be as follows: When the electronic device detects the triggering operation of the third search option being triggered, or detects the triggering operation of the search option in the main interface of the third-party search service, it determines whether the name of the target application has changed based on the first name keyword. In the case of determining that the application name of the target application has changed, it determines the second name keyword associated with the first name keyword, and searches for the target application in the third-party search service based on the second name keyword.
[0164] In this implementation manner, the electronic device can determine whether the name of the target application has changed based on the seventh mapping relation table. The seventh mapping relation table includes the mapping relation between the current name of at least one application in the third-party search service and the package name of the installation package. If the package name of the installation package associated with the first name keyword does not exist in the seventh mapping relation table, the electronic device determines that the name of the target application has changed.
[0165] In the case of the electronic device determining that the application name of the target application has changed, the process of determining the second name keyword associated with the first name keyword is the same as the process in step 303 where the electronic device calls the fourth mapping relation table to determine the second name keyword associated with the first name keyword, and will not be elaborated here.
[0166] See Figure 6 , Figure 6 The "web page" in it is the third search option. When the electronic device detects that this search option is triggered, it searches for Application A in the third-party search service.
[0167] If the electronic device directly searches for the target application in the game mall, the process may be as follows: When the electronic device detects a trigger operation that triggers the search entry in the main interface of the game mall, it determines whether the name of the target application has changed based on the first name keyword. In the case where it is determined that the application name of the target application has changed, it determines the second name keyword associated with the first name keyword, and searches for the target application in the game mall based on the second name keyword.
[0168] In this implementation manner, the electronic device can determine whether the name of the target application has changed based on the eighth mapping relationship table. The eighth mapping relationship table includes the mapping relationship between the current name of at least one application in the game mall and the package name of the installation package. If the package name of the installation package associated with the first name keyword does not exist in the eighth mapping relationship table, the electronic device determines that the name of the target application has changed.
[0169] In the case where the application name of the target application has changed, the electronic device can determine the second name keyword associated with the first name keyword based on the ninth mapping relationship table. The ninth mapping relationship table includes the mapping relationship between the current name and the historical name of at least one application in the game mall. If the second name keyword associated with the first name keyword exists in the ninth mapping relationship table, the electronic device searches for the target application in the game mall based on the second name keyword.
[0170] In summary, when the electronic device searches for the target application, in the case where the name of the target application has changed, the target application can still be searched through the keyword of the historical name of the target application. No matter what name the application is changed to, there is no need for the user to search by themselves, thus improving the application search efficiency.
[0171] Figure 7 It is a schematic structural diagram of an application search device provided by an embodiment of the present application. Refer to Figure 7 and the device includes:
[0172] The first acquisition module 701 is configured to acquire the input first name keyword in response to a search operation. The first name keyword is used to search for the target application;
[0173] The first determination module 702 is configured to, in the case where it is determined based on the first name keyword that the name of the target application has changed, determine the second name keyword associated with the first name keyword based on the first name keyword. The second name keyword is the keyword corresponding to the current name of the target application;
[0174] The search module 703 is configured to search for the target application based on the second name keyword.
[0175] In a possible implementation, the first determination module 702 is configured to call a first mapping relationship table in the memory of the electronic device. The first mapping relationship table includes the mapping relationships between the historical names and the current names of at least one application; and based on the first name keyword, determine a second name keyword associated with the first name keyword from the first mapping relationship table.
[0176] In another possible implementation, the first determination module 702 is configured to determine the language type of the first name keyword; and based on the language type, call a first mapping relationship table associated with the language type from multiple mapping relationship tables stored in the memory of the electronic device. The multiple mapping relationship tables are mapping relationship tables associated with multiple language types.
[0177] In another possible implementation, the apparatus further includes:
[0178] A second acquisition module, configured to, for each of at least one application, acquire the historical name and the current name of the application;
[0179] A generation module, configured to generate a first mapping relationship table corresponding to the application based on the historical name and the current name of the application;
[0180] A first storage module, configured to persist the first mapping relationship table corresponding to the application to the storage space of the electronic device;
[0181] A second storage module, configured to, when the electronic device is started, store the first mapping relationship table in the storage space into the memory.
[0182] In another possible implementation, the search module 703 is configured to, based on the second name keyword, determine the package name of the installation package associated with the second name keyword; and based on the package name of the installation package, search for a target application among the applications installed in the electronic device.
[0183] In another possible implementation, the search module 703 is configured to call a second mapping relationship table in the memory of the electronic device. The second mapping relationship table includes the mapping relationships between the current names of the applications installed in the electronic device and the package names of the installation packages; and based on the second name keyword, determine the package name of the installation package associated with the second name keyword from the second mapping relationship table.
[0184] In another possible implementation, the search module 703 is configured to search for a target application in a third-party search service based on the second name keyword; search for a target application in an application store based on the second name keyword; and search for a target application in a game store based on the second name keyword.
[0185] In another possible implementation, the apparatus further includes:
[0186] A calling module, configured to call a second mapping relation table in the memory of an electronic device, where the second mapping relation table includes the corresponding relationship between the current names of the applications installed in the electronic device and the package names of the installation packages;
[0187] A second determining module, configured to determine that the name of the target application has changed when the package name of the installation package associated with the first name keyword does not exist in the second mapping relation table.
[0188] In another possible implementation manner, the apparatus further includes:
[0189] A display module, configured to display the target application and the current name of the target application when the target application is searched, where the current name includes a second name keyword and the second name keyword is highlighted.
[0190] An embodiment of the present application provides an application search apparatus. When the name of the target application changes, the apparatus determines the keyword corresponding to the current name of the target application according to the currently input first name keyword, and searches for the target application according to the keyword corresponding to the current name of the target application. In this way, when the application name of the target application changes, the target application can also be searched through the keyword of the historical name, without the user having to search by themselves, thereby improving the application search efficiency.
[0191] If the electronic device is provided as a terminal, please refer to Figure 8 , which shows a structural block diagram of a terminal 800 shown in an exemplary embodiment of the present application. The terminal 800 may be a device such as a smart phone or a tablet computer that has the function of controlling other devices. The terminal 800 in the present application may include one or more of the following components: a processor 810 and a memory 820.
[0192] The processor 810 may include one or more processing cores. The processor 810 connects various parts within the entire terminal 800 through various interfaces and lines. By running or executing program code, programs, code sets, or program code sets stored in the memory 820, as well as by calling data stored in the memory 820, it performs various functions of the terminal 800 and processes data. Optionally, the processor 810 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 810 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 810 and may be implemented separately by a single chip.
[0193] The memory 820 may include random access memory (RAM) and may also include read-only memory (ROM). Optionally, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 can be used to store program code, programs, code, code sets, or program code sets. The memory 820 may include a program storage area and a data storage area. Among them, the program storage area may store program code for implementing the operating system, program code for at least one function (such as touch function, sound playback function, image playback function, etc.), program code for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 800 (such as audio data, phone book, etc.).
[0194] In addition, those skilled in the art can understand that the structure of the terminal 800 shown in the above drawings does not limit the terminal 800. The terminal 800 may include more or fewer components than shown in the drawings, or combine certain components, or have different component arrangements. For example, the terminal 800 may also include components such as a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (Wi-Fi) module, a power supply, a Bluetooth module, etc., which will not be elaborated here.
[0195] If the electronic device is provided as a terminal and a server, refer to Figure 9 , Figure 9 FIG. is a schematic structural diagram of a server provided by an embodiment of the present application. The server 900 may vary greatly due to different configurations or performances, and may include a processor (central processing units, CPU) 901 and a memory 902. Among them, at least one program code is stored in the memory 602, and the at least one program code is loaded and executed by the processor 901 to implement the methods provided by the above various method embodiments. Of course, the server 900 may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input / output. The server 900 may also include other components for implementing device functions, which will not be elaborated here.
[0196] In an exemplary embodiment, a computer-readable medium is further provided. The computer-readable medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the application search method in the above embodiment.
[0197] In an exemplary embodiment, a computer program product is further provided. The computer program product stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the application search method in the above embodiment.
[0198] In some embodiments, the computer program involved in the embodiments of the present application may be deployed to be executed on a computer device, or on multiple computer devices located at one place. Or, on multiple computer devices distributed at multiple locations and interconnected through a communication network. The multiple computer devices distributed at multiple locations and interconnected through a communication network may form a blockchain system.
[0199] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk, or an optical disc, etc.
[0200] The above description is only for the convenience of those skilled in the art to understand the technical solution of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. An application search method, characterized in that, the method includes: In response to a search operation, obtain a first name keyword that is input, where the first name keyword is used to search for a target application; When it is determined, based on the first name keyword, that the name of the target application has changed, call a first mapping table in the memory of the electronic device, where the first mapping table includes mapping relationships between the historical names and current names of at least one application; Based on the first name keyword, determine the historical name corresponding to the first name keyword from the first mapping table; based on the historical name, determine the current name corresponding to the historical name from the first mapping table; determine the name keyword of the current name as the second name keyword associated with the first name keyword, where the second name keyword is the keyword corresponding to the current name of the target application; Search for the target application based on the second name keyword.
2. The method according to claim 1, characterized in that, the calling of the first mapping table in the memory of the electronic device includes: Determine the language type of the first name keyword; Based on the language type, call the first mapping table associated with the language type from multiple mapping tables stored in the memory of the electronic device, where the multiple mapping tables are mapping tables associated with multiple language types.
3. The method according to claim 1, characterized in that, the method further includes: For each of the at least one application, obtain the historical name and current name of the application; Based on the historical name and current name of the application, generate a first mapping table corresponding to the application; Persist the first mapping table corresponding to the application to the storage space of the electronic device; When the electronic device is started, store the first mapping table in the storage space in the memory.
4. The method according to claim 1, characterized in that, the searching for the target application based on the second name keyword includes: Based on the second name keyword, determine the package name of the installation package associated with the second name keyword; Based on the package name of the installation package, search for the target application among the applications installed on the electronic device.
5. The method according to claim 4, characterized in that, the determining of the package name of the installation package associated with the second name keyword based on the second name keyword includes: Call a second mapping table in the memory of the electronic device, where the second mapping table includes mapping relationships between the current names of the applications installed on the electronic device and the package names of the installation packages; Based on the second name keyword, determine the package name of the installation package associated with the second name keyword from the second mapping table.
6. The method according to claim 1, characterized in that, the searching for the target application based on the second name keyword includes at least one of the following implementation manners: Search for the target application in a third-party search service based on the second name keyword; Search for the target application in the application store based on the second name keyword; Search for the target application in the game store based on the second name keyword.
7. The method according to claim 1, wherein, the method further includes: invoking a second mapping relationship table in the memory of the electronic device, where the second mapping relationship table includes the corresponding relationship between the current name of the applications installed in the electronic device and the package name of the installation package; in the case that the package name of the installation package associated with the first name keyword does not exist in the second mapping relationship table, determining that the name of the target application has changed.
8. The method according to claim 1, wherein, the method further includes: when the target application is searched, display the target application and the current name of the target application, where the current name includes the second name keyword and the second name keyword is highlighted.
9. An application search device, wherein, it includes: a first acquisition module, configured to acquire an input first name keyword in response to a search operation, where the first name keyword is used to search for a target application; a first determination module, configured to, in the case of determining that the name of the target application has changed based on the first name keyword, invoke a first mapping relationship table in the memory of the electronic device, where the first mapping relationship table includes the mapping relationship between the historical name and the current name of at least one application; determine the historical name corresponding to the first name keyword from the first mapping relationship table based on the first name keyword; determine the current name corresponding to the historical name from the first mapping relationship table based on the historical name; determine the name keyword of the current name as the second name keyword associated with the first name keyword, where the second name keyword is the keyword corresponding to the current name of the target application; a search module, configured to search for the target application based on the second name keyword.
10. An electronic device, wherein, the electronic device includes a processor and a memory, and at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the application search method according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein, at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to implement the application search method according to any one of claims 1 to 8.
12. A computer program product, wherein, at least one program code is stored in the computer program product, and the at least one program code is loaded and executed by a processor to implement the application search method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Promotion information pushing method and device
CN105808685A
Game application search method and device, electronic equipment and computer readable storage medium
CN108038193A