Application content search method and electronic device
By establishing local index files in electronic devices and using search servers to create online index files, efficient search of third-party application content in electronic devices is achieved, and the problems of long response time and high access cost are solved, and search efficiency and cross-border The convenience of application search.
Patent Information
- Application Number
- CN202310009708.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2043-01-04
AI Technical Summary
In the prior art, electronic devices have a long response time and low efficiency when searching for content internal to third-party applications, and the search open platform access cost of different device manufacturers is high.
Create a local index file in an electronic device, find and display application content related to search instructions through the local index file, without the need to connect to the Internet, and create an online index file in combination with the search server to provide richer search results.
Reduces search response time, improves search efficiency, and reduces access costs for cross-application search in different vendor devices.
Smart Images

Figure CN117130981B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to an application content search method and an electronic device. Background Art
[0002] Installing different applications (APPs) in electronic devices can provide different services to users. As the number of installed applications increases, the time it takes for users to find the services they need in electronic devices is also increasing. In order to solve this problem, some electronic devices are equipped with local search modules. Users can use the local search module to search for navigation, settings, activity information, various information, and online website maps in installed applications.
[0003] However, in the related art, the content inside third-party applications can usually only rely on the search open platform, which belongs to the cloud side interface. When a user searches for content inside a third-party application in an electronic device, the electronic device needs to be connected to the Internet to send a request to the search open platform and receive the application content returned from the search open platform. The search response time is long and the search efficiency is low. Summary of the invention
[0004] The embodiments of the present application provide an application content search method and an electronic device, which are used to solve the problems of long response time and low search efficiency in searching for content inside a third-party application in the related art.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a method for searching application content is provided, the method being applied to an electronic device, the method comprising:
[0007] Receive a search instruction input by a user; in response to the search instruction, search for a first content index file corresponding to the search instruction in a local index file stored in the electronic device; the local index file includes one or more content index files corresponding to at least one application; based on the first content index file corresponding to the search instruction, display the application content corresponding to the search instruction.
[0008] In this solution, a local index file is stored locally on the electronic device, wherein the local index file includes one or more content index files corresponding to the application. When a user searches for content in the electronic device, the content index file related to the search instruction is searched in the local index file. Then, based on the found content index file, the application content related to the search instruction is displayed. In this way, when the electronic device searches for content inside the application, it can use the content index file stored locally on the electronic device to implement cross-application search. There is no need for the electronic device to be connected to the Internet, and local search can be used to search for content inside third-party applications, which can reduce the search response time and improve search efficiency.
[0009] In some possible implementations, after receiving the search instruction input by the user, the electronic device may also forward the search instruction to the search server; that is, the electronic device may search for the corresponding content index file with the help of the online index file stored in the search server. Afterwards, the electronic device may receive the second content index file corresponding to the search instruction found by the search server from the online index file. Then, the electronic device displays the application content corresponding to the search instruction based on the second content index file. In this way, richer search results can be provided for the user when searching in the electronic device.
[0010] In some possible implementations, the method further includes: in response to a user triggering operation on a target application content in the application content corresponding to the search instruction, jumping to display an application page corresponding to the target application content. In this solution, the user can select any trigger to view detailed information of the application content found by the electronic device and related to the search instruction.
[0011] In some possible implementations, the method further includes: after the electronic device installs the first application, generating, by the first application, a content index file corresponding to the first application in a preset storage area of the electronic device.
[0012] In some possible implementations, the method further includes: after the electronic device updates the second application, updating the content index file corresponding to the second application stored in a preset storage area of the electronic device through the updated second application.
[0013] In this solution, the electronic device can store the content index file corresponding to the installed and updated application in the preset storage area of the electronic device through the installed or updated application. In this way, when the user performs a local search in the electronic device, the electronic device can subsequently generate a local index file based on the content index file. Afterwards, the electronic device can perform a local search for the application content of this part of the application based on the local index file in response to the user's search instruction.
[0014] In some possible implementations, the electronic device includes a local search module. In this implementation, the method further includes: the local search module obtains a content index file from a preset storage area at a preset time period, and updates the local index file based on the content index file. In this way, it can be ensured that when the electronic device searches, it searches for the latest content index file, and the electronic device displays the latest application content in response to the search instruction.
[0015] In some possible implementations, after the local search module obtains the content index file from the preset storage area every preset time period, before updating the local index file based on the content index file, the method further includes: the local search module reads the content identifier corresponding to the content index file. In this implementation, updating the local index file based on the content index file includes: if the content identifier corresponding to the third content index file is a local search identifier, the local search module updates the local index file based on the third content index file.
[0016] In this solution, the content index file generated by the application in the preset storage area is provided with a content identifier, and the content index file can be divided into two types according to the content identifier, namely, a local search type and an online search type. When the local search module obtains the content index file from the preset storage area, the index is constructed according to different content identifiers. The local search module specifically updates the local index file according to the content index file whose content identifier is the local search identifier.
[0017] In some other possible implementations, the method further includes: if the content identifier corresponding to the fourth content index file is an online search identifier, the local search module sends the fourth content index file to the search server; the fourth content index file is used to instruct the search server to create an online index file according to the fourth content index file.
[0018] In this solution, when the local search module determines that the content identifier of the content index file is an online search identifier, the local search module sends the content index file to the search server, and the search server creates an online index file based on the content index file. In this way, for applications, different index files can be created locally on the electronic device and on the search server, respectively. When the user searches on the electronic device, more abundant search results can be provided to the user.
[0019] In some possible implementations, the preset storage area includes: a system public storage area of the electronic device or a storage area corresponding to a local search module of the electronic device. In this solution, the application can store the content index file in the system public storage area of the electronic device, or directly store the content index file in the storage area of the local search module.
[0020] In some possible implementations, the content index file is generated or updated by the target application based on a preset software development kit SDK in the target application after the electronic device installs or updates the target application corresponding to the content index file; wherein the preset SDK defines the preset specifications of the content index file. In this solution, the application of the electronic device predefines the specifications of the content index file through the preset SDK, so that different applications can store the format of the content index file in the electronic device according to the preset specifications. In this way, when the electronic device displays the application content according to the content index file, the application content from different applications can be displayed according to the preset specifications.
[0021] In some possible implementations, the content index file is generated or updated by the target application based on a preset document after the electronic device installs or updates the target application corresponding to the content index file; wherein the preset document defines the preset specifications of the index file. In this solution, the application of the electronic device generates or updates the content index file according to the preset document, so that different applications can store the format of the content index file in the electronic device according to the preset specifications. In this way, when the electronic device displays the application content according to the content index file, the application content from different applications can be displayed according to the preset specifications.
[0022] In some possible implementations, the content index file corresponding to the application includes at least one of the following: a cover image, a title, an application logo, an icon, and a jump link.
[0023] In a second aspect, an electronic device is provided, comprising: a processor and a memory; the memory is used to store computer execution instructions, and when the electronic device is running, the processor executes the computer execution instructions stored in the memory to enable the electronic device to perform an application content search method as described in any one of the first aspects above.
[0024] In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed, the computer can execute any one of the application content search methods in the first aspect.
[0025] In a fourth aspect, a computer program product including instructions is provided, which, when executed on an electronic device, enables the electronic device to execute any one of the application content search methods in the first aspect.
[0026] In a fifth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
[0027] Among them, the technical effects brought about by any design method in the second to fifth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of a display interface of an electronic device provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0030] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0031] Figure 4 A flowchart of an application content search method provided in an embodiment of the present application;
[0032] Figure 5 A flowchart of an application content search method provided in an embodiment of the present application;
[0033] Fig. 6A A schematic diagram of a mobile phone 1 storing a content index file in a system public storage area through an SDK provided in an embodiment of the present application;
[0034] Figure 6B A schematic diagram of a mobile phone 1 storing content index files in a storage area of a local search module through an SDK provided in an embodiment of the present application;
[0035] Figure 6C A schematic diagram of a mobile phone 1 storing content index files in a system public storage area through a preset document provided in an embodiment of the present application;
[0036] Fig. 7A An application scenario diagram of an application content search method provided in an embodiment of the present application;
[0037] Figure 7B A flowchart of an application content search method provided in an embodiment of the present application;
[0038] Figure 8A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] Installing different applications in electronic devices can provide different services to users. As the number of installed applications increases, the time it takes for users to find the services they need in electronic devices is also increasing. In order to solve this problem, some electronic devices are equipped with local search modules. Users can use the local search module to search for navigation, settings, activity information, various information, and online website maps in the applications installed in the electronic device.
[0040] like Figure 1 The interface 10 of the mobile phone 1 shown in the figure has a local search area 11. The user enters the search keyword in the local search area 11 to enter the interface 20. The interface 20 will display the application content 21, application content 22 and application content 23 in the mobile phone 1. Among them, the application content 21 and the application content 23 are from the same application A, and the application 22 is from the application B. When the user triggers one of the application contents 22, the mobile phone 1 will enter the application interface 30 corresponding to the application content 22, that is, the application interface of application B.
[0041] The content displayed in the interface 20 includes the content inside the third-party application, such as the navigation, settings, activity information, various information and online website maps of the application. In the related art, when performing a local search in the mobile phone 1, the mobile phone 1 needs to send a search request to the search server in response to the user's search instruction, and the search server calls the interface of the corresponding search open platform to crawl the application content corresponding to the search request, and then the search server returns it to the mobile phone 1. In other words, if the user wants to search for content inside a third-party application in the mobile phone 1, he can usually only rely on the search open platform provided by the application to provide an interface, which belongs to the interface provided by the cloud side server. When the user searches for content inside a third-party application in an electronic device, the electronic device needs to be connected to the network to send a request to the search open platform and receive the application content returned from the search open platform. The search response time is long and the search efficiency is low. In addition, electronic devices provided by different device manufacturers usually correspond to different search open platforms. For application manufacturers, if the same application needs to implement cross-application search in electronic devices provided by different device manufacturers, it is necessary to access multiple search open platforms, and the access cost is high.
[0042] Based on this, an embodiment of the present application provides an application content search method, which can be applied to an electronic device. In an embodiment of the present application, a local index file is stored in the electronic device, and one or more content index files corresponding to at least one application are stored in the local index file. When a user searches in an electronic device, the electronic device searches for a content index file related to the user's search instruction in the local index file. Then the electronic device can display the application content corresponding to this search instruction based on the found content index file. In this way, when the electronic device performs a cross-application search for content inside an application, it can be achieved with the help of the content index file stored locally in the electronic device. Without the need for the electronic device to be connected to the Internet, a local search can be performed to find content inside a third-party application, which can reduce the search response time and improve the search efficiency. Moreover, for application manufacturers, when this effect is achieved in electronic devices of different manufacturers, there is no need to access different search open platforms, thereby reducing the access cost of implementing cross-application search in electronic devices of different manufacturers.
[0043] In an embodiment of the present application, the electronic device is provided with a local search module. In some embodiments, the local search module may include a search submodule and a display submodule. The search submodule is used to search for corresponding content index files according to the user's search instructions, and to update the local index files regularly. The display submodule is used to display corresponding application content according to the content index files found by the search submodule.
[0044] For example, the electronic device may be a mobile phone (such as Figure 1 ), tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), wearable devices, augmented reality (AR) and virtual reality (VR) devices, media players, televisions, and other devices. The present application embodiment does not impose any special restrictions on the specific form of the device. In the present application embodiment, the structure of the electronic device can be as follows: Figure 2 As shown, it will be described in detail in the following embodiments.
[0045] like Figure 2 FIG. 1 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application. For example, the electronic device 100 may be Figure 1The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, and the like.
[0046] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0047] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. For example, the processor 110 is used to execute the network acceleration method in the embodiment of the present application.
[0048] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0049] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0050] The USB interface 130 is an interface that complies with USB standard specifications, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device.
[0051] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0052] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and an application required for at least one function (such as a sound playback function, an image playback function, etc.).
[0053] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0054] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
[0055] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0056] In some other embodiments, the power management module 141 may also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
[0057] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0058] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0059] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0060] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0061] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0062] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170 and the application processor.
[0063] The audio module 170 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0064] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.
[0065] The touch sensor 180B is also called a "touch panel". The touch sensor 180B can be arranged on the display screen 194, and the touch sensor 180B and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180B is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180B can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0066] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0067] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0068] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0069] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0070] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0071] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting or removing the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
[0072] The application content search methods in the following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0073] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100. Figure 3 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0074] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime (Android runtime) and system library, and the kernel layer.
[0075] The application layer can include a series of application packages.
[0076] like Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, etc.
[0077] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0078] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0079] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0080] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0081] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0082] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0083] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0084] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0085] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0086] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0087] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0088] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0089] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0090] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0091] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0092] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0093] A 2D graphics engine is a drawing engine for 2D drawings.
[0094] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0095] The embodiment of the present application provides an application content search method, which can be applied to the search scenario of an electronic device, and can realize cross-application search for the content inside the third-party application of the electronic device and display the search results without accessing the search open platform. This improves the efficiency of users finding the content of third-party applications in electronic devices. The application content search method provided by the embodiment of the present application will be described in detail below in combination with the embodiments and drawings.
[0096] Please refer to Figure 4 , is a flow chart of an application content search method provided in an embodiment of the present application. In this embodiment, the application content search method includes S401-S404, wherein:
[0097] S401. Mobile phone 1 receives a search instruction input by a user.
[0098] In some embodiments, the user Figure 1 The process of inputting a search keyword in the search area 11 shown is the process of the corresponding user sending a search instruction to the mobile phone 1. In this embodiment, the above S401 can specifically be that when the mobile phone 1 detects the input operation of the user in the search area, the mobile phone 1 determines that the user's search instruction is received. The search area is used to receive the search keyword input by the user and search for some information related to the search keyword in the mobile phone 1.
[0099] In some embodiments, before the above S401, the mobile phone 1 needs to display the search area. Exemplarily, the mobile phone 1 can display the search area in response to the user's operation. For example, when the mobile phone 1 displays the main interface, the user slides the interface to the right (or left) to make the mobile phone 1 enter the search interface and display the search area.
[0100] In some embodiments, after S401, the mobile phone 1 may determine the search keyword input by the user according to the search instruction. Exemplarily, the keyword received by the mobile phone 1 as input by the user includes "Beihai".
[0101] In some embodiments, the search keywords entered by the user in the search area may be incorrect. In this case, the mobile phone 1 can perform intelligent error correction on the received search keywords and then search for the corresponding content index file based on the corrected search keywords.
[0102] In other embodiments, the search keyword input by the user may not be completely the same as the keyword included in the content index file, but may be a synonym. In this case, after obtaining the search keyword, the mobile phone 1 may perform synonym processing on the search keyword. Then, based on the search keyword obtained after the synonym processing and the words that are synonyms with the search keyword, the corresponding content index file is searched.
[0103] When the user wants to search for application-related content in the mobile phone 1, the user can enter a search keyword in the mobile phone 1 to trigger a search instruction. After receiving the search instruction, the mobile phone 1 can search for application content corresponding to the search keyword.
[0104] S402 . In response to the search instruction, the mobile phone 1 searches for a first content index file corresponding to the search instruction in the local index files stored in the mobile phone 1 .
[0105] The local index file includes one or more content index files corresponding to at least one application. For example, one application is installed in the mobile phone 1, and the application includes one or more content index files. Alternatively, two or more applications are installed in the mobile phone 1, and each application includes one or more content index files. One content index file can correspond to one application content.
[0106] In some embodiments, the content index file corresponding to the application can be used to indicate that the application authorizes the local search module of the mobile phone 1 to search and display the application content of the application. After the application writes the content index file in the mobile phone 1, it means that the user is allowed to search and display the application content of the application through the local search module of the mobile phone 1.
[0107] In some embodiments, the local index file is stored in a storage area of the local search module. In some embodiments, the local index file is generated based on the content index file of each application. The specific process of generating the local index file based on the content index file of each application will be described in detail in the following embodiments and will not be repeated here.
[0108] The content index file corresponding to the application may be named appmaps, for example, the content index file corresponding to application A may be named appmaps-application A. In other embodiments, the content index file corresponding to the application may also be named other names, such as authorization file, etc.
[0109] In other embodiments, the content index file corresponding to the application can also be used to indicate the application content. Exemplarily, the content index file corresponding to the application includes at least one of the following: a cover image, a title, an application logo, an application icon, and a jump link. Mobile phone 1 can determine the style of the application content to be displayed based on the cover image, title, application logo, and application icon included in the content index file corresponding to the application. After mobile phone 1 displays the application content, the user can trigger the application content to view the specific information of the application content. Therefore, the application content displayed by mobile phone 1 is also correspondingly provided with a jump link. When the user triggers the application content, mobile phone 1 will jump to display the application page corresponding to the jump link to display the specific information of the application content.
[0110] Further, in some embodiments, the content index file corresponding to the application may specifically include the cover image, title, application identifier, and specific information of the application icon. The content index file corresponding to the application may specifically include the image identifier, image size, image position, image color, etc. of the cover image. The content index file corresponding to the application may specifically include the content of the title, the position of the title, the font color and size of the title. The content index file corresponding to the application may specifically include the identification content, identification size, identification position, etc. of the application identifier; illustratively, the application identifier may specifically refer to the application name. The content index file corresponding to the application may specifically include the icon content, size, color, and position, etc. of the application icon. In this way, when the mobile phone 1 finds the first content index file corresponding to the search instruction, it can determine the display style of the application content corresponding to this content index file according to the specific information of the cover image, title, application identifier, and application icon in the first content index file.
[0111] The specific specifications of the content index file corresponding to the above application can be formulated by the manufacturer of the mobile phone 1. The specifications of the content index file are used to indicate the rules that the application needs to follow when storing the content index file in the mobile phone 1. Exemplarily, the specifications of the content index file may include the image logo, image size, image position, image color of the above cover image, the content of the title, the position of the title, the font color and size of the title, the logo content, logo size, logo position of the application logo, and the icon content, size, color and position of the application icon, etc. The specific rules of the content index file.
[0112] In some embodiments, the manufacturer of the mobile phone 1 can formulate the specifications of the content index file in the form of a document, or can formulate the specifications of the content index file in the form of a software development kit (SDK). After the manufacturer of the mobile phone 1 formulates the specifications of the content index file in the form of a preset document or SDK, the specifications of the content index file can be sent to the application manufacturer (i.e., the server corresponding to the application). The application manufacturer instructs the application to generate and store the content index file in the mobile phone 1 according to the preset document or SDK. Among them, the specific process of the application generating and storing the index file in the mobile phone 1 will be described in detail in the following embodiments and will not be repeated here.
[0113] In some embodiments, the title, cover image, application logo, etc. contained in the content index file corresponding to the application may contain characters. In the above S402, when the mobile phone 1 searches for the corresponding content index file based on the search instruction, it can search the content index file in the local index file by the search keyword corresponding to the search instruction. For example, the search keyword entered by the user when triggering the search instruction is "Beihai". In response to this search instruction, the mobile phone 1 searches in each content index file whether the search keyword "Beihai" is contained. If so, the content index file containing this search keyword is determined as the first content index file corresponding to the search instruction. Taking the local index file including 10 content index files as an example, when the mobile phone 1 receives the search instruction and determines that the search keyword corresponding to the search instruction is "Beihai", the mobile phone 1 searches in the 10 content index files in the local index file. If it is found that 3 of the content index files contain the search keyword "Beihai", then the 3 content index files can be used as the first content index files corresponding to the search instruction. Subsequently, the mobile phone 1 can display the application content corresponding to these 3 first content index files. The other seven content index files are determined to be content index files irrelevant to the search instruction, and the mobile phone 1 may not display the corresponding application content.
[0114] After the mobile phone 1 finds the first content index file corresponding to the search instruction, the mobile phone 1 can display the corresponding application content according to the first content index file.
[0115] In some embodiments, the local index file may include content index files corresponding to applications installed in the mobile phone 1. In other embodiments, the local index file may include content index files corresponding to applications installed in the mobile phone 1 and content index files corresponding to applications not installed in the mobile phone 1.
[0116] S403. Mobile phone 1 displays application content corresponding to the search instruction based on the first content index file.
[0117] As can be seen from the above embodiments, the mobile phone 1 can determine the display style of the corresponding application content based on the content index file. For example, the application content may include navigation, settings, activity information, various types of information and online website maps.
[0118] Among them, the navigation of the application can be used to indicate the application icon of the application in the mobile phone 1. When a large number of applications are installed in the mobile phone 1, when the user needs to use one of the applications A, it may be necessary to find the location of the application icon corresponding to the application A in a large number of applications before opening the application A. If the user is not familiar with the applications installed in the mobile phone 1, it may take the user a long time to find the location of the application icon corresponding to the application A and open the application A. Therefore, in view of this situation, the application A can set a corresponding content index file to instruct the mobile phone 1 to display the application icon of the application A in the search result display area when responding to the user's search instruction. Exemplarily, the user enters the search keyword "application A" in the search area, and the mobile phone 1 displays the application icon of the application A in the search result display area. Therefore, the user does not need to find the application icon of the application A from the application icons corresponding to the large number of applications, but can directly trigger the application icon of the application A displayed in the search result display area to quickly open the application A.
[0119] Alternatively, in other embodiments, the navigation of application A may also refer to the navigation of the internal content of application A. Exemplarily, the user enters a search keyword in the search area, and the mobile phone 1 responds to the search instruction by displaying application content related to the search keyword in the search result display area. Wherein application A may include multiple contents related to the search keyword, then a search result may include multiple controls in application A, and each control is used to indicate a content related to the search keyword in application A. For example, the user enters the search keyword "Beihai", and application A contains application content a of travel guides related to "Beihai", and application content b of tickets to "Beihai". Then a search result may include navigation pages of application content a and application content b at the same time, and when the user triggers any one of the application contents, mobile phone 1 can jump to the page corresponding to the application content.
[0120] The activity information of the application may specifically refer to some activities recently set in the application, such as promotional activities, holiday benefits, coupon activities, etc. For example, the user enters the search keyword "food" in the search area, and the application B includes promotional activity information of nearby food stores, then the mobile phone 1 displays such promotional activity information in the search result display area.
[0121] The application settings may specifically include setting options for the application. For example, the user enters the search keyword "sports" in the search area, and the mobile phone 1 finds that application C is a sports-related application. At this time, the mobile phone 1 can display the setting options related to application C in the search result display area. For example, one of the setting options can be used to provide the user with the option of whether to authorize application C to obtain parameters such as exercise steps, exercise duration, and the user's heart rate during exercise.
[0122] Various types of application information can be used to indicate other information.
[0123] The website map may be a page that contains links to all pages on the website that need to be crawled by the search server. In the present application embodiment, for application D, the online website map may include links to some content in application D that may be related to the search keyword, such as a link list.
[0124] Exemplarily, the above S403 is shown as follows Figure 1 The interface 20 shown includes application content 21 , application content 22 and application content 23 .
[0125] After the mobile phone 1 displays the application content corresponding to the search instruction, the user can trigger any application content in the interface of the mobile phone 1 to make the mobile phone 1 enter the specific application interface corresponding to the selected application content to view the complete content corresponding to the application content.
[0126] S404. In response to the user's triggering operation on the target application content in the application content corresponding to the search instruction, the mobile phone 1 jumps to display the application page corresponding to the target application content.
[0127] For example, Figure 1 When the user selects to trigger application content 22 (the above-mentioned target application content) in interface 20, mobile phone 1 responds to the triggering operation and enters interface 30. In addition, an application page corresponding to specific information of application content 22 is displayed in interface 30 of mobile phone 1.
[0128] In the technical solution provided in the embodiment of the present application, by storing one or more content index files corresponding to each application in the mobile phone 1, when the user performs a local search in the mobile phone 1, the content index file corresponding to the application related to the user's search instruction is searched in the local index file. Then, based on the found content index file, the application content related to this search instruction is displayed. In this way, when the mobile phone 1 searches for content inside the application, it can use the content index file stored locally in the mobile phone 1 by the application to achieve cross-application search. There is no need for the electronic device to be connected to the Internet, and local search can be used to find the content inside the third-party application, which can reduce the search response time and improve the search efficiency. In addition, for application manufacturers, when achieving this effect on electronic devices from different manufacturers, there is no need to access different search open platforms, thereby reducing the access cost of implementing cross-application search in electronic devices from different manufacturers.
[0129] After the above S401, the mobile phone 1 can also implement the search with the help of the search server. In some embodiments, the mobile phone 1 can send the content index file of the application to the search server, and the search server can create an online index file in the search server according to the content index file. When the mobile phone 1 does not find the content index file corresponding to the search instruction in the local index file, the search instruction can be forwarded to the search server, and the search server can search for the content index file corresponding to the search instruction from the online index file, and then the search server returns the found content index file to the mobile phone 1. Afterwards, the mobile phone 1 can display the application content in combination with the content index file returned by the search server.
[0130] In some embodiments, Figure 5 As shown, after the above S401, the above method also includes S405-S407.
[0131] S405. Mobile phone 1 forwards the search instruction to the search server.
[0132] S406. Mobile phone 1 receives the second content index file corresponding to the search instruction found by the search server from the online index file.
[0133] S407. Mobile phone 1 displays application content corresponding to the search instruction based on the second content index file.
[0134] It should be noted that before mobile phone 1 uses the search server to implement local cross-application search, mobile phone 1 needs to send the content index file of the application to the search server so that the search server can establish an online index file based on the content index file of the online search. Afterwards, when receiving the search instruction, mobile phone 1 sends the search instruction to the search server, and then it can receive the content index file corresponding to the search instruction returned by the search server based on the online index file. The specific process of mobile phone 1 sending the content index file corresponding to the application to the search server so that the search server can establish an online index will be described in detail in the following embodiments and will not be repeated here.
[0135] In the technical solution provided in the embodiment of the present application, the application can set different types of content index files, some of which can be searched locally on the mobile phone 1, while the other part can be searched with the help of a search server. In this way, for the user, when searching for third-party application content on the mobile phone 1, not only can the corresponding content index file be found in the local index file, but also the content index file corresponding to the search instruction can be found in the online index file of the search server, so that more abundant search results can be obtained.
[0136] In other embodiments, the mobile phone 1 may forward the search instruction to the search server only when the content index file corresponding to the search instruction is not found in the local index file. That is, after the above S402, if the mobile phone 1 determines that there is no content index file corresponding to the search instruction in the local index file, the mobile phone 1 forwards the search instruction to the search server.
[0137] The above-mentioned process of S401-S404 corresponds to the process when the user performs a local search for an application that has a corresponding content index file stored in the mobile phone 1. Before the user performs a local search in the mobile phone 1, it should also include the process of each application storing a content index file in the mobile phone 1, and the mobile phone 1 generating and updating a local index file based on the content index file corresponding to the application.
[0138] In some embodiments, taking the example that the content index file stored locally in the mobile phone 1 includes the content index file of the application installed in the mobile phone 1, after the application is installed in the mobile phone 1, the mobile phone 1 can write the corresponding content index file in the mobile phone 1 through the application. Exemplarily, the above method also includes: after the mobile phone 1 installs the first application, generating the content index file corresponding to the first application in the preset storage area of the mobile phone 1 through the installed first application.
[0139] Among them, the preset storage area is used to store the content index files corresponding to each application. In some embodiments, the preset storage area can be the system public storage area of mobile phone 1, or the preset storage area can also be the storage area corresponding to the local search module of mobile phone 1. When the preset storage area is the system public storage area of mobile phone 1, after the application is installed in mobile phone 1, the application can write the content index file in the system public storage area. When the preset storage area is the storage area corresponding to the local search module, after the application is installed in mobile phone 1, the application can write the content index file in the storage area of the local search module.
[0140] In the technical solution provided by the embodiment of the present application, after the mobile phone 1 has installed the application, the content index file can be stored in the local preset storage area of the mobile phone 1 through the installed application, so that the mobile phone 1 can subsequently generate a local index file based on the content index file. Afterwards, the mobile phone 1 can perform a local search for the application content of this part of the application based on the local index file in response to the user's search instruction.
[0141] In other embodiments, when an application installed in mobile phone 1 is updated, it may be necessary to synchronously update the content index file corresponding to the application. Therefore, after the application is updated in mobile phone 1, mobile phone 1 may also update the content index file corresponding to the application in mobile phone 1 through the updated application. Exemplarily, the above method further includes: after mobile phone 1 updates the second application, updating the content index file corresponding to the second application stored in the preset storage area of mobile phone 1 through the updated second application.
[0142] In the technical solution provided by the embodiment of the present application, after the mobile phone 1 updates the application, if the content index file corresponding to the application is updated, the mobile phone 1 will update the corresponding content index file stored in the local preset storage area of the mobile phone 1 through the updated application after the application update is completed, so that the mobile phone 1 can subsequently update the local index file based on the updated content index file. Afterwards, the mobile phone 1 can search for the application content of this part of the application based on the local index file in response to the user's search instruction.
[0143] Furthermore, after the mobile phone 1 installs or updates the application, after the application writes the content index file corresponding to the application in the preset storage area, the mobile phone 1 can also build a unified index file, i.e., the above-mentioned local index file, in combination with the content index files of each application. In order to ensure that the content index files contained in the local index file are the latest, the local search module needs to regularly obtain the content index files from the preset storage area and update the local index files based on the latest content index files. Therefore, in some embodiments, the local search module of the mobile phone 1 obtains the content index files from the preset storage area every preset time period, and updates the local index files based on the content index files. Among them, the preset time period can be set according to actual conditions.
[0144] In some embodiments, after obtaining the content index files corresponding to each application from the preset storage area, the local search module of the mobile phone 1 can store the content index files corresponding to all applications in a designated path to obtain a local index file. In this way, the mobile phone 1 can quickly find the content index file corresponding to the search instruction when performing a local search.
[0145] In other embodiments, after the local search module of the mobile phone 1 obtains the content index file corresponding to each application from the preset storage area, it can also construct a local index file according to the original content index file generated by each application.
[0146] It can be seen from the description of the above embodiment that when different applications generate content index files, they are generated based on the preset specifications provided by the manufacturer of mobile phone 1. That is to say, the format of the content index files generated by different applications in the preset storage area of mobile phone 1 is the same. However, for the same or similar application content, different applications may not be named exactly the same, and may be the same name or similar name. Taking the date as an example, the date format of application A may be 2022-12-05, while the date format of application B may be 2022 / 12 / 05, and the date format of application C may be December 5, 2022. It is understandable that the above-mentioned last date represents the same date, but the expression method is not exactly the same. Taking the name "abc" as an example, the format of application A may be uppercase "ABC", the format of application B may be lowercase "abc", and the format of application C may be "Abc". It should be understood that the above three names may correspond to the same thing, but the expression method is not exactly the same.
[0147] Therefore, in order to improve search efficiency, when the local search module of mobile phone 1 builds a unified local index file based on the content index files of each application, the content index files can be classified based on the content contained in the content index files. Exemplarily, mobile phone 1 can classify content index files containing similar keywords into the same category.
[0148] In some embodiments, mobile phone 1 constructs a local index file based on the original content index file generated by each application, which may include: mobile phone 1 performs synonym processing, letter case conversion, first letter processing, date standardization, word segmentation, pinyin segmentation, etc. on the content contained in the content index file, and divides the content index files containing the same keywords in the processed content index files into the same category.
[0149] Among them, the specific implementation process of mobile phone 1 performing synonym processing, letter case conversion, initial letter processing, date standardization processing, word segmentation, pinyin segmentation, etc. on the content contained in the content index file can refer to the description in the relevant technology and will not be repeated in the embodiment of this application.
[0150] In the technical solution provided by the embodiment of the present application, after obtaining the content index files of different applications, mobile phone 1 can perform certain processing on the content index files corresponding to different applications, and then generate a unified local index file based on the processed content index files. Since the local index files have been classified, when mobile phone 1 searches for the content index files corresponding to the search instructions in the local index files in response to the search instructions, the content index files related to the search instructions can be found more quickly. This reduces the search response time and improves the search efficiency.
[0151] In other embodiments, the process of the mobile phone 1 constructing the local index file based on the content index file may also include: the mobile phone 1 generates views corresponding to each content index file based on the content index file corresponding to each application. The views may include: an image view for displaying images and videos, a file view for displaying files, a music view for displaying and playing music, and a location view for displaying map positioning.
[0152] It should be understood that the above-mentioned implementation method of the local search module constructing the local index file based on the content index file corresponding to each application is only an example. In other embodiments, the mobile phone 1 can also construct the local index file in other ways.
[0153] As can be seen from the description of the above embodiments, the content index file generated by the application in the preset storage area of the mobile phone 1 can be searched locally in the mobile phone 1, or can be searched online with the help of a search server. In some embodiments, the index file written by the application in the preset storage area of the mobile phone 1 can be provided with a content identifier. The content identifier is used to indicate whether the content index file is searched online or locally.
[0154] Further, in some embodiments, after the local search module of the mobile phone 1 obtains the content index files corresponding to each application from the preset storage area, it can judge according to the content identifier of the content index file to determine whether the content identifier is a local search identifier. For the content index file whose content identifier is a local search identifier, the mobile phone 1 can locally create or update the local index file. For the content index file whose content identifier is an online search identifier, the mobile phone 1 can send the content index file to the search server so that the search server can create an online index file.
[0155] Exemplarily, when mobile phone 1 determines that the content identifier of the third content index file is a local search identifier, mobile phone 1 can construct or update the local index file based on the third content index file. When mobile phone 1 determines that the content identifier of the fourth content index file is an online search identifier, mobile phone 1 sends the fourth content index file to the search server, so that the search server constructs or updates the online index file based on the fourth content index file.
[0156] In the embodiment of the present application, a content index file whose content identifier is a local search identifier is recorded as a third content index file, and a content index file whose content identifier is an online search identifier is recorded as a fourth content index file.
[0157] The specific implementation process of the mobile phone 1 constructing or updating the local index file based on the third content index file may refer to the description in the above embodiment.
[0158] The specific implementation process of mobile phone 1 sending the fourth content index file to the search server may specifically include: when mobile phone 1 determines that the content identifier of the fourth content index file is an online search identifier, the local search module of mobile phone 1 sends the fourth content index file to the search server. After receiving the fourth content index file, the search server may construct or update the online index file based on the fourth content index file.
[0159] In some embodiments, the search server constructs or updates the online index file based on the fourth content index file, which may specifically include the search server crawling the relevant application content based on the fourth content index file, and constructing or updating the online index file based on the crawled application content. The search server may specifically crawl the relevant application content from the application server corresponding to the fourth content index file based on the fourth content index file. For the specific process of the search server crawling the relevant application content based on the fourth content index file, reference may be made to the description of the relevant technology.
[0160] The above-mentioned content identifier may be set by the application manufacturer according to the preset specifications of the content index file provided by the manufacturer of the mobile phone 1. That is, in some embodiments, the preset specifications include setting rules for the content identifier, and the application manufacturer can set the corresponding content identifier for the content index file according to the rules in the preset specifications when generating the content index file.
[0161] Exemplarily, the setting rules of the content identifier defined in the preset specifications may include: for a content index file whose corresponding jump link is a single link, the content identifier may be set to a local search identifier. For a content index file whose corresponding jump link is a link list, the content identifier may be set to an online search identifier. Alternatively, the setting rules of the content identifier defined in the preset specifications may also include: for a content index file whose cover image is a local image, the content identifier may be set to a local search identifier. For a content index file whose cover image is an online image, the content identifier may be set to an online search identifier. It should be understood that the setting rules of the content identifier defined in the above preset specifications are merely examples. In other embodiments, the setting specifications of the content identifier defined in the preset specifications may also be set to other content.
[0162] In some embodiments, after the mobile phone 1 installs or updates the application, when the application stores the content index file corresponding to the application in the preset storage area through the application, the encrypted content index file can be stored in the preset storage area. In this embodiment, when the local search module of the mobile phone 1 obtains the index file from the preset storage area every preset time period, it can first decrypt the obtained content index file, and then build or update the local index file based on the decrypted content index file. Among them, the method of encrypting and decrypting the content index file can refer to the introduction in the relevant technology, and will not be repeated in the embodiment of this application.
[0163] In some embodiments, the manufacturer of mobile phone 1 can inform the application manufacturer about the specifications of the content index file by means of SDK. In some embodiments, the manufacturer of mobile phone 1 packages the specifications of the content index file into SDK and sends the SDK to the application manufacturer. When generating the application installation package, the application manufacturer (i.e., the application server) packages the SDK in the application installation package. In this embodiment, after installing or updating the application, mobile phone 1 can call the SDK in the application through the installed or updated application to generate or update the content index file in the local preset storage area of mobile phone 1. Exemplarily, after the application is installed in mobile phone 1, the user can start the application in mobile phone 1, and then the application can obtain the user's authorization. After obtaining the user's authorization, the application will access the network to read the interface configured by the application server, and generate the content index file corresponding to the application in the preset storage area based on the preset SDK through the interface.
[0164] In other embodiments, the manufacturer of mobile phone 1 may also directly send the specifications of the content index file to the application manufacturer by means of a preset document. Exemplarily, the preset document may specifically be a document (document, with the suffix .doc) or other document formats. In this embodiment, after installing or updating the application, mobile phone 1 may directly store the content index file or update the content index file in the preset storage area of the local mobile phone 1 through the installed or updated application. Exemplarily, after the application is installed in mobile phone 1, the user may start the application in mobile phone 1, and then the application may obtain the user's authorization. After obtaining the user's authorization, the application will access the network to read the interface configured by the application server, and through the interface, generate the content index file corresponding to the application in the preset storage area based on the preset document.
[0165] In the technical solution provided in the embodiment of the present application, the manufacturer of the mobile phone 1 can inform the application manufacturer of the specifications of writing the content index file in the mobile phone 1 through the document method or the SDK method. Both methods can achieve the effect that after the mobile phone 1 installs or updates the application, the content index file corresponding to the application is stored in the local preset storage area of the mobile phone 1 through the application. When the user performs a local search in the mobile phone 1, the application content of the application can be searched in the local search module of the system to realize cross-application search. In addition, when storing the content index file, each application can generate the content index file according to the specifications set by the manufacturer of the mobile phone 1, so that when searching and displaying the application content, the mobile phone 1 can display the application content according to the style set by the manufacturer of the mobile phone 1.
[0166] like Fig. 6A , Figure 6B and Figure 6C FIG. 1 is a schematic diagram of writing a content index file in a preset storage area of mobile phone 1 by downloading, installing or updating the application from the application server in the application content search method provided by an embodiment of the present application. Fig. 6A It is shown as an example that the mobile phone 1 stores the content index file in the system public storage area of the mobile phone 1 through the SDK. Figure 6B It is shown as an example that the mobile phone 1 directly stores the content index file in the storage area of the local search module through the SDK. Figure 6C It is shown as an example that the mobile phone 1 stores the content index file in the system public storage area through a preset document.
[0167] In the above embodiment, after the application is successfully installed in the mobile phone 1, the content index file corresponding to the application is stored in the system public storage area or the storage area of the local search module of the mobile phone 1. In some embodiments, when the application is uninstalled from the mobile phone 1, the mobile phone 1 can delete the content index file corresponding to the application from the mobile phone 1. In this way, the waste of storage space can be avoided.
[0168] like Fig. 7A The following is an application scenario diagram of the application content search method provided in an embodiment of the present application. Sandbox is a security mechanism in the field of computer security that provides an isolated environment for running programs. It is usually used to provide experiments for programs whose sources are unreliable, destructive, or whose intentions cannot be determined. Application sandbox can separate different applications and protect applications and systems from attacks by malicious applications. Figure 7B This is a complete flow chart of the application content search method provided in an embodiment of the present application. In this embodiment, taking the writing of a content index file in the system public storage area of mobile phone 1 as an example, the above application content search method may specifically include the following steps:
[0169] S700. Mobile phone 1 downloads and installs the application from the application server.
[0170] S701. Mobile phone 1 writes a content index file into the system public storage area through an application.
[0171] S702. The local search module of mobile phone 1 obtains the content index file corresponding to each application from the system public area at every preset time period.
[0172] S703. When the content identifier of the content index file is a local search identifier, the local search module of the mobile phone 1 constructs or updates a local index file based on the content index files corresponding to each application.
[0173] S704. When the content identifier of the content index file is an online search identifier, the local search module of mobile phone 1 sends the content index file to the search server.
[0174] S705. The search server crawls the content index file corresponding to the online search identifier, obtains the application content corresponding to the content index file, and constructs or updates the online index file.
[0175] In some embodiments, the above process of S700-S705 may be referred to as a pre-processing process for performing a search by the mobile phone 1. Afterwards, the mobile phone 1 may receive a search instruction from the user, and search for corresponding application content for the user in response to the search instruction.
[0176] S706. Mobile phone 1 receives the user's search instruction.
[0177] S707. In response to the search instruction, search the local index file for a first content index file corresponding to the search instruction.
[0178] S708. Mobile phone 1 displays the application content corresponding to the first content index file.
[0179] S709. Mobile phone 1 forwards the search instruction to the search server.
[0180] S710 . The search server searches for a second content index file corresponding to the search instruction from the online belonging files, and returns the second content index file to the mobile phone 1 .
[0181] S711. Mobile phone 1 receives the second content index file returned from the search server.
[0182] S712. Mobile phone 1 displays the application content corresponding to the second content index file.
[0183] In the technical solution provided in the embodiment of the present application, by storing one or more content index files corresponding to each application in the mobile phone 1, when the user performs a local search in the mobile phone 1, the content index file corresponding to the application related to the user's search instruction is searched in the local index file. Then, based on the found content index file, the application content related to this search instruction is displayed. In this way, when the mobile phone 1 searches for content inside the application, it can use the content index file stored locally in the mobile phone 1 by the application to achieve cross-application search. There is no need for the electronic device to be connected to the Internet, and local search can be used to find the content inside the third-party application, which can reduce the search response time and improve the search efficiency. In addition, for application manufacturers, when achieving this effect on electronic devices from different manufacturers, there is no need to access different search open platforms, thereby reducing the access cost of implementing cross-application search in electronic devices from different manufacturers.
[0184] Some other embodiments of the present application provide an electronic device, which may be the mobile phone 1 in the above embodiment. The computer device may include: a memory and one or more processors. The memory is coupled to the processor. The memory is also used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the computer device may execute the various functions or steps executed by the mobile phone 1 in the above method embodiment. When the computer device is an electronic device, its structure may refer to Figure 2 The structure of the electronic device 100 is shown.
[0185] The present application also provides a chip system, such as Figure 8As shown, the chip system 80 includes at least one processor 801 and at least one interface circuit 802. The processor 801 and the interface circuit 802 can be interconnected via lines. For example, the interface circuit 802 can be used to receive signals from other devices (such as the memory of a computer device). For another example, the interface circuit 802 can be used to send signals to other devices (such as the processor 801). Exemplarily, the interface circuit 802 can read instructions stored in the memory and send the instructions to the processor 801. When the instruction is executed by the processor 801, the computer device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0186] The embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device (such as mobile phone 1), the electronic device executes each function or step executed by mobile phone 1 in the above-mentioned method embodiment.
[0187] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the functions or steps executed by the mobile phone 1 in the above method embodiment. The computer may be an electronic device, such as the mobile phone 1.
[0188] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0189] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0190] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0193] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for searching application content, characterized in that: The method is applied to an electronic device, and the method comprises: Receive search instructions input by the user; In a state where the electronic device is not connected to the Internet, in response to the search instruction, searching a local index file stored in the electronic device for a first content index file corresponding to the search instruction; the local index file includes one or more content index files corresponding to at least one third-party application; the content index file of the third-party application is obtained by the electronic device after the third-party application is installed or updated, by writing the third-party application into a preset storage area of the electronic device; the preset storage area is used to store the content index file corresponding to the third-party application; Based on the first content index file, the application content corresponding to the search instruction is displayed; the application content includes at least one of the following: internal content navigation of the third-party application, setting information of the third-party application, activity information of the third-party application and an online website map corresponding to the third-party application.
2. The method according to claim 1, characterized in that After receiving the search instruction input by the user, the method further includes: When the electronic device is connected to a network, forwarding the search instruction to a search server; receiving a second content index file corresponding to the search instruction found by the search server from an online index file; the online index file includes one or more content index files corresponding to at least one third-party application; Based on the second content index file, the application content corresponding to the search instruction is displayed.
3. The method according to claim 1, characterized in that The method further comprises: In response to the user's triggering operation on the target application content in the application content corresponding to the search instruction, jump to display the application page corresponding to the target application content.
4. The method according to claim 1, characterized in that The method further comprises: After the electronic device updates the third-party application, the content index file corresponding to the third-party application stored in the preset storage area of the electronic device is updated through the updated third-party application.
5. The method according to claim 1 or 4, characterized in that: The electronic device includes a local search module; the method further includes: The local search module obtains a content index file from the preset storage area at every preset time period, and updates the local index file based on the content index file.
6. The method according to claim 5, characterized in that After the local search module obtains the content index file from the preset storage area every preset time period, and before updating the local index file based on the content index file, the method further includes: The local search module reads the content identifier corresponding to the content index file; The updating of the local index file based on the content index file includes: If the content identifier corresponding to the third content index file is a local search identifier, the local search module updates the local index file based on the third content index file.
7. The method according to claim 6, characterized in that The method further comprises: If the content identifier corresponding to the fourth content index file is an online search identifier, the local search module sends the fourth content index file to the search server; the fourth content index file is used to instruct the search server to create an online index file according to the fourth content index file.
8. The method according to any one of claims 1 to 4, 6 or 7, characterized in that The preset storage area includes: a system public storage area of the electronic device or a storage area corresponding to a local search module of the electronic device.
9. The method according to any one of claims 1 to 4, 6 or 7, characterized in that: The content index file is generated or updated by the target application calling a preset software development kit SDK in the target application after the electronic device installs or updates the target application corresponding to the content index file; wherein the preset SDK defines preset specifications of the content index file.
10. The method according to any one of claims 1 to 4, 6 or 7, characterized in that: The content index file is generated or updated by the target application based on a preset document after the electronic device installs or updates the target application corresponding to the content index file; wherein the preset document defines preset specifications of the content index file.
11. The method according to any one of claims 1 to 4, 6 or 7, characterized in that: The content index file corresponding to the third-party application includes at least one of the following: a cover image, a title, an application logo, an icon, and a jump link.
12. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method as claimed in any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 11.
Citation Information
Patent Citations
Global search method, terminal and server
CN110609957A
Search method and device, terminal and storage medium
CN112052361A
Search method and device, terminal and storage medium
CN112115228A