CN117130981A - Application content searching method and electronic equipment - Google Patents

Application content searching method and electronic equipment Download PDF

Info

Publication number
CN117130981A
CN117130981A CN202310009708.2A CN202310009708A CN117130981A CN 117130981 A CN117130981 A CN 117130981A CN 202310009708 A CN202310009708 A CN 202310009708A CN 117130981 A CN117130981 A CN 117130981A
Authority
CN
China
Prior art keywords
application
index file
content
search
content index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310009708.2A
Other languages
Chinese (zh)
Inventor
袁龙飞
纪跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310009708.2A priority Critical patent/CN117130981A/en
Publication of CN117130981A publication Critical patent/CN117130981A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/134Distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides an application content searching method and electronic equipment, relates to the technical field of electronics, and aims to solve the problems of long response time and low searching efficiency of searching contents in a third party application in the related technology. The method is applied to the electronic equipment, and comprises the following steps: receiving a search instruction input by a user; responding to the search instruction, and searching a first content index file corresponding to the search instruction in a local index file stored in the electronic equipment; the local index file comprises one or more content index files corresponding to at least one application; and displaying the application content corresponding to the search instruction based on the first content index file.

Description

Application content searching method and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to an application content searching method and an electronic device.
Background
Different Applications (APP) are installed in the electronic device, and different services can be provided for the user. As installed applications increase, so does the time for users to find the required services in electronic devices. To solve this problem, a local search module is provided in some electronic devices. The user can search navigation, setting, activity information, various information, online sitemaps and the like in the installed application through the local search module.
However, the content inside the third party application in the related art can generally only rely on the search open platform for supply, and belongs to the cloud side interface. When a user searches for content within a third party application in an electronic device, the electronic device is required to be networked to send a request to the search open platform and receive application content returned from the search open platform. The search response time is long, and the search efficiency is low.
Disclosure of Invention
The embodiment of the application provides an application content searching method and electronic equipment, which are used for solving the problems of long response time and low searching efficiency of searching content in a third party application in the related technology.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, there is provided an application content search method, the method being applied to an electronic device, the method comprising:
receiving a search instruction input by a user; responding to the search instruction, and searching a first content index file corresponding to the search instruction in a local index file stored in the electronic equipment; the local index file comprises one or more content index files corresponding to at least one application; and displaying the application content corresponding to the search instruction based on the first content index file corresponding to the search instruction.
In this approach, a local index file is stored locally on the electronic device, where 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 for in the local index file. And then displaying the application content related to the search instruction based on the searched content index file. Thus, when the electronic device searches for the content inside the application, the cross-application search can be realized by means of the content index file stored locally in the electronic device by the application. The content in the third party application can be searched in the local search without networking of electronic equipment, so that the search response time can be reduced, and the search efficiency is improved.
In some possible implementations, after receiving the search instruction input by the user, the electronic device may further forward the search instruction to the search server; i.e. by means of searching the corresponding content index file in the online index file stored in the search server. The electronic device may then receive a second content index file corresponding to the search instruction, which the search server looks up from the online index file. And then, the electronic equipment displays the application content corresponding to the search instruction based on the second content index file. In this way, a user may be provided with richer search results when searching in an electronic device.
In some possible embodiments, the above method further comprises: and responding to the triggering operation of the user on the target application content in the application contents corresponding to the search instruction, and jumping to display the application page corresponding to the target application content. In the scheme, the user can select any item of trigger to view the detailed information of the application content for the application content which is searched by the electronic equipment and is related to the search instruction.
In some possible embodiments, the above method further comprises: after the electronic equipment installs the first application, a content index file corresponding to the first application is generated in a preset storage area of the electronic equipment through the first application.
In some possible embodiments, the above method further comprises: after the electronic equipment updates the second application, updating the content index file corresponding to the second application stored in the preset storage area of the electronic equipment through the updated second application.
In the scheme, for the installed and updated application, the electronic device can store the content index file corresponding to the application in a preset storage area of the electronic device through the installed or updated application. In this way, the user performs a local search in the electronic device so that a subsequent electronic device can generate a local index file based on the content index file. The electronic device may then perform a local search for application content of the portion of the application based on the local index file in response to a search instruction by the user.
In some possible implementations, the electronic device includes a local search module. In this embodiment, the method further comprises: the local search module acquires the content index file from the preset storage area every preset time period, and updates the local index file based on the content index file. In this way, it can be ensured that the electronic device searches for the latest content index file when searching, and the electronic device displays the latest application content in response to the search instruction.
In some possible embodiments, after the local search module obtains the content index file from the preset storage area at preset time intervals, before updating the local index file based on the content index file, the method further includes: and the local search module reads the content identifier corresponding to the content index file. In this embodiment, updating the local index file based on the content index file includes: if the content identifier corresponding to the third content index file is the local search identifier, the local search module updates the local index file based on the third content index file.
In this scheme, the content index file generated 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 acquires the content index file from the preset storage area, an index is built according to different content identifiers. The local search module updates the local index file according to the content index file whose content identifier is a local search identifier.
In other possible embodiments, 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 for indicating the search server to establish an online index file according to the fourth content index file.
In this scheme, when the local search module determines that the content identifier of the content index file is an online search identifier, the local search module transmits the content index file to the search server, and the search server builds the online index file based on the content index file. Thus, for an application, different index files may be established locally at the electronic device and at the search server, respectively. When a user searches at an electronic device, richer search results may be provided to the user.
In some possible embodiments, the preset storage area includes: the system public storage area of the electronic equipment or the storage area corresponding to the local search module of the electronic equipment. In the scheme, the application can store the content index file in a system public storage area of the electronic equipment, and can also store the content index file directly in a storage area of the local search module.
In some possible embodiments, after the electronic device installs or updates the target application corresponding to the content index file, the target application generates or updates the content index file based on a preset Software Development Kit (SDK) in the target application; wherein, the preset specification of the content index file is defined in the preset SDK. In the scheme, the application of the electronic equipment predefines the specification 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 equipment according to the preset specification. Thus, 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 specification.
In some possible embodiments, after the electronic device installs or updates the target application corresponding to the content index file, the target application generates or updates the content index file based on the preset document; wherein, the preset specification of the index file of you is defined in the preset document. In the scheme, the application of the electronic equipment 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 equipment according to the preset specification. Thus, 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 specification.
In some possible implementations, the application corresponding content index file includes at least one of: cover pictures, titles, application identifications, icons, and jump links.
In a second aspect, there is provided an electronic device comprising: a processor and a memory; the memory is configured to store computer-executable instructions that, when executed by the electronic device, cause the electronic device to perform the application content search method of any one of the first aspects described above.
In a third aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the application content search method of any one of the above first aspects.
In a fourth aspect, there is provided a computer program product comprising instructions which, when run on an electronic device, enable the electronic device to perform the application content search method of any one of the above-mentioned first aspects.
In a fifth aspect, there is provided an apparatus (e.g. the apparatus may be a system-on-a-chip) comprising a processor for supporting an electronic device to implement the functions referred to in the first aspect above. In one possible design, the apparatus further includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, the device can be formed by a chip, and can also comprise the chip and other discrete devices.
The technical effects of any one of the design manners of the second aspect to the fifth aspect may be referred to the technical effects of the different design manners of the first aspect, and will not be repeated here.
Drawings
Fig. 1 is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 4 is a flow chart of a method for searching application content according to an embodiment of the present application;
fig. 5 is a flow chart of a method for searching application content according to an embodiment of the present application;
fig. 6A is a schematic diagram of a mobile phone 1 according to an embodiment of the present application storing a content index file in a system public storage area through an SDK;
fig. 6B is a schematic diagram of storing a content index file in a storage area of a local search module by using an SDK in the mobile phone 1 according to an embodiment of the present application;
fig. 6C is a schematic diagram of a mobile phone 1 according to an embodiment of the present application storing a content index file in a system public storage area through a preset document;
fig. 7A is an application scenario diagram of an application content searching method according to an embodiment of the present application;
Fig. 7B is a flowchart illustrating a method for searching application content according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
Different applications are installed in the electronic equipment, and different services can be provided for users. As installed applications increase, so does the time for users to find the required services in electronic devices. To solve this problem, a local search module is provided in some electronic devices. A user can search navigation, setting, activity information, various information, online sitemaps and the like in an installed application in the electronic device through the local search module.
As shown in the interface 10 of the mobile phone 1 in fig. 1, a local search area 11 is provided in the interface 10. The user enters a search keyword in the local search area 11 and may enter the interface 20. The application content 21, the application content 22 and the application content 23 in the mobile phone 1 are displayed in the interface 20. Wherein the application content 21 and the application content 23 are from the same application a and the application 22 is from application B. When a user triggers one of the application contents 22, the mobile phone 1 will enter the application interface 30 corresponding to the application content 22, i.e. the application interface of the application B.
The content presented in interface 20 includes content internal to the third party application, such as navigation, settings, activity information, various types of information, and online sitemaps for the application. In the related art, when a local search is performed in the mobile phone 1, the mobile phone 1 responds to a search instruction of a user to send a search request to a search server, the search server invokes an interface of a corresponding search open platform to crawl application content corresponding to the search request, and then the search server returns the application content to the mobile phone 1. That is, if a user wants to search the mobile phone 1 for content inside the third party application, the user can generally only rely on the search open platform provided by the application to provide an interface, and this interface belongs to the interface provided by the cloud side server. When a user searches for content within a third party application in an electronic device, the electronic device is required to be networked to send a request to the search open platform and receive application content returned from the search open platform. The search response time is long, and the search efficiency is low. Moreover, electronic devices provided by different device manufacturers generally correspond to different search open platforms, and for an application manufacturer, if the same application needs to implement cross-application search in electronic devices provided by different device manufacturers, multiple search open platforms need to be accessed, and the access cost is high.
Based on the above, the embodiment of the application provides an application content searching method, which can be applied to electronic equipment. In the embodiment of the application, the local index file is stored in the electronic equipment, 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 the electronic equipment, the electronic equipment searches the local index file for a content index file related to a search instruction of the user. The electronic device may then display the application content corresponding to the search instruction based on the found content index file. Thus, when the electronic device performs cross-application search on the content inside the application, the electronic device can be realized by means of the content index file stored locally in the electronic device. The content in the third party application can be searched in the local search without networking of electronic equipment, so that the search response time can be reduced, and the search efficiency is improved. In addition, for application manufacturers, when the electronic equipment of different manufacturers achieves the effect, different search open platforms are not needed to be accessed, so that the access cost for realizing cross-application search in the electronic equipment of different manufacturers can be reduced.
In the embodiment of the application, the electronic equipment is provided with a local search module. In some embodiments, the local search module may include a search sub-module and a display sub-module. The searching submodule is used for searching the corresponding content index file according to a searching instruction of a user and updating the local index file regularly. The display sub-module is used for displaying the corresponding application content according to the content index file searched by the search sub-module.
By way of example, the electronic device may be a mobile phone (as shown in fig. 1), a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), a wearable device, an augmented reality (augmented reality, AR) \virtual reality (VR) device, a media player, a television, etc., and the embodiment of the present application is not limited to the specific form of the device. In the embodiment of the present application, the structure of the electronic device may be as shown in fig. 2, and will be described in detail in the following embodiments.
Fig. 2 is a schematic hardware structure of an electronic device 100 according to an embodiment of the application. The electronic device 100 may be, for example, the handset 1 of fig. 1. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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, keys 190, a motor 191, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, among others. Among other things, the sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, the processor 110 is configured to perform a network acceleration method in an embodiment of the present application.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store application programs (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system.
In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques.
The electronic device 100 may implement audio functions through the audio module 170, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio signals to analog audio signal outputs and also to convert analog audio inputs to digital audio signals. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A.
The touch sensor 180B, also referred to as a "touch panel". The touch sensor 180B may be disposed on the display 194, and the touch sensor 180B and the display 194 form a touch screen, which is also referred to as a "touch screen". The touch sensor 180B is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180B may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1.
The application content search methods in the following embodiments may be implemented in the electronic device 100 having the above-described hardware configuration.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. Fig. 3 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, etc. applications.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The embodiment of the application provides an application content searching method which can be applied to a searching scene of electronic equipment and can realize cross-application searching of content in third-party application of the electronic equipment and display of a searching result on the basis of not accessing a searching open platform. To improve the efficiency of the user in finding the content of the third party application in the electronic device. The application content search method provided by the embodiment of the application will be described in detail below with reference to the embodiment and the accompanying drawings.
Fig. 4 is a flowchart of an application content searching method according to an embodiment of the application. In this embodiment, the application content search method includes S401 to S404, in which:
s401, the mobile phone 1 receives a search instruction input by a user.
In some embodiments, the process of the user inputting a search keyword in the search area 11 as shown in fig. 1, that is, the process of the corresponding user transmitting a search instruction to the mobile phone 1. In this embodiment, the above S401 may specifically be that when the mobile phone 1 detects an input operation of the user in the search area, the mobile phone 1 determines that a search instruction of the user is received. The search area is used for receiving a search keyword input by a user and searching some information related to the search keyword in the mobile phone 1.
In some embodiments, before S401 described above, the handset 1 needs to display the search area. For example, the mobile phone 1 may display the search area in response to an operation of the user. For example, in the case where the mobile phone 1 displays a main interface, the user slides the interface to the right (or to the left), causes the mobile phone 1 to enter a search interface and displays a search area.
In some embodiments, after S401, the mobile phone 1 may determine a search keyword input by the user according to the search instruction. Illustratively, the keywords that the handset 1 receives user input include "north sea".
In some embodiments, the user may input an error in the search keyword input in the search area, and in this case, the mobile phone 1 may perform intelligent error correction on the received search keyword, and then search for the corresponding content index file according to the search keyword after error correction.
In other embodiments, the search keywords entered by the user may not be exactly the same as the keywords contained in the content index file, but may be synonymous. In this case, after acquiring the search keyword, the mobile phone 1 may perform operations such as synonym processing on the search keyword. And searching for a corresponding content index file based on the search keywords obtained after the synonym processing and words belonging to the synonyms with the search keywords.
When the user wants to search for the content related to the application in the mobile phone 1, the user can input a search keyword in the mobile phone 1 to trigger a search instruction. After receiving the search instruction, the mobile phone 1 may search for application content corresponding to the search keyword.
S402, the mobile phone 1 responds to the search instruction, and searches a first content index file corresponding to the search instruction in the local index files stored in the mobile phone 1.
Wherein the local index file includes one or more content index files corresponding to at least one application. Illustratively, an application is installed in the handset 1, which application correspondingly includes one or more content index files. Alternatively, two or more applications are installed in the mobile phone 1, and each application correspondingly includes one or more content index files. Wherein one content index file may correspond to one application content.
In some embodiments, the content index file corresponding to the application may be used to instruct the local search module of the application authorized handset 1 to find and display the application content of the application. After the application writes the content index file in the mobile phone 1, the application content allowing the user to search and display the application through the local search module of the mobile phone 1 is indicated.
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 described here again.
The content index file corresponding to the application may be named apps, for example, the content index file corresponding to application a may be named apps-application a. In other embodiments, the content index file to which the application corresponds may also be named other names, such as an authorization file, and the like.
In other embodiments, the application's corresponding content index file may also be used to indicate the application's content. Illustratively, the application of the corresponding content index file includes at least one of: cover pictures, titles, application identifications, application icons, and jump links. The mobile phone 1 can determine the style of the application content to be displayed according to the cover picture, the title, the application identifier and the application icon included in the content index file corresponding to the application. And after displaying the application content, the mobile phone 1 can trigger the application content to view the specific information of the application content. Therefore, the application content displayed by the mobile phone 1 is correspondingly provided with the jump link, and when the user triggers the application content, the mobile phone 1 will jump to display the application page corresponding to the jump link so as to display the specific information of the application content.
Further, in some embodiments, the content index file corresponding to the application may specifically include specific information of a cover picture, a title, an application identifier, and an application icon. The content index file corresponding to the application may specifically include a picture identifier, a picture size, a picture position, a picture color, and the like of the cover picture. The application-corresponding content index file 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 can specifically comprise identification content, identification size, identification position and the like of the application identification; by way of example, the application identification may refer in particular to the application name. The content index file corresponding to the application may specifically include icon content, size, color, position, and the like of the application icon. In this way, when the mobile phone 1 finds the first content index file corresponding to the search instruction, the display style of the application content corresponding to the content index file can be determined according to the specific information of the cover picture, the title, the application identifier and the application icon in the first content index file.
The specific specification of the content index file corresponding to the application may be formulated by the manufacturer of the mobile phone 1. The specification of the content index file is used to indicate the rules to be followed by the application to store the content index file in the handset 1. For example, the specification of the content index file may include the picture identifier, the picture size, the picture position, the picture color, the content of the title, the position of the title, the font color and size of the title, the identifier content of the application identifier, the identifier size, the position of the identifier, and the icon content, size, color, and position of the application icon, and so on of the content index file.
In some embodiments, the vendor of the handset 1 may format the content index file in a document or in a software development kit (Software Development Kit, SDK). After the manufacturer of the mobile phone 1 formulates the specification of the content index file in a preset document or SDK manner, the specification of the content index file may be sent to an application manufacturer (i.e., a server corresponding to the application). The application manufacturer generates and stores a content index file in the mobile phone 1 according to a preset document or SDK indication application. The specific process of generating and storing the index file in the mobile phone 1 will be described in detail in the following embodiments, which will not be described herein.
In some embodiments, the title, the cover picture, the application identifier, and the like included in the content index file corresponding to the application may include characters, and in S402, when the mobile phone 1 searches the corresponding content index file based on the search instruction, the mobile phone 1 may search the content index file in the local index file through the search keyword corresponding to the search instruction. For example, when the user triggers the search instruction, the search keyword input is "north sea", the mobile phone 1 responds to the search instruction to find out whether the search keyword is contained in the content index files, if so, the content index file containing the search keyword is determined as the first content index file corresponding to the search instruction. Taking the example that the local index file comprises 10 content index files, when the mobile phone 1 receives the search instruction and determines that the search keyword corresponding to the search instruction is 'north sea', the mobile phone 1 searches for the 10 content index files in the local index file. If the search keyword 'north sea' is found to be included in all of the 3 content index files, the 3 content index files may be regarded as the first content index file corresponding to the search instruction. The subsequent mobile phone 1 may display the application content corresponding to the 3 first content index files. The other 7 content index files are determined as content index files not related to the search instruction, and the mobile phone 1 may not display the corresponding application content.
After the mobile phone 1 searches the first content index file corresponding to the search instruction, the mobile phone 1 may display the corresponding application content according to the first content index file.
In some embodiments, the local index file may include a content index file corresponding to an installed application in the handset 1. In other embodiments, the local index file may include a content index file corresponding to an installed application in the handset 1 and a content index file corresponding to an uninstalled application in the handset 1.
S403, based on the first content index file, the mobile phone 1 displays application content corresponding to the search instruction.
As can be seen from the description of the above embodiments, the mobile phone 1 can determine the display style of the corresponding application content based on the content index file. By way of example, application content may include navigation, settings, activity information, various types of information, online sitemaps, and the like.
Wherein the navigation of the application may be used to indicate the application icon of the application in the handset 1. When a large number of applications are installed in the mobile phone 1, and a user needs to use one of the applications a, the user may need to find the location of the application icon corresponding to the application a in the large number of applications, so that the application a may be opened. If the user is unfamiliar with the installed application in the mobile phone 1, it may take a long time for the user to find the location of the application icon corresponding to the application a and open the application a. Thus, for this case, the application a may set a corresponding content index file for instructing the mobile phone 1 to present the application icon of the application a in the search result presentation area in response to the search instruction of the user. Illustratively, the user inputs the search keyword "application a" in the search area, and the mobile phone 1 displays the application icon of application a in the search result display area. Therefore, a user can directly trigger the application icons of the application A displayed in the search result display area without searching the application icons of the application A from a large number of application icons corresponding to the application, and rapidly open the application A.
Alternatively, in other embodiments, navigation of application a may also refer to navigation of content within application a. Illustratively, the user inputs a search keyword in the search area, and in response to this search instruction, the mobile phone 1 presents application content related to the search keyword in the search result presentation area. Where application a may include a plurality of content related to the search keyword, then a plurality of controls in application a may be included in a search result, each control for indicating one of the content related to the search keyword in application a. For example, the user inputs the search keyword "north sea", and the application a includes application content a of travel strategies related to "north sea" and application content b of tickets to "north sea". The search result may include the navigation page of the application content a and the application content b at the same time, the user triggers any one of the application contents, and the mobile phone 1 may jump to the page corresponding to the application content.
The activity information of the application may specifically refer to some activities recently set in the application, such as a promotional activity, holiday welfare, coupon activity, etc. Illustratively, when the user inputs the search keyword "food" in the search area and the application B includes the preference message of the nearby food store, the mobile phone 1 displays such preference message in the search result display area.
The settings of the application may specifically comprise settings options for the application. Illustratively, the user enters the search keyword "sports" in the search area, and the handset 1 finds that the application C is a sports-related application. At this time, the mobile phone 1 may display the setting options related to the application C in the search result display area. For example, one of the setup options may be used to provide the user with the right to choose whether or not the application C is authorized to obtain parameters such as the number of steps of exercise, the length of exercise, the heart rate of the user while exercising, etc.
Various types of information of the application may be used to indicate other information.
The sitemap may be a page in which links to all pages on the web site that need to be crawled by a search server are placed. In an embodiment of the present application, for application D, the online sitemap may include links, such as a list of links, to some content in application D that may be relevant to the search keyword.
Illustratively, S403 described above displays the application content 21, the application content 22, and the application content 23 displayed in the interface 20 as shown in fig. 1.
After the mobile phone 1 displays the application content corresponding to the search instruction, the user can trigger any one of the application content in the interface of the mobile phone 1, so that the mobile phone 1 enters a specific application interface corresponding to the selected application content to view the complete content corresponding to the application content.
S404, responding to the triggering operation of the user on the target application content in the application content corresponding to the search instruction, and displaying the application page corresponding to the target application content in a jumping manner by the mobile phone 1.
Illustratively, when the user shown in fig. 1 selects the trigger application content 22 (the target application content described above) on the interface 20, the mobile phone 1 will enter the interface 30 in response to this trigger operation. The application page of the specific information corresponding to the application content 22 is displayed on the interface 30 of the mobile phone 1.
In the technical scheme provided by the embodiment of the application, one or more content index files corresponding to each application are stored in the mobile phone 1, and when a user performs local search in the mobile phone 1, the content index file corresponding to the application related to the search instruction of the user is searched in the local index file. And then displaying the application content related to the search instruction based on the searched content index file. In this way, when the mobile phone 1 searches for the content inside the application, the cross-application search can be implemented by means of the content index file stored locally in the mobile phone 1 by the application. The content in the third party application can be searched in the local search without networking of electronic equipment, so that the search response time can be reduced, and the search efficiency is improved. In addition, for application manufacturers, when the electronic equipment of different manufacturers achieves the effect, different search open platforms are not needed to be accessed, so that the access cost for realizing cross-application search in the electronic equipment of different manufacturers can be reduced.
After S401 described above, the mobile phone 1 can also implement a search by means of the search server. In some embodiments, the handset 1 may send the content index file of the application to the search server, and the search server creates an online index file in the search server from 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, the search server searches 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. After that, the mobile phone 1 can display the application content in combination with the content index file returned by the search server.
In some embodiments, as shown in FIG. 5, after S401, the method further includes S405-S407.
S405, the mobile phone 1 forwards a search instruction to a search server.
S406, the mobile phone 1 receives a second content index file corresponding to the search instruction, which is searched from the online index file by the search server.
S407, the mobile phone 1 displays application content corresponding to the search instruction based on the second content index file.
Before the mobile phone 1 performs local cross-application search by using the search server, the mobile phone 1 needs to send the content index file of the application to the search server, so that the search server establishes an online index file based on the content index file of the online search. After that, when receiving the search instruction, the mobile phone 1 sends the search instruction to the search server, and 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 the mobile phone 1 sending the content index file corresponding to the application to the search server to enable the search server to establish the online index will be described in detail in the following embodiments, which will not be described herein.
In the technical scheme provided by the embodiment of the application, different types of content index files can be set by the application, wherein part of the content index files can be searched locally on the mobile phone 1, and the other part can be searched by means of a search server. Thus, for the user, when the third party application content of the mobile phone 1 searches, not only the corresponding content index file can be searched in the local index file, but also the content index file corresponding to the search instruction can be searched in the online index file of the search server, so that richer search results can be obtained.
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 S402 described above, 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.
The above-described processes of S401 to S404 correspond to a process when the user performs a local search for an application in which a corresponding content index file has been stored in the cellular phone 1. Before the user performs the local search in the mobile phone 1, the method also comprises the process that each application stores a content index file in the mobile phone 1, and the mobile phone 1 generates and updates the local index file based on the content index file corresponding to the application.
In some embodiments, taking an example that the content index file locally stored in the mobile phone 1 includes a content index file of an application installed in the mobile phone 1, after the application is installed in the mobile phone 1, the mobile phone 1 may write the corresponding content index file in the mobile phone 1 through the application. Illustratively, the above method further comprises: after the mobile phone 1 installs the first application, a content index file corresponding to the first application is generated in a preset storage area of the mobile phone 1 through the installed first application.
The preset storage area is used for storing content index files corresponding to the applications. In some embodiments, the preset storage area may be a system public storage area of the mobile phone 1, or the preset storage area may also be a storage area corresponding to a local search module of the mobile phone 1. When the preset storage area is the system public storage area of the mobile phone 1, after the application is installed in the 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 the mobile phone 1, the application writes the content index file in the storage area of the local search module.
In the technical scheme provided by the embodiment of the application, after the mobile phone 1 installs the application, the content index file can be stored in the preset local storage area of the mobile phone 1 through the installed application, so that the subsequent mobile phone 1 can generate the local index file based on the content index file. After that, the mobile phone 1 can perform a local search for the application content of the part of the application based on the local index file in response to the search instruction of the user.
In other embodiments, when an application installed in the mobile phone 1 is updated, it may be necessary to update the content index file corresponding to the application synchronously, so after the application is updated in the mobile phone 1, the mobile phone 1 may also update the content index file corresponding to the application in the mobile phone 1 through the updated application. Illustratively, the above method further comprises: after the mobile phone 1 updates the second application, the content index file corresponding to the second application stored in the preset storage area of the mobile phone 1 is updated through the updated second application.
In the technical scheme provided by the embodiment of the application, after the mobile phone 1 updates the application, if the content index file corresponding to the application is updated, the mobile phone 1 updates the corresponding content index file stored in the local preset storage area of the mobile phone 1 through the updated application after the application is completed, so that the subsequent mobile phone 1 can update the local index file based on the updated content index file. After that, the mobile phone 1 can search the application content of the part of the application based on the local index file in response to the search instruction of the user.
Furthermore, after the mobile phone 1 installs or updates the application, after writing the content index file corresponding to the application in the preset storage area through the application, the mobile phone 1 may also construct a unified index file, that is, the local index file, by combining the content index files of each application. In order to ensure that the content index file included in the local index file is up-to-date, the local search module needs to periodically acquire the content index file from the preset storage area and update the local index file based on the up-to-date content index file. Thus, in some embodiments, the local search module of the mobile phone 1 acquires the content index file from the preset storage area at preset time intervals, and updates the local index file based on the content index file. The preset time period can be set according to actual conditions.
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 may uniformly store the content index files corresponding to all the applications to a specified path, so as to obtain the local index file. Thus, the mobile phone 1 can conveniently and rapidly search the content index file corresponding to the search instruction when performing local search.
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, the local index file may also be constructed according to the original content index file generated by each application.
As can be seen from the above description of the embodiments, when different applications generate the content index file, the content index file is generated based on the preset specification provided by the manufacturer of the mobile phone 1. That is, the formats of the content index files generated in the preset storage areas of the mobile phone 1 by different applications are the same. However, for the same or similar application content, the naming of the different applications may not be exactly the same, either the same naming or similar naming. Taking the date as an example, the date format for application A may be 2022-12-05, while the date format for application B may be 2022/12/05, and the date format for application C may be two-zero two-year, five-month, five-year. It will be appreciated that the above date represents the same date, but 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 three names may correspond to the same thing, but the representations are not identical.
Therefore, in order to improve the search efficiency, when the local search module of the mobile phone 1 constructs a unified local index file based on the content index files of each application, the content index files may be classified based on the content included in the content index files. For example, the mobile phone 1 may divide content index files containing similar keywords into the same category.
In some embodiments, the mobile phone 1 constructs a local index file based on the original content index file generated by each application, which may include: the mobile phone 1 performs synonym processing, letter case conversion, initial processing, date standardization processing, word segmentation, pinyin word segmentation and the like on the content contained in the content index file, and divides the content index file containing the same keywords in the content index file after processing into the same category.
The specific implementation process of the processing of synonym processing, letter case conversion, initial processing, date standardization processing, word segmentation, pinyin word segmentation and the like of the content included in the content index file by the mobile phone 1 may refer to the description in the related art, and will not be repeated in the embodiment of the present application.
In the technical scheme provided by the embodiment of the application, after the mobile phone 1 acquires the content index files of different applications, the mobile phone 1 can perform certain processing on the content index files corresponding to the different applications and then generate a unified local index file based on the processed content index files. Since the classification processing is already performed in the local index file, when the mobile phone 1 searches the content index file corresponding to the search instruction in the local index file in response to the search instruction, the content index file related to the search instruction can be searched faster. Thereby reducing the search response time and improving the search efficiency.
In other embodiments, the process of constructing the local index file by the mobile phone 1 based on the content index file may further include: the mobile phone 1 generates views corresponding to the content index files based on the content index files corresponding to the applications. Wherein the view may comprise: an image view for image video presentation, a file view for file presentation, a music attempt for presenting and playing music, and a location view for presenting map positioning.
It should be understood that the implementation manner of constructing the local index file by the local search module based on the content index file corresponding to each application is only an example, and in other embodiments, the mobile phone 1 may construct the local index file in other manners.
As can be seen from the description of the above embodiments, the content index file generated in the preset storage area of the mobile phone 1 may be searched locally in the mobile phone 1, or may be searched online by a search server. In some embodiments, the index file written in the preset storage area of the mobile phone 1 may be provided with a content identifier. The content identification is used to indicate whether the content index file is an online search or a local search.
Further, in some 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, the local search module may determine whether the content identifier is a local search identifier according to the content identifier of the content index file. For content index files where the content identification is a local search identification, the handset 1 may build or update the local index file locally. For a content index file whose content identifier is an online search identifier, the mobile phone 1 may send the content index file to the search server, so that the search server builds the online index file.
For example, when the handset 1 determines that the content identifier of the third content index file is the local search identifier, the handset 1 may construct or update the local index file based on the third content index file. When the mobile phone 1 determines that the content identifier of the fourth content index file is the online search identifier, the 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.
In the embodiment of the application, the content index file with the content identifier being the local search identifier is marked as a third content index file, and the content index file with the content identifier being the online search identifier is marked as a fourth content index file.
The specific implementation process of the mobile phone 1 for constructing or updating the local index file based on the third content index file may refer to the description in the above embodiment.
The specific implementation process of the mobile phone 1 sending the fourth content index file to the search server may specifically include: when the mobile phone 1 determines that the content identifier of the fourth content index file is an online search identifier, the local search module of the mobile phone 1 sends the fourth content index file to the search server. The search server, after receiving the fourth content index file, may construct or update an online index file based on the fourth content index file.
In some embodiments, the search server builds or updates the online index file based on the fourth content index file, which may specifically include the search server crawling relevant application content based on the fourth content index file and building or updating the online index file based on crawling application content. The search server may specifically crawl relevant application content from an application server corresponding to the fourth content index file based on the fourth content index file. The search server crawls the related application content based on the fourth content index file for a specific procedure, which may refer to the description of the related art.
The setting of the content identifier may be set by an application manufacturer according to a preset specification of the content index file provided by the manufacturer of the mobile phone 1. That is, in some embodiments, the preset specification includes a rule for setting content identifiers, and the application manufacturer may set corresponding content identifiers for the content index file according to the rule in the preset specification when the content index file is generated.
For example, the setting rule of the content identifier defined in the preset specification may include: for content index files where the corresponding jump link is a single link, the content identification may be set to a local search identification. For content index files where the corresponding jump links are linked lists, the content identification may be set to an online search identification. Alternatively, the setting rule of the content identifier defined in the preset specification may also include: for a content index file in which the cover picture is a local picture, the content identification may be set to a local search identification. For a content index file in which the cover picture is an online picture, the content identification may be set to an online search identification. It should be understood that the setting rule of the content identifier defined in the above-mentioned preset specification is only an example, and in other embodiments, the setting specification of the content identifier defined in the preset specification may be set as other content.
In some embodiments, after installing or updating the application, the mobile phone 1 may store the encrypted content index file in the preset storage area when storing the content index file corresponding to the application in the preset storage area through the application. In this embodiment, when the local search module of the mobile phone 1 obtains the index file from the preset storage area at intervals of a preset time period, the obtained content index file may be decrypted first, and then the local index file may be constructed or updated based on the decrypted content index file. The manner of encrypting and decrypting the content index file may refer to the description in the related art, and will not be described in detail in the embodiment of the present application.
In some embodiments, the vendor of the handset 1 may inform the application vendor of the specification of the content index file by way of the SDK. In some embodiments, the vendor of the handset 1 packages the specification of the content index file into the SDK and sends the SDK to the application vendor. The application vendor (i.e., application server) packages the SDK in the application installation package when generating the application installation package. In this embodiment, after the mobile phone 1 installs or updates the application, the SDK in the application may be invoked by the installed or updated application to generate or update the content index file in a preset storage area local to the mobile phone 1. Illustratively, after the mobile phone 1 installs the application, the user may start the application in the mobile phone 1, after which the application may obtain the authorization of the user. After the authorization of the user is obtained, the application accesses the network to read an interface configured by the application server, and generates a content index file corresponding to the application in a preset storage area based on a preset SDK through the interface.
In other embodiments, the manufacturer of the mobile phone 1 may also send the specification of the content index file to the application manufacturer directly through a preset document. The preset document may be, for example, a document (suffix, doc) or other document format. In this embodiment, after the mobile phone 1 installs or updates the application, the application may directly store the content index file or update the content index file in a preset storage area local to the mobile phone 1. Illustratively, after the mobile phone 1 installs the application, the user may start the application in the mobile phone 1, after which the application may obtain the authorization of the user. After the authorization of the user is obtained, the application accesses the network to read an interface configured by the application server, and generates a content index file corresponding to the application in a preset storage area based on a preset document through the interface.
In the technical scheme provided by the embodiment of the application, the manufacturer of the mobile phone 1 can inform the application manufacturer of the specification of writing the content index file in the mobile phone 1 in a document mode or an SDK mode. Both the two modes can realize the effect that after the mobile phone 1 installs or updates the application, the application stores the content index file corresponding to the application in a preset storage area of the mobile phone 1. When a user searches locally in the mobile phone 1, the user can search the application content of the application in a local search module of the system, so that cross-application search is realized. Moreover, when each application stores the content index file, the content index file can be generated according to the specification set by the manufacturer of the mobile phone 1, and further, when the mobile phone 1 searches for and displays the application content, the application content can be displayed according to the style set by the manufacturer of the mobile phone 1.
As shown in fig. 6A, fig. 6B, and fig. 6C, in the application content searching method according to an embodiment of the present application, after an application of the mobile phone 1 downloads an installed or updated application from an application server, a content index file is written in a preset storage area of the mobile phone 1 by downloading the installed or updated application. Fig. 6A shows an example in which the mobile phone 1 stores a content index file in a system public storage area of the mobile phone 1 through the SDK. Fig. 6B shows an example in which the handset 1 directly stores the content index file in the storage area of the local search module through the SDK. Fig. 6C shows an example in which the mobile phone 1 stores a content index file in a system common storage area through a preset document.
In the above embodiment, after the mobile phone 1 is successfully installed, the content index file corresponding to the application is stored in the system public storage area of the mobile phone 1 or the storage area of the local search module. In some embodiments, when an application is uninstalled from the mobile phone 1, the mobile phone 1 may delete the content index file corresponding to the application from the mobile phone 1. In this way, waste of storage space can be avoided.
Fig. 7A is an application scenario diagram of an application content searching method according to an embodiment of the present application. Sandboxes are a security mechanism in the field of computer security, providing an isolated environment for running programs. Often, the experimental use is provided as a program that is not trusted, destructive, or unable to determine the intent of the program. The application sandbox may separate different applications and protect applications and systems from attacks by malicious applications. Fig. 7B is a complete flowchart of an application content searching method according to an embodiment of the application. In this embodiment, taking writing of a content index file in a system public storage area of the mobile phone 1 as an example, the above-mentioned application content searching method specifically may include the following steps:
S700, the mobile phone 1 downloads and installs the application from the application server.
S701, writing a content index file in a system public storage area by the mobile phone 1 through application.
S702, acquiring content index files corresponding to each application from a system public area by a local search module of the mobile phone 1 every preset time period.
S703, when the content identification of the content index file is a local search identification, the local search module of the mobile phone 1 constructs or updates the local index file based on the content index file corresponding to each application.
S704, when the content identification of the content index file is an online search identification, the local search module of the mobile phone 1 sends the content index file to a search server.
S705, the search server climbs to obtain application content corresponding to the content index file based on the content index file corresponding to the online search identifier, and builds or updates the online index file.
In some embodiments, the process of S700-S705 described above may be referred to as a preprocessing process for performing a search by the handset 1. After that, the mobile phone 1 may receive a search instruction of the user, and search the corresponding application content for the user in response to the search instruction.
S706, the mobile phone 1 receives a search instruction of a user.
S707, searching a first content index file corresponding to the search instruction in the local index file in response to the search instruction.
S708, the mobile phone 1 displays the application content corresponding to the first content index file.
S709, the mobile phone 1 forwards the search instruction to the search server.
S710, searching a second content index file corresponding to the search instruction from the online belonging files by the search server, and returning the second content index file to the mobile phone 1.
S711, the mobile phone 1 receives a second content index file returned from the search server.
S712, the mobile phone 1 displays the application content corresponding to the second content index file.
In the technical scheme provided by the embodiment of the application, one or more content index files corresponding to each application are stored in the mobile phone 1, and when a user performs local search in the mobile phone 1, the content index file corresponding to the application related to the search instruction of the user is searched in the local index file. And then displaying the application content related to the search instruction based on the searched content index file. In this way, when the mobile phone 1 searches for the content inside the application, the cross-application search can be implemented by means of the content index file stored locally in the mobile phone 1 by the application. The content in the third party application can be searched in the local search without networking of electronic equipment, so that the search response time can be reduced, and the search efficiency is improved. In addition, for application manufacturers, when the electronic equipment of different manufacturers achieves the effect, different search open platforms are not needed to be accessed, so that the access cost for realizing cross-application search in the electronic equipment of different manufacturers can be reduced.
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 perform the various functions or steps performed by the handset 1 in the method embodiments described above. When the computer device is an electronic device, the structure thereof may refer to the structure of the electronic device 100 shown in fig. 2.
The present application also provides a chip system, as shown in fig. 8, 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 may be interconnected by wires. For example, interface circuit 802 may be used to receive signals from other devices (e.g., a memory of a computer apparatus). For another example, interface circuit 802 may be used to send signals to other devices (e.g., processor 801). The interface circuit 802 may, for example, read instructions stored in a memory and send the instructions to the processor 801. The instructions, when executed by the processor 801, may cause a computer device to perform the various steps of the embodiments described above. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
The embodiment of the present application also provides a computer readable storage medium, where the computer readable storage medium includes computer instructions, where the computer instructions, when executed on an electronic device (such as a mobile phone 1) described above, cause the electronic device to perform the functions or steps performed by the mobile phone 1 in the method embodiment described above.
The embodiment of the application also provides a computer program product, when the computer program product runs on a computer, the computer is caused to execute the functions or steps executed by the mobile phone 1 in the embodiment of the method. The computer may be an electronic device, such as a mobile phone 1.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (14)

1. An application content search method, wherein the method is applied to an electronic device, the method comprising:
receiving a search instruction input by a user;
responding to the search instruction, and searching a first content index file corresponding to the search instruction in a local index file stored in the electronic equipment; the local index file comprises one or more content index files corresponding to at least one application;
and displaying the application content corresponding to the search instruction based on the first content index file.
2. The method of claim 1, wherein after the receiving the user-entered search instruction, the method further comprises:
forwarding the search instruction to a search server;
receiving a second content index file which is searched by the search server from the online index file and corresponds to the search instruction; the online index file comprises one or more content index files corresponding to at least one application;
And displaying the application content corresponding to the search instruction based on the second content index file.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and responding to the triggering operation of the user on the target application content in the application contents corresponding to the search instruction, and skipping to display the application page corresponding to the target application content.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
after the electronic equipment installs a first application, a content index file corresponding to the first application is generated in a preset storage area of the electronic equipment through the first application.
5. The method according to any one of claims 1-4, further comprising:
after the electronic equipment updates the second application, updating the content index file corresponding to the second application stored in the preset storage area of the electronic equipment through the updated second application.
6. The method of claim 4 or 5, wherein the electronic device comprises a local search module; the method further comprises the steps of:
And the local search module acquires a content index file from the preset storage area at intervals of a preset time period, and updates the local index file based on the content index file.
7. The method of claim 6, wherein after the local search module obtains content index files from the preset storage area every preset time period, before the updating the local index files based on the content index files, the method further comprises:
the local search module reads a content identifier corresponding to the content index file;
the updating the local index file based on the content index file includes:
and 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.
8. The method of claim 7, wherein 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 a search server; the fourth content index file is used for indicating the search server to establish an online index file according to the fourth content index file.
9. The method according to any one of claims 4-8, wherein the preset storage area comprises: and the system public storage area of the electronic equipment or the storage area corresponding to the local search module of the electronic equipment.
10. The method according to any one of claims 1 to 9, wherein the content index file is generated or updated by the electronic device by calling a preset software development kit SDK in the target application after the target application corresponding to the content index file is installed or updated by the electronic device; wherein, the preset specification of the content index file is defined in the preset SDK.
11. The method according to any one of claims 1 to 9, wherein 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 specification of the content index file is defined in the preset document.
12. The method according to any one of claims 1-11, wherein the content index file to which the application corresponds comprises at least one of: cover pictures, titles, application identifications, icons, and jump links.
13. An electronic device, the electronic device comprising: a processor and a memory; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-12.
14. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-12.
CN202310009708.2A 2023-01-04 2023-01-04 Application content searching method and electronic equipment Pending CN117130981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310009708.2A CN117130981A (en) 2023-01-04 2023-01-04 Application content searching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310009708.2A CN117130981A (en) 2023-01-04 2023-01-04 Application content searching method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117130981A true CN117130981A (en) 2023-11-28

Family

ID=88857073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310009708.2A Pending CN117130981A (en) 2023-01-04 2023-01-04 Application content searching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117130981A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258198A1 (en) * 2010-02-12 2011-10-20 Microsoft Corporation Using behavior data to quickly improve search ranking
CN106687949A (en) * 2014-06-24 2017-05-17 谷歌公司 Search results for native applications
CN110609957A (en) * 2019-09-19 2019-12-24 青岛海信移动通信技术股份有限公司 Method, terminal and server for global search
CN112115228A (en) * 2019-06-19 2020-12-22 Oppo广东移动通信有限公司 Searching method, searching device, terminal and storage medium
CN112445960A (en) * 2019-09-02 2021-03-05 珠海市魅族科技有限公司 Method for searching correlation in application program framework and electronic equipment
CN115391398A (en) * 2022-08-24 2022-11-25 维沃移动通信有限公司 Information searching method and device, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258198A1 (en) * 2010-02-12 2011-10-20 Microsoft Corporation Using behavior data to quickly improve search ranking
CN106687949A (en) * 2014-06-24 2017-05-17 谷歌公司 Search results for native applications
CN112115228A (en) * 2019-06-19 2020-12-22 Oppo广东移动通信有限公司 Searching method, searching device, terminal and storage medium
CN112445960A (en) * 2019-09-02 2021-03-05 珠海市魅族科技有限公司 Method for searching correlation in application program framework and electronic equipment
CN110609957A (en) * 2019-09-19 2019-12-24 青岛海信移动通信技术股份有限公司 Method, terminal and server for global search
CN115391398A (en) * 2022-08-24 2022-11-25 维沃移动通信有限公司 Information searching method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
JP6858256B2 (en) Payment application separation methods and devices, as well as terminals
CN116431044A (en) Method and device for starting application program and terminal equipment
CN115481444B (en) File protection method and electronic equipment
EP4318258A1 (en) Page display method and apparatus
CN116048830B (en) Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN117130981A (en) Application content searching method and electronic equipment
CN114489689B (en) Application program installation method and system, electronic equipment and server
WO2020062192A1 (en) Operation control method and electronic device
CN116263652A (en) Wallpaper display method and electronic equipment
CN114138293A (en) Terminal and method for upgrading portable system of external memory card
CN113642010A (en) Method for acquiring data of extended storage device and mobile terminal
CN114138343A (en) Terminal and terminal starting method
CN116339562B (en) Shortcut input method and electronic device
CN114463730B (en) Page identification method and terminal equipment
CN117097793B (en) Message pushing method, terminal and server
CN116701299B (en) Catalog management method and related device
CN117135263B (en) Log information acquisition method, electronic device and computer readable storage medium
CN113850633B (en) Information pushing method and device
CN116089368B (en) File searching method and related device
CN116095685B (en) Protection method of key information and terminal equipment
US11991040B2 (en) Network configuration method and device
CN116702100B (en) Authority management method and electronic equipment
CN115017473B (en) Authorization method and electronic equipment
WO2024037346A1 (en) Page management method and electronic device
CN117707753A (en) Resource update control method, electronic equipment and chip system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination