File retrieval method and device, terminal and computer program product
Receive requests through the system global search portal and automatically jump to the target application, automatically searching and displaying files in the application are realized, solving the problems of limited and inefficient file retrieval in the prior art, and improving the efficiency of file retrieval.
Patent Information
- Application Number
- CN202411964355.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, file management applications lack access to application directories, resulting in limited file retrieval scope and inability to retrieve files in the application directories. Users need to manually search through the search portal of each application, which is inefficient.
Provides a file search method and device, which receives file search requests through the system global search portal, automatically jumps to the target application to which the target file belongs, and automatically performs the search operation in the target application, and finally displays the retrieved target file.
Even without the access permission of the application directory, the search for in-app files can be realized through the unified system global search portal, without the need for users to manually pass the search portal of different applications, improving the efficiency of file retrieval.
Smart Images

Figure CN119884037A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of retrieval technology, and in particular to a file retrieval method, device, terminal and computer program product. Background Art
[0002] In the daily use of terminals, users often receive, download or create files through applications. The relevant files are stored in the application path, which makes reading and retrieval inconvenient. Summary of the invention
[0003] The present application provides a file retrieval method, device, terminal and computer program product. The technical solution is as follows:
[0004] On the one hand, an embodiment of the present application provides a file retrieval method, the method comprising:
[0005] A file search request is received through a system global search entry, wherein the file search request is used to request to search for a target file;
[0006] Automatically jump to the target application to which the target file belongs, and automatically perform a search operation for the target file in the target application;
[0007] The retrieved target file is displayed.
[0008] On the other hand, an embodiment of the present application provides a file retrieval device, the device comprising:
[0009] A request receiving module, used for receiving a file search request through a system global search entry, wherein the file search request is used for requesting to search for a target file;
[0010] A retrieval module, used to automatically jump to a target application to which the target file belongs, and automatically perform a retrieval operation for retrieving the target file in the target application;
[0011] The display module is used to display the retrieved target file.
[0012] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the file retrieval method as described in the above aspects.
[0013] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the file retrieval method as described in the above aspects.
[0014] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the file retrieval method as described in the above aspects.
[0015] In the embodiment of the present application, the terminal provides a system global search entry. When a file search request for searching a target file is received through the entry, the terminal can determine and jump to the target application to which the target file belongs, and automatically perform a search operation on the target file in the target, and finally display the retrieved target file. By adopting the solution provided by the embodiment of the present application, even if there is no access permission to the application directory, the search for files in the application can be realized through the unified search entry provided by the system, without the need for users to search for files through the application search entries provided by different applications, which helps to improve the efficiency of file retrieval. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flowchart of a file retrieval method provided by an exemplary embodiment of the present application is shown;
[0017] Figure 2 is a schematic diagram of an implementation of a file retrieval process shown in an exemplary embodiment of the present application;
[0018] Figure 3 is a flow chart of an automatic retrieval operation implementation process shown in an exemplary embodiment of the present application;
[0019] Figure 4 It is a schematic diagram of an implementation of a process of obtaining an automated target retrieval script according to an exemplary embodiment of the present application;
[0020] Figure 5 is a flowchart of a process for recording a correspondence between file information and applications, shown in an exemplary embodiment of the present application;
[0021] Figure 6 is a schematic diagram of an interface of a file information extraction process shown in an exemplary embodiment of the present application;
[0022] Figure 7 is a flowchart of a file information extraction process shown in an exemplary embodiment of the present application;
[0023] Figure 8 is a schematic diagram of page text information shown in an exemplary embodiment of the present application;
[0024] Fig. 9 is a flowchart of a file retrieval process shown in an exemplary embodiment of the present application;
[0025] Fig.10 A structural block diagram of a file retrieval device provided by another exemplary embodiment of the present application is shown;
[0026] Fig.11 A schematic diagram of a terminal provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0028] The term "multiple" as used herein refers to two or more than two. "And / or," describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0029] In the related art, files received through an application are stored in the application directory of the application. Since the file management applications provided by the operating system do not have access to such application directories, they cannot retrieve files located in the application directory, resulting in a limited file search scope for file management applications, and often incomplete searches or failure to retrieve files. If further searches are required in the application directory of the application, users need to manually search for files through the search portals provided by different applications.
[0030] In the file retrieval solution provided by the embodiment of the present application, the terminal provides a system global retrieval portal. When a file retrieval request for retrieving a target file is received through the portal, the terminal can determine and jump to the target application to which the target file belongs, and automatically perform a retrieval operation on the target file in the target, and finally display the retrieved target file. After the solution is applied to the file management application provided by the operating system, even if the file management application does not have access rights to the application directory, it can still retrieve the files located in the application directory, and the user does not need to perform file retrieval through the retrieval portals provided by different applications, which helps to improve the efficiency of file retrieval.
[0031] The method provided in the embodiment of the present application can be used in terminals such as smart phones, tablet computers, and personal computers, and the method can be implemented by a file management application provided by an operating system in the terminal. For the convenience of description, the following embodiments are described by taking the execution subject as an example of a terminal.
[0032] Please refer to Figure 1, which shows a flowchart of a file retrieval method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method used in a terminal as an example, and the method may include the following steps:
[0033] Step 101: a file search request is received through a system global search portal, where the file search request is used to request to search for a target file.
[0034] Among them, the system global search entrance is a unified entrance for global search in the terminal, which supports searching files in native applications and third-party applications, that is, it supports system-level file retrieval.
[0035] In one possible implementation, the system global search entrance is set in a file management application (native application) provided by the operating system, or the system global search entrance is set in any interface or component that supports the search function provided by the operating system, such as a negative one screen interface, a drop-down bar interface, a global search card, a sidebar interface, etc.
[0036] In other possible implementations, the system global search portal may also be associated with a voice assistant, that is, the voice assistant uses the received voice instructions as input to the system global search portal.
[0037] In addition to the above-mentioned setting methods, the system global search portal can also adopt other setting forms according to needs. The embodiment of the present application does not limit the setting form of the system global search portal.
[0038] In some embodiments, the file search request received through the system global search portal may include at least one search content of text information, image information, and voice information, and the search content is used to directly or indirectly represent the target file requested for search.
[0039] For example, the file search request includes the target file name, the target file content description text, pictures similar to the target picture, the source of the target file, the creation time, etc. The embodiment of the present application does not limit the specific form of the search content included in the file search request.
[0040] Indicatively, Figure 2 As shown, the file management interface 21 of the file management application is provided with a system global search entry 211. Through the system global search entry 211, the user inputs the keyword "hiking" contained in the target file to be searched.
[0041] Step 102 : automatically jump to the target application to which the target file belongs, and automatically perform a search operation for the target file in the target application.
[0042] In a possible implementation, the terminal determines the target application to which the target file belongs and automatically jumps to the target application. After jumping to the target application, the terminal further performs a search operation for the target file in the target application, wherein the search scope of the search operation is the target application, that is, application-level file search is performed in the target application.
[0043] In some embodiments, the terminal executes an automated script to jump to the target application and automatically perform a search operation within the target application without the need for manual execution by the user.
[0044] Since the target application has access rights to its own application directory, the target file can be retrieved when a search operation is performed in the target application.
[0045] When performing a search operation in the target application, the search information used by the terminal may be the search content included in the file search request, or information further determined based on the search content included in the file search request.
[0046] Indicatively, Figure 2 As shown, after the terminal determines that the target file to be retrieved belongs to the chat application, it automatically jumps to the chat application and automatically performs the retrieval operation in the chat application, that is, the retrieval information "hiking route" is automatically entered in the search box 221 in the file retrieval interface 22 (my space) of the chat application.
[0047] Step 103: Display the retrieved target file.
[0048] When the target file exists in the target application, the terminal can retrieve the target file through the above application-level file retrieval and display the retrieved target file. The target file can be displayed in the target application or in other applications with file display function (the target application automatically jumps to other applications).
[0049] Indicatively, Figure 2 As shown, the terminal displays the retrieved target file 23 “hiking route.pdf”.
[0050] Optionally, if the search results do not meet the user's expectations, since the target application has been redirected, the user can further perform manual search in the target application. For example, when a rollback operation is received, the terminal rolls back from the search result interface displaying the target file to the application search interface of the target application, and receives the search information manually entered by the user in the application search interface.
[0051] In summary, in the embodiment of the present application, the terminal provides a system global search entry. When a file search request for searching a target file is received through the entry, the terminal can determine and jump to the target application to which the target file belongs, and automatically perform a search operation on the target file in the target, and finally display the retrieved target file. By adopting the solution provided in the embodiment of the present application, even if there is no access permission to the application directory, the search for files in the application can be realized through the unified search entry provided by the system, without the need for users to search for files through the application search entries provided by different applications, which helps to improve the efficiency of file retrieval.
[0052] In some embodiments, when the target application to which the target file belongs is a third-party application, the terminal jumps to the target application to which the target file belongs, and automatically performs a retrieval operation to retrieve the target file in the target application, wherein the files of the third-party application are stored in the application directory, and the system global retrieval entry does not have access rights to the application directory.
[0053] Optionally, when the target application to which the target file belongs is a native application, the terminal can perform file search in a conventional search manner and present the searched target file. The system global search entry has access rights to the application directory of the native application.
[0054] Regarding the method of realizing automatic jump and automatic retrieval of target applications, in a possible implementation, the terminal database stores the correspondence between the file information and the application to which the file belongs. The correspondence can be collected and generated during the use of the application, and the specific generation process of the correspondence will be described in the subsequent embodiments. Figure 3 As shown, the above step 102 may include the following sub-steps:
[0055] Step 102A, determining target file information of the target file and the target application to which the target file belongs from a database, wherein the database stores a correspondence between the file information of the file and the application to which the file belongs.
[0056] After receiving the file search request, the terminal determines the target file information of the target file from the database based on the search content included in the file search request, and further determines the target application to which the target file belongs.
[0057] Since the file search request input through the system global search entry may not clearly indicate the file name of the target file to be searched, for example, some keywords or description information of the target file are often input during fuzzy search, in order to improve the accuracy of file search, in a possible implementation, the process of determining the target file information and the target application may include the following steps:
[0058] Step 102A1, determining the file information in the database that matches the search content in the file search request as the target file information.
[0059] In a possible implementation, the terminal matches the search content included in the file search request with all or part of the file information in the database to obtain the matching degree between the search content and each piece of file information. Further, the terminal determines the file information with the highest matching degree and higher than a first matching degree threshold (such as 90%) as the target file information.
[0060] Optionally, when the file type of the target file can be determined based on the search content, the terminal may only match the file information of files of a specific type, thereby reducing the amount of calculation during matching.
[0061] For example, when the file type of the target file is determined to be a document based on the search content, the terminal can only match the file information of the document in the database with the search content; when the target file is determined to be a picture based on the search content, the terminal can only match the file information of the picture in the database with the search content.
[0062] In some embodiments, the file information in the database may be information in the form of text or information in the form of feature vectors. The feature vector information may be obtained by extracting features from the file content. For example, when the file is a picture, the feature vector information may be a picture feature vector obtained by extracting features from the picture; when the file is a document, the feature vector information may be a document feature vector obtained by extracting features from a document summary or a full text of the document.
[0063] Since the search content contained in the file retrieval request is in various forms, and the file information stored in the database is in various forms, in order to ensure the matching accuracy, the terminal needs to convert the search content so that the form of the converted search content is consistent with the form of the file information, thereby calculating the matching degree of the search content and file information with the same form.
[0064] Of course, if the format of the search content is consistent with the format of the file information, there is no need to convert the format of the search content.
[0065] In an illustrative example, when the search content is text, the terminal matches the text with the file information in text form; when the search content is a picture, the terminal generates a picture description text corresponding to the picture, thereby matching the picture description text with the file information in text form.
[0066] In order to improve the matching accuracy and success rate, in a possible implementation manner, the file information in the database includes basic file information and file content description information.
[0067] Optionally, the basic information of the file is information that can be directly extracted from the explicit information of the file, including but not limited to the file name, file type, file source, file creation time, file modification time, etc.
[0068] Optionally, file content description information is information used to describe deep-level features of the file content, which usually cannot be directly extracted from the file's explicit information, but is implicit information that needs to be extracted from the file itself through specific technical means, including but not limited to image content description information, multimedia content description information, document content description information, chat content description information, etc.
[0069] In a possible implementation, the terminal may determine the target file information matching the search content in a manner of "matching the basic file information first, and then matching the file content description information". The process may include the following sub-steps:
[0070] Sub-step 1, matching the basic file information in the file information with the search content.
[0071] The terminal first matches the search content with the basic file information in the file information to determine the matching degree between the search content and each file information. If there is basic file information with a matching degree higher than the first matching degree threshold, the terminal determines that there is basic file information matching the search content and executes sub-step 2; if there is no basic file information with a matching degree higher than the first matching degree threshold, the terminal executes sub-step 3.
[0072] Optionally, in the case where there are multiple types of basic file information, the terminal determines the content type (one or more) of the searched content, thereby matching the searched content with the basic file information matching the content type, wherein the content type includes but is not limited to file name, file type, file source, file creation time, file modification time, etc.
[0073] Optionally, the content type of the retrieved content may be obtained by classification by the terminal through a local classification model, or by classification with the aid of a large language model, which is not limited in this embodiment.
[0074] Illustratively, when the search content is "hiking plan", the terminal determines that the content type of the search content is a file name, thereby matching the search content with the basic file information belonging to the file name; when the search content is "Zhang San sent me a photo", the terminal determines that the content type of the search content includes the file type (picture) and the file source (Zhang San), thereby matching the search content with the basic file information belonging to the file source and the file type.
[0075] Sub-step 2: when there is basic file information matching the search content, determine the file information to which the matching basic file information belongs as the target file information.
[0076] In the case that there is basic file information matching the search content, the terminal determines the file information to which the basic file information belongs as the target file information.
[0077] Sub-step 3: When there is no basic file information matching the search content, match the file content description information in the file information with the search content.
[0078] In the case where the searched content is not the explicit file information of the target file, but the implicit file information of the target file, the terminal may not be able to determine the basic file information that matches the searched content. At this time, the terminal further matches the searched content with the file content description information to determine the degree of match between the searched content and the file content description information. If there is file content description information with a matching degree higher than the first matching degree threshold, the terminal determines that there is file content description information that matches the searched content, and executes sub-step 4; if there is no file content description information with a matching degree higher than the first matching degree threshold, the terminal determines that the target file has not been retrieved.
[0079] In some embodiments, the terminal traverses the file content description information of each file information and calculates its matching degree with the search content; or, the terminal filters out candidate file information based on the matching results between the basic file information and the search content, and calculates the matching degree between the file content description information in the candidate file information and the search content.
[0080] Optionally, the matching degree between the basic file information in the candidate file information and the search content is lower than a first matching degree threshold and higher than a second matching degree threshold.
[0081] For example, when the search content is "a photo containing a cat", the terminal cannot determine the basic information of the file whose matching degree with the search content is higher than the first matching degree threshold (it can only match the photo, but cannot match the cat based on the basic information of the file). At this time, the terminal further determines the file information corresponding to the photo as the candidate file information.
[0082] In a possible implementation, when the file content description information and the search content are both in text form, the terminal can perform text vectorization processing on the file content description information and the search content to obtain a text content description vector and a search content vector, and determine the degree of match between the text content description information and the search content by calculating the vector distance between the vectors. Among them, the text vectorization processing can be implemented by a bag-of-words model, a word frequency-inverse document frequency model, and an N-gram model, which is not limited in the embodiments of the present application.
[0083] Of course, when the file content description information is stored in a vector form, the terminal only needs to perform vectorization processing on the search content, and this embodiment does not limit this.
[0084] In other possible implementations, when the search content is in the form of pictures or multimedia, the terminal can perform image feature extraction or multimedia feature extraction on the search content, and match the obtained search content image features or search content multimedia features with the file content description information in the feature form, thereby determining the matching degree between the text content description information and the search content based on the feature similarity between the features. The file content description information in the feature form can be obtained by performing image feature extraction or multimedia feature extraction on the file (using the same feature extraction method as the search content).
[0085] In addition to the above matching methods, the terminal may also use other methods to match the file content description information with the search content, such as keyword matching, semantic similarity calculation, etc. The embodiments of the present application do not limit the specific matching method.
[0086] Illustratively, when the search content is "a photo containing a cat", the terminal cannot determine the basic information of the file that matches the search content. The terminal further performs text vectorization on the search content to obtain a search content vector, and calculates the vector distance between the search content vector and the text content description vector, and determines the matching text content description vector based on the vector distance.
[0087] Sub-step 4: when there is file content description information matching the searched content, the file information to which the matching file content description information belongs is determined as the target file information.
[0088] In the case that there is file content description information matching the search content, the terminal determines the file information to which the file content description information belongs as the target file information, that is, determines the file represented by the target file information as the target file.
[0089] Of course, in other possible implementations, the terminal may also match the search content with the basic information of the file, and match the search content with the file content description information, thereby comprehensively determining the matching degree of the search content and the file information based on the matching results of the two (for example, weighting the two matching degrees), and then determining the target file information matching the search content, so as to improve the accuracy of the determined target file information. This embodiment is not limited to this.
[0090] Step 102A2: determine the application corresponding to the target file information in the database as the target application.
[0091] After determining the target file information, the terminal determines the target application to which the target file belongs based on the correspondence between the file information and the application to which the file belongs in the database.
[0092] In an illustrative example, the correspondence between the file information and the application in the database is shown in Table 1.
[0093] Table 1
[0094] File information application File Information 1 A Application File Information 2 B Application File Information 3 A Application
[0095] When it is determined that the target file information is file information 1, the terminal determines application A as the target application to which the target file belongs.
[0096] Step 102B, automatically jump to the target application, and automatically perform a search operation for the target file in the target application based on the target file information.
[0097] After determining the target application, the terminal automatically jumps to the target application. In a possible implementation, the terminal jumps to the target application by executing an automated script based on the application package name of the target application, or the terminal injects the application package name of the target application into the application self-starting instruction, thereby starting and jumping to the target application by executing the application self-starting instruction.
[0098] In some embodiments, the terminal stores automatic search scripts for different applications. After determining the target application, the terminal implements an automatic search operation in the target application based on the target automatic search script corresponding to the target application. In a possible implementation, the automatic search process in the target application may include the following steps:
[0099] Step 102B1, obtaining a target automated retrieval script corresponding to the target application, where the target automated retrieval script is an automated script that simulates a file retrieval operation in the target application.
[0100] In a possible implementation, the terminal obtains the target automatic search script corresponding to the target application based on the correspondence between the application and the automatic search script. A single application may correspond to a single automatic search script, or a single application may correspond to multiple automatic search scripts, and different automatic search scripts correspond to different search entries in the application.
[0101] Regarding the source of the automatic search script, in a possible implementation, the automatic search script is obtained through a file search operation in the barrier-free recording application. The recording process can be executed by the server and sent to the terminal.
[0102] Since the interfaces of different versions of the same application may be different, in order to ensure the accuracy of automated retrieval operations within the application, the automated retrieval scripts correspond to their respective application version numbers. Accordingly, the terminal obtains the target automated retrieval script based on the application identifier of the target application and the application version number of the target application currently installed on the terminal.
[0103] If the application version number of the target application currently installed in the terminal is inconsistent with the application version number corresponding to the target automatic search script stored locally in the terminal, the terminal can obtain the target automatic search script corresponding to the local application version number of the terminal from the server.
[0104] Indicatively, Figure 4 As shown, the terminal obtains the target automatic retrieval script of the target application under the local application version number from the server based on the application identifier of the target application and the local application version number.
[0105] In other possible implementations, the terminal may also obtain the automatic search script corresponding to the latest application version number from the server each time the application is updated, which is not limited in this embodiment.
[0106] In an illustrative example, an illustrative automated search script is as follows: click the search box → paste the search information in the search box → click the search control → click the search result.
[0107] Step 102B2, based on the target file information and the target automated retrieval script, automatically perform a retrieval operation for retrieving the target file in the target application.
[0108] When performing a search operation through the target automated search script, you need to enter the search information in the search entry provided by the target application. Since the target application has access rights to its own application directory, when executing the target automated search script, the target application can find the corresponding target file in the application directory based on the search information.
[0109] Optionally, the retrieval information is extracted from the target file information.
[0110] In a possible implementation, the target file information includes a target file name of the target file. The terminal uses the target file name as search information and executes it together with a target automated search script to retrieve the target file in the target application.
[0111] In a possible implementation, when the target application includes at least two in-application search entries, the target automated search script corresponding to the target application includes a first target automated search script corresponding to an in-application global search entry, and a second target automated search script corresponding to a different in-application non-global search entry.
[0112] Optionally, the application global search entry is used to trigger the search for all files under the application, while the non-global search entry within the application is used to trigger the search for files of a specific type, a specific path, or a specific functional module.
[0113] Indicatively, for an instant messaging application, in addition to providing a global search entry for the application, a chat content search entry is provided in the chat function, a file search entry is provided in the file function, etc. Among them, the chat content search entry is used to search for specific chat content, and the file function search entry is used to search for received or sent files.
[0114] Accordingly, the terminal may perform a retrieval operation in at least one of the following ways.
[0115] Method 1: Based on the target file information and the first target automatic search script, a search operation for searching the target file is automatically performed in the global search entry within the target application.
[0116] Optionally, the terminal fills the target file information into the first target automatic search script as the search information, and automatically performs the search operation of searching the target file in the global search entry within the target application by executing the first target automatic search script filled with the search information.
[0117] Method 2: Based on the target file information, determine the second target automated search script; based on the target file information and the second target automated search script, automatically perform a search operation for the target file in a non-global search entry within the target application.
[0118] In order to achieve more accurate file retrieval, in one possible implementation, the terminal can determine a non-global search entry within the application that has the function of retrieving the target file based on the target file information, and further determine a second target automated search script corresponding to the non-global search entry within the application.
[0119] Optionally, the terminal may determine an in-application non-global search entry that has a function of searching for the target file based on the file type included in the target file information and the file types supported by the in-application non-global search entries for searching files.
[0120] Optionally, the terminal is provided with a correspondence between the file type and the non-global search entry within the application, and the terminal determines the non-global search entry within the application for searching the target file according to the correspondence.
[0121] Illustratively, when the file type included in the target file information is a chat record file, the terminal determines that the chat content retrieval entry provided by the chat function is a non-global retrieval entry within the target application for retrieval. When the file type included in the target file information is a document, the terminal determines that the file retrieval entry provided in the file function is a non-global retrieval entry within the target application for retrieval of the target file.
[0122] Optionally, the terminal fills the target file information into the second target automatic search script as the search information, and automatically performs the search operation of searching the target file in the determined non-global search entry within the application by executing the second target automatic search script filled with the search information.
[0123] It should be noted that the terminal can select one of the above methods to execute, or can first use the above method 1 to search, and if no file is retrieved, further use the above method 2 to search, which will not be described in detail in this embodiment.
[0124] In this embodiment, the terminal performs search content matching based on the basic information of the file and the file content description information, and determines the target file information based on the matching result, thereby increasing the matching success rate and improving the accuracy of the determined target file information, thereby improving the accuracy of subsequent retrieval. In addition, the user does not need to accurately input the file name of the target file, thereby improving the retrieval success rate of fuzzy retrieval.
[0125] In addition, in addition to being able to implement in-application file retrieval based on the automated retrieval script corresponding to the in-application global retrieval entry, the terminal can also determine the in-application non-global retrieval entry for retrieving the target file based on the target file information, and then implement in-application file retrieval based on the automated retrieval script corresponding to the in-application non-global retrieval entry, which helps to improve the in-application retrieval success rate and retrieval accuracy.
[0126] Regarding the generation method of the corresponding relationship in the database, in a possible implementation, the corresponding relationship is recorded when there is a file click event in the application. Figure 5 As shown, the corresponding relationship generation process may include the following steps:
[0127] Step 501: when there is a file click event, extract file information from an event message corresponding to the file click event and an application page.
[0128] Because before and after the file click event is triggered, the application page displayed by the terminal usually contains the file information of the file, and after the user triggers the file click event, the terminal usually launches a new activity and passes the file information of the file to be opened to the new activity, therefore, in the embodiment of the present application, the terminal can simultaneously listen to the file click event and extract the file information from the event message corresponding to the file click event and the application page.
[0129] In a possible implementation, the terminal may implement file click event monitoring in at least one of the following ways:
[0130] Method 1: When a page jump is monitored and the pages before and after the jump belong to a target page pair, it is determined that there is a file click event, and the target page pair includes the pages before and after the file click operation in the application.
[0131] Optionally, the terminal stores page identifiers of pages in an application with a file viewing function, wherein the page identifiers can be stored in the form of target page pairs, each target page pair including a page identifier of the application page before the file click operation and a page identifier of the application page after the file click operation.
[0132] Optionally, the terminal determines the target page pair corresponding to the current application, and when monitoring the page jump, detects whether the pages before and after the jump belong to the target page pair. If so, it is determined that there is a file click event; if not, it is determined that there is no file click event.
[0133] Indicatively, Figure 6 As shown, when the user clicks on the file 611 in the first page 61, the terminal monitors the page jump in the application, and the pages of the first page 61 before the jump and the second page 62 after the jump belong to the target page pair (com.ss.android.lark / com.xxx.ee.bear.lark.route.SpaceRouteActivity, com.ss.android.lark / com.xxx.ee.bear.drive.core.DriveActivity), the terminal determines that there is a file click event.
[0134] Method 2: When a trigger operation on a target control in the page is identified, it is determined that there is a file click event, and the target control is a control in the application that triggers file viewing.
[0135] Optionally, the terminal stores the control identifier of the control that triggers the file viewing function in the application, that is, the control identifier of the target control. During the application running process, the terminal monitors whether the target control is triggered, and when the trigger operation on the target control is monitored, determines that there is a file click event.
[0136] Of course, in addition to the above-mentioned file click event monitoring method, other methods can also be used to monitor file click events, which is not limited in this embodiment.
[0137] like Figure 7 As shown, in the case of a file click event, extracting file information may include the following sub-steps:
[0138] Step 501A: extract first file information from an event message corresponding to the file click event based on a first information extraction rule corresponding to the application to which the file click event belongs.
[0139] Since the message format, content and type of information contained in event messages corresponding to file click events in different applications are different, in order to improve the accuracy of the first file information extracted from the event message, the event messages corresponding to file click events in different applications are pre-parsed, and the first information extraction rules of the event messages of different applications are determined based on the parsing results.
[0140] Optionally, the process of parsing the event message and generating the first information extraction rule may be executed by the server, and the server sends the first information extraction rule to the terminal for use by the terminal.
[0141] In a possible implementation, since the message format or message content of event messages in different application versions of the same application may be different, the terminal obtains application information of the application to which the file click event belongs, and the application information includes an application identifier and an application version, thereby obtaining a first information extraction rule that matches the application information. Different applications correspond to their own first information extraction rules, and different application versions of the same application correspond to their own first information extraction rules.
[0142] The terminal may obtain the first information extraction rule matching the application information by way of a server request.
[0143] Correspondingly, in the case where there is a file click event, the terminal determines the first information extraction rule corresponding to the application based on the application to which the file click event belongs.
[0144] In a possible implementation manner, the first information extraction rule may be in the form of a regular expression, and is used to extract the first file information from the event message according to the message format of the event message.
[0145] In some embodiments, after receiving a file click operation, a new activity is usually launched through an Intent (intent), and the file information is passed to the newly created activity through an Intent message, so that the terminal can obtain file information such as file name and file size by parsing the Intent message. Optionally, the terminal can extract the file name and file size from the String information in the Intent extra; and / or, extract the file information from the Parcelable information in the Intent extra.
[0146] Of course, the terminal may also extract the first file information from other types of event messages, which is not limited in this embodiment.
[0147] Indicatively, Figure 6 As shown, when it is determined that there is a file click event, the terminal extracts the first file information of file 611 from the String information of the Intent extra, including the file name "hiking route.pdf" and the file size "1.2MB".
[0148] Step 501B: extract the second file information from the page text information of the application page based on the second information extraction rule corresponding to the application to which the file click event belongs.
[0149] In a possible implementation, the terminal obtains the application page through the system interface, and further obtains all page text information contained in the application page through the system interface. The page text information includes visible and invisible text information in the application interface. Of course, in other possible implementations, the terminal can also extract the page text information of the application page through OCR and other methods, which is not limited in this embodiment.
[0150] Optionally, the terminal obtains page text information of the application page before the jump (because the application page before the jump usually contains a large amount of file information), or the terminal obtains page text information of the application page before and after the jump.
[0151] Schematically, the terminal obtains the page text information of the first page 61 such as Figure 8 shown.
[0152] Since there are significant differences between application pages of different applications and there are significant differences in the formats of page text information, in order to improve the accuracy of the second file information extracted from the page text information, the page text information of application pages in different applications is pre-parsed, and the second information extraction rules for the page text information of different applications are determined based on the parsing results.
[0153] Optionally, the process of parsing the page text information and generating the second information extraction rule may be executed by the server, and the server sends the second information extraction rule to the terminal for use by the terminal.
[0154] In a possible implementation, since the layout and page content of the same application page under different application versions of the same application may be different, the terminal obtains the application information of the application to which the file click event belongs, and the application information includes the application identifier and the application version, so as to obtain the second information extraction rule matching the application information. Different applications correspond to their own second information extraction rules, and different application versions of the same application correspond to their own second information extraction rules.
[0155] The terminal may obtain the second information extraction rule matching the application information by way of a server request.
[0156] Correspondingly, in the case where there is a file click event, the terminal determines the second information extraction rule corresponding to the application based on the application to which the file click event belongs and the local application version of the application.
[0157] In a possible implementation, the second information extraction rule may be in the form of a regular expression, and is used to extract the second file information from the page text information according to the message format of the page text information.
[0158] Since the page text information contains more content, the terminal may adopt the following strategy to extract the second file information from the page text information of the application page.
[0159] Strategy 1: When the first file information is not extracted, based on the second information extraction rule corresponding to the application to which the file click event belongs, the page text information of the application page is fully matched and extracted to obtain the second file information.
[0160] When the first file information is not obtained through the above step 501A, due to lack of reference, the terminal needs to perform full matching extraction on the page text information based on the second information extraction rule to obtain all the second file information contained in the application page.
[0161] Combination Figure 8 The terminal extracts the second file information "My Space" from the page text information based on the second information extraction rule for extracting the file name and the file modification time ("{name}\nModified at {time}\n") as shown in Table 2; and extracts the second file information "My Space" from the page text information based on the second information extraction rule for extracting the file source ("\w+\n{source}").
[0162] Table 2
[0163] File name File modification time Weekly work report.doc December 21, 10:01 Hiking route.pdf December 24, 19:12 data.xls December 20, 12:15 Work Summary.ppt December 19, 07:55
[0164] Strategy 2: When the first file information is extracted, determine the text position of the page matching text in the page text information that matches the first file information; at the text position of the page matching text, based on the second information extraction rule corresponding to the application to which the file click event belongs, perform local matching extraction on the page text information of the application page to obtain the second file information.
[0165] When the first file information is extracted, the terminal can use the first file information as a reference to locate the approximate position of the file information of the clicked file from the page text information, and then perform local matching extraction near the approximate position based on the second information extraction rule to obtain the second file information of the clicked file.
[0166] In one possible implementation, the terminal determines the text in the page text information that is consistent with the first file information as the page matching text, and determines the local page area containing the file position with the text position of the page matching text in the page text information as the center, thereby performing information extraction in the local page area based on the second information extraction rule to obtain the second file information.
[0167] Compared with global matching extraction, local matching extraction is more efficient and can accurately obtain the file information of the clicked file, which facilitates the subsequent association of the file content description information with the basic file information of the clicked file.
[0168] Combination Figure 8 The page text information shown, when the extracted first file information includes the file name of the clicked file "hiking route.pdf", the terminal extracts the file modification time of the clicked file as "December 24, 19:12" based on the file name and the second information extraction rule for extracting the file modification time ("hiking route.pdf\nmodified at {time}\n").
[0169] It should be noted that, in addition to extracting the second file information of the clicked file through local matching, the terminal can also extract the second file information of other non-clicked files in the page through global matching, which is not limited in this embodiment.
[0170] Step 501C: determine file information based on the first file information and the second file information.
[0171] Optionally, the terminal determines a union of the first file information and the second file information as the file information.
[0172] In some embodiments, when the first file information and the second file information are extracted, the terminal determines the union of the first file information and the second file information as the file information of the clicked text; when the second file information is not extracted, the terminal determines the second file information as the file information of the file contained in the application page.
[0173] Step 502: Store the correspondence between the file information and the application to which the file click event belongs in a database.
[0174] Since only the application to which the file belongs is needed when extracting the file information, the terminal associates and stores the extracted file information with the application information of the application, so that the application to which the file belongs can be determined based on the file information later.
[0175] In this embodiment, the terminal extracts text information from the event message of the file click event and / or the page text information of the application page, thereby improving the comprehensiveness of the extracted text information. Furthermore, when the text information is extracted from the event message, the terminal uses the text information as a reference to perform local matching extraction on the page text information, thereby ensuring the accuracy of the extracted text information and reducing the amount of calculation during matching extraction.
[0176] In addition, corresponding information extraction rules are set for applications and application versions to ensure the success rate and accuracy of information extraction.
[0177] The file information extracted by the solution provided by the above embodiment is usually basic file information. In order to obtain deeper information about the file for use in subsequent retrieval, in a possible implementation manner, the terminal generates file content description information of the file indicated by the file click event, and determines the file content description information as the file information.
[0178] In some embodiments, since the specific content of the file is usually displayed on the page after the jump, the terminal generates file content description information of the file indicated by the file click event based on the page after the jump.
[0179] Indicatively, Figure 6 As shown, the terminal extracts the file content description information of the clicked file 611 from the second page 62 after the jump.
[0180] For different types of files, extracting file content description information may include the following situations:
[0181] Case 1: When the file indicated by the file click event is a picture, the picture content description information of the picture is generated based on the content recognition result of the picture.
[0182] Among them, the content recognition result of the image may include image content (such as entities contained), image type (such as portrait, landscape), image style (such as realism, animation), etc., which is not limited in this embodiment.
[0183] Optionally, the terminal performs content recognition on the image through a neural network model to obtain a picture content recognition result, wherein the picture content recognition result can be in text form. The neural network model can be a lightweight model deployed locally on the terminal or a model deployed on the server side, which is not limited in this embodiment.
[0184] Optionally, in addition to using the content recognition result as the picture content description information, the terminal may also use other information representing the picture content characteristics such as a picture screenshot or a picture feature vector as the picture content description information, which is not described in detail in this embodiment.
[0185] Case 2: When the file indicated by the file click event is multimedia, multimedia content description information of the multimedia is generated based on the multimedia content recognition result.
[0186] The multimedia content recognition result may include multimedia content (such as included entities), multimedia types (such as documentaries, scenery, animation), multimedia themes, etc., which are not limited in this embodiment.
[0187] Optionally, the terminal performs content recognition on multimedia through a neural network model to obtain a multimedia content recognition result, wherein the multimedia content recognition result can be in text form. The neural network model can be a lightweight model deployed locally on the terminal or a model deployed on the server side, which is not limited in this embodiment.
[0188] Optionally, in addition to using the content recognition result as the image content description information, the terminal may also use other information representing multimedia content features such as video screenshots, voice clips or multimedia feature vectors as multimedia content description information, which is not described in detail in this embodiment.
[0189] Case 3: When the file indicated by the file click event is a document, document content description information of the document is generated based on the text summary information of the document.
[0190] Optionally, the terminal performs summary processing on the text in the document to obtain text summary information of the document. When the document contains pictures, the terminal can also generate picture description information of the pictures, thereby performing summary processing together with the text to obtain text summary information.
[0191] Optionally, the terminal may generate text summary information of the document through a local summary generation model, or may generate text summary information of the document through a local large language model, which is not limited in this embodiment.
[0192] Optionally, in addition to using the text summary information as the document content description information, the terminal may also use other information representing document content features such as keywords and text vectors as the document content description information, which is not described in detail in this embodiment.
[0193] Case 4: When the file indicated by the file click event is a chat record, chat content description information of the chat record is generated based on the chat party information and chat content summary information of the chat record.
[0194] For files such as chat records, the terminal can extract information about the chat parties involved in the chat from the chat records, including but not limited to the number of chatters and chat party identifiers, and extract a summary of the chat content to obtain chat content summary information.
[0195] Optionally, the process of extracting chat party information and chat content summary information can be achieved by a large language model locally in the terminal. For example, after the chat record and the prompt information indicating the content to be extracted are input into the large language model, the chat party information and chat content summary information output by the large language model are obtained.
[0196] Optionally, the chat party information and chat content summary information may be in text form.
[0197] Optionally, in addition to using chat party information and chat content summary information as chat content description information, the terminal may also use other information characterizing chat content features such as chat topic and key chat information as chat content description information, which is not elaborated in this embodiment.
[0198] The above only describes the method for generating content description information of common types of files. For other types of files, various forms of content description information can be generated in appropriate ways, and the embodiments of the present application are not limited to this.
[0199] In an illustrative example, the complete process of the terminal performing document retrieval is as follows: Fig. 9 shown.
[0200] Step 901, obtaining the Intent message in the application.
[0201] In some embodiments, when a file click event is monitored, the terminal obtains an Intent message in the current application.
[0202] Step 902: Acquire information extraction rules based on the application identifier and the application version.
[0203] In some embodiments, the information extraction rules include a first information extraction rule and a second information extraction rule.
[0204] Step 903: whether there is a matching information extraction rule.
[0205] If there is a matching information extraction rule, step 904 is executed; if there is no matching information extraction rule, step 913 is executed.
[0206] Step 904: parse the Intent message based on the first information extraction rule.
[0207] Step 905: extract page text information.
[0208] In some embodiments, the terminal obtains the page text information of the application page before the jump page through the system interface.
[0209] Step 906: Whether the first file information is obtained by parsing the Intent message.
[0210] If the first file information is obtained through parsing, step 908 is executed; if the first file information is not obtained through parsing, step 907 is executed.
[0211] Step 907: Fully match the page text information based on the second information extraction rule.
[0212] Step 908, locating the text position based on the first file information.
[0213] Step 909: locally match the page text information at the text position based on the second information extraction rule.
[0214] Step 910: Check whether the second file information is matched.
[0215] If the second file information is obtained by matching, step 911 is executed; if the second file information is not obtained by matching, step 912 is executed.
[0216] Step 911, write the correspondence between the file information and the application into the database.
[0217] Step 912: Report that the information extraction rule is invalid.
[0218] Step 913: Report the lack of information extraction rules.
[0219] It should be noted that in the above embodiments, all information acquisition and processing are performed with the user's permission, such as asking the user whether to execute through a pop-up window, and executing after receiving the permission operation. In addition, the acquired information and the processing process all require the privacy information to be desensitized.
[0220] Please refer to Fig.10 , which shows a structural block diagram of a file retrieval device provided by an exemplary embodiment of the present application. The device includes:
[0221] A request receiving module 1001 is used to receive a file search request through a system global search entry, wherein the file search request is used to request to search for a target file;
[0222] A retrieval module 1002 is used to automatically jump to a target application to which the target file belongs, and automatically perform a retrieval operation for retrieving the target file in the target application;
[0223] The display module 1003 is used to display the retrieved target file.
[0224] Optionally, the retrieval module 1002 is used to:
[0225] Determine target file information of the target file and the target application to which the target file belongs from a database, wherein the database stores a correspondence between the file information of the file and the application to which the file belongs;
[0226] Automatically jump to the target application, and automatically perform a search operation for retrieving the target file in the target application based on the target file information.
[0227] Optionally, the retrieval module 1002 is used to:
[0228] Determine the file information in the database that matches the search content in the file search request as the target file information;
[0229] An application corresponding to the target file information in the database is determined as the target application.
[0230] Optionally, the file information includes basic file information and file content description information, and the retrieval module 1002 is used to:
[0231] Matching the basic file information in the file information with the search content;
[0232] In the case where there is the basic file information matching the search content, determining the file information to which the matching basic file information belongs as the target file information;
[0233] In the case where there is no basic file information matching the search content, matching the file content description information in the file information with the search content;
[0234] In the case that the file content description information matching the search content exists, the file information to which the matching file content description information belongs is determined as the target file information.
[0235] Optionally, the retrieval module 1002 is used to:
[0236] Obtaining a target automated retrieval script corresponding to the target application, wherein the target automated retrieval script is an automated script that simulates a document retrieval operation in the target application;
[0237] Based on the target file information and the target automatic retrieval script, a retrieval operation for retrieving the target file is automatically performed in the target application.
[0238] Optionally, when the target application includes at least two in-application search entries, the target automatic search script corresponding to the target application includes a first target automatic search script corresponding to an in-application global search entry, and a second target automatic search script corresponding to a different in-application non-global search entry;
[0239] Optionally, the retrieval module 1002 is used to:
[0240] Based on the target file information and the first target automated search script, automatically performing a search operation for the target file in the in-application global search entry of the target application; and / or,
[0241] Based on the target file information, determine the second target automatic retrieval script; based on the target file information and the second target automatic retrieval script, automatically perform a retrieval operation to retrieve the target file in the non-global retrieval entry within the application of the target application.
[0242] Optionally, the corresponding relationship in the database is recorded when there is a file click event in the application;
[0243] The device also includes a recording module, which is used to:
[0244] In the case where the file click event exists, extracting the file information from the event message corresponding to the file click event and the application page;
[0245] The correspondence between the file information and the application to which the file click event belongs is stored in the database.
[0246] Optional, logging module for:
[0247] Extracting first file information from the event message corresponding to the file click event based on a first information extraction rule corresponding to the application to which the file click event belongs;
[0248] Extracting second file information from page text information of the application page based on a second information extraction rule corresponding to the application to which the file click event belongs;
[0249] The file information is determined based on the first file information and the second file information.
[0250] Optional, logging module for:
[0251] If the first file information is not extracted, based on the second information extraction rule corresponding to the application to which the file click event belongs, the page text information of the application page is fully matched and extracted to obtain the second file information;
[0252] When the first file information is extracted, the text position of the page matching text in the page text information that matches the first file information is determined; at the text position of the page matching text, based on the second information extraction rule corresponding to the application to which the file click event belongs, the page text information of the application page is locally matched and extracted to obtain the second file information.
[0253] Optional, logging module for:
[0254] Obtain application information of the application to which the file click event belongs, the application information including application identifier and application version;
[0255] Acquire the first information extraction rule and the second information extraction rule matching the application information;
[0256] Different applications correspond to their respective first information extraction rules and second information extraction rules, and different application versions of the same application correspond to their respective first information extraction rules and second information extraction rules.
[0257] Optional, logging module for:
[0258] When a page jump is detected and the pages before and after the jump belong to a target page pair, it is determined that the file click event exists, and the target page pair includes the pages before and after the file click operation in the application; and / or,
[0259] When a trigger operation on a target control in the page is identified, it is determined that the file click event exists, and the target control is a control in the application that triggers file viewing.
[0260] Optionally, the file information extracted from the event message and the application page is basic file information;
[0261] Logging module for:
[0262] Generate file content description information of the file indicated by the file click event;
[0263] The file content description information is determined as the file information.
[0264] Optional, logging module for:
[0265] In the case where the file indicated by the file click event is a picture, generating picture content description information of the picture based on a content recognition result of the picture;
[0266] In the case where the file indicated by the file click event is multimedia, generating multimedia content description information of the multimedia based on the content recognition result of the multimedia;
[0267] In the case where the file indicated by the file click event is a document, generating document content description information of the document based on text summary information of the document;
[0268] In the case that the file indicated by the file click event is a chat record, chat content description information of the chat record is generated based on the chat party information and chat content summary information of the chat record.
[0269] Optionally, the retrieval module 1002 is used to:
[0270] In the case that the target application to which the target file belongs is a third-party application, the system automatically jumps to the target application to which the target file belongs, and automatically performs a retrieval operation for retrieving the target file in the target application, wherein the files of the third-party application are stored in an application directory, and the system global retrieval entry does not have access rights to the application directory.
[0271] In summary, in the embodiment of the present application, the terminal provides a system global search entry. When a file search request for searching a target file is received through the entry, the terminal can determine and jump to the target application to which the target file belongs, and automatically perform a search operation on the target file in the target, and finally display the retrieved target file. By adopting the solution provided in the embodiment of the present application, even if there is no access permission to the application directory, the search for files in the application can be realized through the unified search entry provided by the system, without the need for users to search for files through the application search entries provided by different applications, which helps to improve the efficiency of file retrieval.
[0272] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0273] See also Fig.11 , Fig.11 11 is a schematic diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal may also include one or more of the following components: a processor 1110 and a memory 1120.
[0274] Optionally, the processor 1110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
[0275] The processor 1110 may integrate one or a combination of a central processing unit (CPU), a graphics processor (GPU), a neural network processor (NPU), and a baseband chip. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch screen; the NPU is used to implement artificial intelligence (AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above-mentioned baseband chip may not be integrated into the processor 1110, but may be implemented by a single chip.
[0276] The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1120 includes a non-transitory computer-readable storage medium. The memory 1120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device, etc.
[0277] In addition, those skilled in the art will understand that the structure of the terminal shown in the above figures does not constitute a limitation on the terminal, and the terminal may include more (such as a power supply component, a display component, a sensor component) or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0278] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the file retrieval method as described in the above embodiment.
[0279] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the file retrieval method described in the above embodiment.
[0280] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0281] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A file retrieval method, characterized in that: The method comprises: A file search request is received through a system global search entry, wherein the file search request is used to request to search for a target file; Automatically jump to the target application to which the target file belongs, and automatically perform a search operation for the target file in the target application; The retrieved target file is displayed.
2. The method according to claim 1, characterized in that The automatically jumping to the target application to which the target file belongs, and automatically performing a search operation for the target file in the target application, includes: Determine target file information of the target file and the target application to which the target file belongs from a database, wherein the database stores a correspondence between the file information of the file and the application to which the file belongs; Automatically jump to the target application, and automatically perform a search operation for retrieving the target file in the target application based on the target file information.
3. The method according to claim 2, characterized in that The determining the target file information of the target file and the target application to which the target file belongs from the database includes: Determine the file information in the database that matches the search content in the file search request as the target file information; An application corresponding to the target file information in the database is determined as the target application.
4. The method according to claim 3, characterized in that The file information includes basic file information and file content description information; The step of determining the file information in the database that matches the search content in the file search request as the target file information comprises: Matching the basic file information in the file information with the search content; In the case where there is the basic file information matching the search content, determining the file information to which the matching basic file information belongs as the target file information; In the case where there is no basic file information matching the search content, matching the file content description information in the file information with the search content; In the case that the file content description information matching the search content exists, the file information to which the matching file content description information belongs is determined as the target file information.
5. The method according to claim 2, characterized in that: The automatically performing a retrieval operation of retrieving the target file in the target application based on the target file information includes: Obtaining a target automated retrieval script corresponding to the target application, wherein the target automated retrieval script is an automated script that simulates a document retrieval operation in the target application; Based on the target file information and the target automatic retrieval script, a retrieval operation for retrieving the target file is automatically performed in the target application.
6. The method according to claim 5, characterized in that In the case where the target application includes at least two in-application search entries, the target automatic search script corresponding to the target application includes a first target automatic search script corresponding to an in-application global search entry, and a second target automatic search script corresponding to a different in-application non-global search entry; The automatically performing a retrieval operation of retrieving the target file in the target application based on the target file information and the target automatic retrieval script includes at least one of the following: Based on the target file information and the first target automated search script, automatically performing a search operation for the target file in the in-application global search entry of the target application; Based on the target file information, determining the second target automated retrieval script; Based on the target file information and the second target automatic retrieval script, a retrieval operation for retrieving the target file is automatically performed in the intra-application non-global retrieval entry of the target application.
7. The method according to claim 2, characterized in that The corresponding relationship in the database is recorded when there is a file click event in the application; The method further comprises: In the case where the file click event exists, extracting the file information from the event message corresponding to the file click event and the application page; The correspondence between the file information and the application to which the file click event belongs is stored in the database.
8. The method according to claim 7, characterized in that The extracting the file information from the event message corresponding to the file click event and the application page includes: Extracting first file information from the event message corresponding to the file click event based on a first information extraction rule corresponding to the application to which the file click event belongs; Extracting second file information from page text information of the application page based on a second information extraction rule corresponding to the application to which the file click event belongs; The file information is determined based on the first file information and the second file information.
9. The method according to claim 8, characterized in that The extracting the second file information from the page text information of the application page based on the second information extraction rule corresponding to the application to which the file click event belongs includes: If the first file information is not extracted, based on the second information extraction rule corresponding to the application to which the file click event belongs, the page text information of the application page is fully matched and extracted to obtain the second file information; The method further comprises: In the case where the first file information is extracted, determining a text position of a page matching text in the page text information that matches the first file information; At the text position of the page matching text, based on the second information extraction rule corresponding to the application to which the file click event belongs, the page text information of the application page is locally matched and extracted to obtain the second file information.
10. The method according to claim 8, characterized in that The method further comprises: Obtain application information of the application to which the file click event belongs, the application information including application identifier and application version; Acquire the first information extraction rule and the second information extraction rule matching the application information; Different applications correspond to their respective first information extraction rules and second information extraction rules, and different application versions of the same application correspond to their respective first information extraction rules and second information extraction rules.
11. The method according to claim 7, characterized in that The method further comprises at least one of the following: In the case where a page jump is monitored and the pages before and after the jump belong to a target page pair, determining that the file click event exists, the target page pair includes the pages before and after the file click operation in the application; When a trigger operation on a target control in the page is identified, it is determined that the file click event exists, and the target control is a control in the application that triggers file viewing.
12. The method according to claim 7, characterized in that The file information extracted from the event message and the application page is basic file information; The method further comprises: Generate file content description information of the file indicated by the file click event; The file content description information is determined as the file information.
13. The method according to claim 12, characterized in that The generating of the file content description information of the file indicated by the file click event includes at least one of the following: In the case where the file indicated by the file click event is a picture, generating picture content description information of the picture based on a content recognition result of the picture; In the case where the file indicated by the file click event is multimedia, generating multimedia content description information of the multimedia based on the content recognition result of the multimedia; In the case where the file indicated by the file click event is a document, generating document content description information of the document based on text summary information of the document; In the case that the file indicated by the file click event is a chat record, chat content description information of the chat record is generated based on the chat party information and chat content summary information of the chat record.
14. The method according to any one of claims 1 to 13, characterized in that: The automatically jumping to the target application to which the target file belongs, and automatically performing a search operation for the target file in the target application, includes: In the case that the target application to which the target file belongs is a third-party application, the system automatically jumps to the target application to which the target file belongs, and automatically performs a retrieval operation for retrieving the target file in the target application, wherein the files of the third-party application are stored in an application directory, and the system global retrieval entry does not have access rights to the application directory.
15. A file retrieval device, characterized in that: The device comprises: A request receiving module, used for receiving a file search request through a system global search entry, wherein the file search request is used for requesting to search for a target file; A retrieval module, used to automatically jump to a target application to which the target file belongs, and automatically perform a retrieval operation for retrieving the target file in the target application; The display module is used to display the retrieved target file.
16. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the file retrieval method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the file retrieval method according to any one of claims 1 to 14.
18. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the file retrieval method according to any one of claims 1 to 14.