CN114090515A - File searching method, terminal device and storage medium - Google Patents

File searching method, terminal device and storage medium Download PDF

Info

Publication number
CN114090515A
CN114090515A CN202210074451.4A CN202210074451A CN114090515A CN 114090515 A CN114090515 A CN 114090515A CN 202210074451 A CN202210074451 A CN 202210074451A CN 114090515 A CN114090515 A CN 114090515A
Authority
CN
China
Prior art keywords
file
context
data set
application program
management module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210074451.4A
Other languages
Chinese (zh)
Other versions
CN114090515B (en
Inventor
雷梦龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yici Netlink Hangzhou Technology Co ltd
Original Assignee
Yici Netlink Hangzhou Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yici Netlink Hangzhou Technology Co ltd filed Critical Yici Netlink Hangzhou Technology Co ltd
Priority to CN202210074451.4A priority Critical patent/CN114090515B/en
Publication of CN114090515A publication Critical patent/CN114090515A/en
Application granted granted Critical
Publication of CN114090515B publication Critical patent/CN114090515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The invention relates to a file searching method, a terminal device and a storage medium, wherein the method comprises the following steps: acquiring a file data set of a file in an application program through a file management module, wherein the file data set comprises the file, position information of the file and a context data set of the file, and the context data set comprises context records of the file and corresponding position information; establishing a file index of a file data set through a file management module; and when receiving the global search keyword, acquiring the target file according to the global search keyword and the file index through the file management module. Therefore, the files can be searched according to the context records of the files, the problem that the files are difficult to search due to the fact that indexes are established by means of file names and the like is effectively solved, the global search of the files can be achieved, and the problems that the files searched in the current application program can only search information in the current application program, a user cannot obtain the global information, and further the files cannot be searched from the global are effectively solved.

Description

File searching method, terminal device and storage medium
Technical Field
The present invention relates to the field of search technologies, and in particular, to a file search method, a terminal device, and a storage medium.
Background
Usually, when searching for a file, the file name and the file content are directly matched. For example, desktop search files are files searched by indexing file names and file contents and matching according to keywords input by a user; searching for files in the application program is to take the file name as a part of the chat record, match the file name according to the keywords input by the user, and accordingly search for the files.
However, in some scenarios, the filename is a meaningless value, which is difficult for the user to remember, and the filename is usually not displayed, but the file can have meaning in the context of its existence, e.g., sharing a photograph in a chat application, where the name of the photograph is a meaningless combination of numbers and letters, but the photograph has meaning in the context of its existence, and if the photograph is sought, it cannot be directly searched for based on the name of the photograph, because the name of the photograph is difficult to remember and is usually not displayed. In addition, the files searched in the application program are local search, only the information in the current application program can be searched, the user cannot obtain global information, and further the files cannot be searched from the global.
Disclosure of Invention
Technical problem to be solved
In view of the above disadvantages and shortcomings of the prior art, the present invention provides a file searching method, a terminal device and a storage medium, which solve the technical problems that when searching for a file in an application program, an index is established by using a file name and the like to search for the file, so that the file is difficult to search, only information in the current application program can be searched for, a user cannot obtain global information, and further the file cannot be searched from the global.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
in a first aspect, an embodiment of the present invention provides a file search method, which is applied to a terminal device, where the terminal device includes an application program and a file management module, and the method includes: acquiring a file data set of a file in an application program through a file management module, wherein the file data set comprises the file, position information of the file and a context data set of the file, and the context data set comprises context records of the file and position information of the context records; establishing a file index of a file data set through a file management module; and when receiving the global search keyword, acquiring the target file according to the global search keyword and the file index through the file management module.
The file searching method provided by the embodiment of the invention obtains a file data set of a file in an application program through a file management module, and establishes a file index of the file data set, wherein the file data set comprises the file, position information of the file and a context data set of the file, and the context data set comprises context records of the file and position information of the context records; and then, when receiving the global search keyword, obtaining the target file according to the global search keyword and the file index through the file management module. Therefore, the files can be searched according to the context records of the files, the problem that the files are difficult to search due to the fact that indexes are established by means of file names and the like is effectively solved, the global search of the files can be achieved, and the problems that the files searched in the current application program can only search information in the current application program, a user cannot obtain the global information, and further the files cannot be searched from the global are effectively solved.
Optionally, obtaining the target file according to the global search keyword and the file index through a file management module includes: acquiring context records containing global search keywords from a file data set through a file management module according to the global search keywords and a file index; and when the context record containing the global search keyword is obtained, determining the target file according to the context record.
Optionally, obtaining the target file according to the global search keyword and the file index through the file management module, further comprising: determining the position information of the context record and the position information of the file through a file management module; and acquiring and displaying the context record and the target file from the application program through the file management module according to the position information of the context record and the position information of the file.
Optionally, obtaining the target file according to the global search keyword and the file index through the file management module, further comprising: and highlighting the global search keywords in the context record through a file management module.
Optionally, the method further comprises: establishing a service index of a context data set through an application program; and when the local search keyword is received, acquiring the target file according to the local search keyword and the service index through the application program.
Optionally, obtaining, by the application program, the target file according to the local search keyword and the service index includes: acquiring context records containing local search keywords from a context data set according to the local search keywords and the service indexes through an application program; when a context record containing a local search keyword is obtained, determining the position information of the context record; and acquiring the target file according to the position information of the context record through the application program.
Optionally, obtaining, by the application program, the target file according to the location information of the context record includes: and acquiring and displaying the context record and the target file according to the position information of the context record through the application program, wherein the local search keywords in the context record are highlighted through the application program.
Optionally, the method further comprises: the context data set is stored by the application in a database of the application.
In a second aspect, an embodiment of the present invention provides a terminal device, including: the file management module is used for acquiring a file data set of a file in the application program and establishing a file index of the file data set, the file data set comprises the file, position information of the file and a context data set of the file, and the context data set comprises context records of the file and position information of the context records; the file management module is also used for acquiring the target file according to the global search keyword and the file index when the global search keyword is received.
The terminal device provided by the embodiment of the invention acquires the file data set of the file in the application program through the file management module, establishes the file index of the file data set, and acquires the target file through the file management module according to the global search keyword and the file index, wherein the file data set comprises the file, the position information of the file and the context data set of the file, and the context data set comprises the context record of the file and the position information of the context record. Therefore, the files can be searched according to the context records of the files, the problem that the files are difficult to search due to the fact that indexes are established by means of file names and the like is effectively solved, the global search of the files can be achieved, and the problems that the files searched in the current application program can only search information in the current application program, a user cannot obtain the global information, and further the files cannot be searched from the global are effectively solved.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a file search program is stored, and the file search program, when executed by a processor, implements the aforementioned file search method.
According to the computer-readable storage medium provided by the embodiment of the invention, through the file searching method, the file can be searched according to the context record of the file, the problem that the file is difficult to search due to the fact that indexes are established by using file names and the like for searching is effectively solved, the global searching of the file can be realized, and the problems that the file searched in the current application program can only search the information in the current application program, a user can not obtain the global information, and further the file can not be searched from the global are effectively solved.
In a fourth aspect, an embodiment of the present invention provides a terminal device, which includes a memory, a processor, and a file search program that is stored in the memory and is executable on the processor, where the processor implements the file search method when executing the file search program.
According to the terminal device provided by the embodiment of the invention, through the file searching method, the file can be searched according to the context record of the file, the problem that the file is difficult to search due to the fact that indexes are established by using file names and the like for searching is effectively solved, the global searching of the file can be realized, and the problems that the file searched in the current application program can only search the information in the current application program, a user can not obtain the global information, and further the file can not be searched from the global are effectively solved.
(III) advantageous effects
The invention has the beneficial effects that: according to the file searching method, the terminal device and the storage medium, the file management module is used for obtaining the file data set of the files in the application program, the file index of the file data set is established, and when the global search keyword is received, the file management module is used for obtaining the target file according to the global search keyword and the file index, so that the global search of the files can be realized, and the problems that the files searched in the current application program can only search the information in the current application program, a user can not obtain the global information, and further the files can not be searched from the global are effectively solved; meanwhile, the file data set comprises the context data set of the file, and the context data set comprises the context records of the file and the position information of the context records, so that the file can be searched according to the context records of the file, and the problem that the file is difficult to search due to the fact that indexes are established by means of file names and the like for searching is effectively solved. In addition, the service index of the context data set is established through the application program, and when the local search keyword is received, the target file is obtained through the application program according to the local search keyword and the service index, so that the file can be searched in the application program according to the context record of the file, the problem that the file is difficult to search due to the fact that the index is established by using the file name and the like is effectively solved, and the two search modes can be realized by combining with the file management module. In addition, the files and the context records of the files can be recovered based on the search results, so that the user can know the related information of the searched files conveniently.
Drawings
FIG. 1 is a flowchart illustrating a file search method according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of a file search process according to one embodiment of the present invention;
FIG. 2b is a schematic diagram of a file search process according to one embodiment of the invention
FIG. 3 is a diagram of a file in a context record, according to one embodiment of the invention;
FIG. 4 is a flowchart illustrating a file search method according to another embodiment of the present invention;
FIG. 5a is a schematic diagram of a file search process according to another embodiment of the present invention;
FIG. 5b is a schematic diagram of a file search process according to yet another embodiment of the invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
According to the file searching method, the terminal device and the storage medium provided by the embodiment of the invention, the file data set of the file in the application program is obtained through the file management module, the file index of the file data set is established, and the target file is obtained through the file management module according to the global search keyword and the file index when the global search keyword is received, so that the global search of the file can be realized, and the problems that the current information in the application program can only be searched by the search file in the application program, a user cannot obtain the global information, and further the file cannot be searched from the global are effectively solved; meanwhile, the file data set comprises the context records of the files and the position information of the context records, so that the files can be searched according to the context records of the files, and the problem that the files are difficult to search due to the fact that indexes are built by means of file names and the like is effectively solved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
It should be noted that the file searching method of the embodiment of the present invention is applied to a terminal device, where the terminal device may be a device such as a mobile phone or a personal computer, and the terminal device includes an application program and a file management module, where the application program may be a chat application program, and the file management module may be a file management module in a system, and is used to manage system files.
Fig. 1 is a schematic flow chart of a file searching method according to an embodiment of the present invention, and referring to fig. 1, the file searching method may include the following steps:
step S102, a file data set of a file in an application program is obtained through a file management module, the file data set comprises the file, position information of the file and a context data set of the file, and the context data set comprises context records of the file and position information of the context records.
Specifically, the files, such as text files, image files, video files, and the like, are usually involved in using the application program, and specifically, without limitation, when a file appears, a context data set of the file is generated by the application program, the context data set includes context records of the file and location information of each context record, and the file and the location information of the file are simultaneously acquired and sent to the file management module. The file management module generates a file data set of the file according to the file sent by the application program, the position information of the file and the context data set of the file, namely the file data set comprises the file, the position information of the file and the context data set of the file.
Step S104, establishing a file index of the file data set through the file management module.
Specifically, after obtaining the file data set, the file management module establishes a file index for the file data set, so that when a file is searched, a context record in the file data set can be quickly located based on the file index. It should be noted that the establishment of the file index can be implemented based on the prior art.
And step S106, when the global search key words are received, obtaining the target files according to the global search key words and the file indexes through the file management module.
Specifically, when a user needs to search for a file, a global search keyword may be input in a global search window of the terminal device, and the file management module obtains a target file according to the global search keyword and a file index when receiving the global search keyword.
Further, optionally, obtaining the target file according to the global search keyword and the file index by the file management module includes: acquiring context records containing global search keywords from a file data set through a file management module according to the global search keywords and a file index; and when the context record containing the global search keyword is obtained, determining the target file according to the context record.
Specifically, when the file management module obtains the target file according to the global search keyword and the file index, the global search keyword is matched with the context record in the file data set, and when the corresponding context record is matched, the corresponding file is determined from the file data set according to the context record.
Further, optionally, obtaining the target file according to the global search keyword and the file index by the file management module, further includes: determining the position information of the context record and the position information of the file through a file management module; and acquiring and displaying the context record and the target file from the application program through the file management module according to the position information of the context record and the position information of the file. Wherein the global search keywords in the context record can be highlighted by the file management module.
Specifically, when the file management module determines the target file, the file management module further determines the position information of the context record and the position information of the file from the file data set, then restores the file and the context record of the file through the application program registration interface according to the position information of the context record and the position information of the file, and highlights the global search keyword in the record.
As a specific example, referring to fig. 2a and 3, the file search includes the following processes:
the first step: when a user shares a file fid in a chat application, the chat application generates a context data set contextDs of the file fid, which includes a context record contextContent of the file fid and a location information contextId of the context record, wherein the location information contextId of the context record further includes an identification information appId of the chat application where the context record is located and a location information locationId of the context record in the chat application, i.e., the context data set contextDs = (contextContent, contextId) = (contextContent, (appId, locationId)). It should be noted that the context record contextContent may be a plurality of chat records before and/or after the location of the file fid, for example, 100 records before and after, or 5 minutes before and after, and the like, and is not limited herein; the identification information appId of the chat application program where the context record is located is used to enable the file management module to identify the corresponding chat application program through the identification information appId, and the location information locationId of the context record in the chat application program is used to enable the chat application program to recover the context record through the location information locationId, which is defined by the chat application program and specifically may include the group Id and the group chat location Id.
The second step: the chat application generates a file data set fcontext, and sends the file data set fcontext to the file management module, wherein the file data set fcontext includes a file fid, a location information fcontextId of the file fid, and a context data set contextDs of the file fid, and the location information fcontextId of the file fid further includes an identification information fappId of a chat application in which the file is located, and a location information flocatiod of the file in the chat application, i.e., fcontext = (fid, fcontextId, contextDs) = (fid, (fappId, flocatioid), contextDs). It should be noted that the identification information fappId of the chat application where the file is located is used to enable the file management module to identify the corresponding chat application through the identification information fappId, and the location information flowationid of the file in the chat application is used to enable the chat application to recover the file record through the location information flowationid, which is defined by the chat application and may specifically include the group fId and the group chat location fId.
Step three: and the file management module adds a file data set fcontext to the file fid and establishes a file index.
Fourthly, the step: when a user performs a global search for a file, a global search keyword may be input in a global search window.
A fifth step: when receiving the global search keyword, the file management module searches whether a context record contextContent matched with the global search keyword exists in a file data set fcontext according to the global search keyword and the file index, and if so, can determine a corresponding file fid based on fcontext = (fid, fcontextId, contextDs). Further, since only the corresponding file fid is given, it may not be possible for the user to know the relevant information of the file fid, as in which records the file fid appears, so the file management module also determines the location information contextId of the context record according to the context record contextContextContent, locates to the chat application according to the appId in the location information contextId of the context record, and restores the file and the context record according to the locationId in the location information contextId of the context record and the locationId in the location information fcontextId of the file fid, thereby enabling the user to obtain the relevant information of the file and the location of the file.
It should be noted that the file index and the application program may be separated, that is, the file index and the application program may be located in the same device or different devices, as shown in fig. 2a, when located in the same device, both the application program and the file index are located in the terminal device; as shown in fig. 2b, the application may be located in the terminal device and the file index may be located in the server when located in a different device.
In the embodiment, the file management module is used for acquiring the file data set of the files in the application program, establishing the file index of the file data set, and acquiring the target file according to the global search keyword and the file index through the file management module when the global search keyword is received, so that the global search of the files can be realized, and the problems that the files searched in the current application program can only search the information in the current application program, a user can not obtain the global information, and further the files can not be searched from the global are effectively solved; meanwhile, the file data set comprises the context data set of the file, and the context data set comprises the context records of the file and the position information of the context records, so that the file can be searched according to the context records of the file, and the problem that the file is difficult to search due to the fact that indexes are established by means of file names and the like for searching is effectively solved.
Fig. 4 is a flowchart illustrating a file searching method according to another embodiment of the present invention, and referring to fig. 4, the file searching method may include the following steps:
step S202, establishing a service index of the context data set through the application program.
Specifically, in the process of using the application program, when a file appears, in addition to generating a context dataset of the file through the application program, generating the file dataset according to the context dataset, and adding the file dataset to the file management module to realize global search through the file management module, the application program also establishes a business index of the context dataset so as to realize intra-application search based on the business index. The context data set can also be stored in the database of the application program, and the establishment of the business index can be realized based on the prior art.
And step S204, when the local search keyword is received, acquiring a target file according to the local search keyword and the service index through the application program.
Specifically, when a user needs to search for a file, a local search keyword may be input in a search window in the application program, and when the application program receives the local search keyword, a target file is obtained according to the local search keyword and the service index.
It should be noted that the global search keywords and the local search keywords in the present application are only used to characterize the search mode, and are not limited to the search keywords.
Further, optionally, obtaining, by the application program, the target file according to the local search keyword and the service index includes: acquiring context records containing local search keywords from a context data set according to the local search keywords and the service indexes through an application program; when a context record containing a local search keyword is obtained, determining the position information of the context record; and acquiring the target file according to the position information of the context record through the application program.
Specifically, when the application program obtains the target file according to the local search keyword and the service index, the local search keyword is matched with the context record in the context data set, when the corresponding context record is matched, the position information of the context record is determined, and the corresponding file is found according to the position information of the context record.
Further, optionally, obtaining, by the application program, the target file according to the location information recorded in the context includes: and acquiring and displaying the context record and the target file according to the position information of the context record through the application program, wherein the local search keywords in the context record are highlighted through the application program.
Specifically, when the application program acquires the target file according to the position information of the context record, the file appearing around is searched according to the position information of the context record, then the file and the context record are displayed, and the local search keyword in the record is highlighted.
As a specific example, referring to fig. 3 and 5a, the file search includes the following processes:
the first step: when a user shares a file fid in a chat application, the chat application generates a context data set contextDs of the file fid, which includes a context record contextContent of the file fid and a location information contextId of the context record, wherein the location information contextId of the context record further includes an identification information appId of the chat application where the context record is located and a location information locationId of the context record in the chat application, i.e., the context data set contextDs = (contextContent, contextId) = (contextContent, (appId, locationId)). It should be noted that the context record contextContent may be a plurality of chat records before and/or after the location of the file fid, for example, 100 records before and after, or 5 minutes before and after, and the like, and is not limited herein; the identification information appId of the chat application program where the context record is located is used to enable the file management module to identify the corresponding chat application program through the identification information appId, and the location information locationId of the context record in the chat application program is used to enable the chat application program to recover the context record through the location information locationId, which is defined by the chat application program and specifically may include the group Id and the group chat location Id.
The second step: the context data sets contextDs are stored in a database of the chat application.
Step three: the application builds a service index to the context data set contextDs.
Fourthly, the step: the chat application generates a file data set fcontext, and sends the file data set fcontext to the file management module, wherein the file data set fcontext includes a file fid, a location information fcontextId of the file fid, and a context data set contextDs of the file fid, and the location information fcontextId of the file fid further includes an identification information fappId of a chat application in which the file is located, and a location information flocatiod of the file in the chat application, i.e., fcontext = (fid, fcontextId, contextDs) = (fid, (fappId, flocatioid), contextDs). It should be noted that the identification information fappId of the chat application where the file is located is used to enable the file management module to identify the corresponding chat application through the identification information fappId, and the location information flowationid of the file in the chat application is used to enable the chat application to recover the file record through the location information flowationid, which is defined by the chat application and may specifically include the group fId and the group chat location fId.
A fifth step: and the file management module adds a file data set fcontext to the file fid and establishes a file index.
The sixth step: when a user performs a global search for a file, a global search keyword may be input in a global search window.
The seventh step: when receiving the global search keyword, the file management module searches whether a context record contextContent matched with the global search keyword exists in a file data set fcontext according to the global search keyword and the file index, and if so, can determine a corresponding file fid based on fcontext = (fid, fcontextId, contextDs). Further, since only the corresponding file fid is given, it may not be possible for the user to know the relevant information of the file fid, as in which records the file fid appears, so the file management module also determines the location information contextId of the context record according to the context record contextContextContent, locates to the chat application according to the appId in the location information contextId of the context record, and restores the file and the context record according to the locationId in the location information contextId of the context record and the locationId in the location information fcontextId of the file fid, thereby enabling the user to obtain the relevant information of the file and the location of the file.
The eighth step: when a user searches a file locally in an application program, the user can input a local search keyword in a search window in the application program, at this time, the application program searches whether a context record contextContent matched with the local search keyword exists in a context data set contextDs according to the local search keyword and a file index, if so, the application program determines the position information contextId of the context record, determines a corresponding file according to a locationId in the position information contextId of the context record, and restores the file and the context record, so that the user can obtain the file and the related information of the position of the file.
It should be noted that the file index, the service index and the application program may be separated, that is, the file index, the service index and the application program may be located in the same device or different devices, as shown in fig. 5a, when located in the same device, the application program, the file index and the service index are all located in the terminal device; as shown in fig. 5b, the application may be located in the terminal device, and the file index and the service index may be located in the server, when located in different devices.
In the embodiment, the global search can be realized based on the context record, the service index of the context data set is established through the application program, and the target file is obtained through the application program according to the local search keyword and the service index when the local search keyword is received, so that the file can be searched according to the context record of the file in the application program, the problem that the file is difficult to search due to the fact that the index is established by using the file name and the like is effectively solved, and the two search modes can be realized by combining with the file management module, and the flexibility of the search is improved.
In summary, in the file search method according to the embodiment of the present invention, the file management module obtains the file dataset of the file in the application program, establishes the file index of the file dataset, and obtains the target file according to the global search keyword and the file index through the file management module when receiving the global search keyword, so that the global search of the file can be implemented, and the problems that the current information in the application program can only be searched by the file searched in the application program, the user cannot obtain the global information, and further the file cannot be searched from the global are effectively solved; meanwhile, the file data set comprises the context data set of the file, and the context data set comprises the context records of the file and the position information of the context records, so that the file can be searched according to the context records of the file, and the problem that the file is difficult to search due to the fact that indexes are established by means of file names and the like for searching is effectively solved. In addition, the service index of the context data set is established through the application program, and when the local search keyword is received, the target file is obtained through the application program according to the local search keyword and the service index, so that the file can be searched in the application program according to the context record of the file, the problem that the file is difficult to search due to the fact that the index is established by using the file name and the like is effectively solved, and the two search modes can be realized by combining with the file management module.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and referring to fig. 6, the terminal device 10 includes an application 11 and a file management module 12.
The file management module 12 is configured to obtain a file data set of a file in the application 11, and establish a file index of the file data set, where the file data set includes the file, location information of the file, and a context data set of the file, and the context data set includes a context record of the file and location information of the context record; the file management module 12 is further configured to, when receiving the global search keyword, obtain the target file according to the global search keyword and the file index.
Optionally, the file management module 12 is specifically configured to: and obtaining a context record containing the global search keyword from the file data set according to the global search keyword and the file index, and determining the target file according to the context record when obtaining the context record containing the global search keyword.
Optionally, the file management module 12 is further configured to determine location information of the context record and location information of the file, and obtain and display the context record and the target file from the application 11 according to the location information of the context record and the location information of the file.
Optionally, the file management module 12 is also used to highlight the global search keywords in the context record.
Optionally, the application 11 is configured to: and establishing a service index of the context data set, and acquiring a target file according to the local search keyword and the service index when the local search keyword is received.
Optionally, the application 11 is specifically configured to: and obtaining a context record containing the local search keyword from the context data set according to the local search keyword and the service index, determining position information of the context record when obtaining the context record containing the local search keyword, and obtaining a target file according to the position information of the context record.
Optionally, the application 11 is specifically configured to obtain and display the context record and the target file according to the location information of the context record, where the application 11 is further configured to highlight the local search keyword in the context record.
Optionally, the application 11 is also used to store the context data set in a database of the application 11.
It should be noted that, for the description of the terminal device in the present invention, please refer to the foregoing description of the file search method, which is not repeated herein.
The terminal device provided by the embodiment of the invention acquires the file data set of the file in the application program through the file management module, establishes the file index of the file data set, and acquires the target file through the file management module according to the global search keyword and the file index, wherein the file data set comprises the file, the position information of the file and the context data set of the file, and the context data set comprises the context record of the file and the position information of the context record. Therefore, the files can be searched according to the context records of the files, the problem that the files are difficult to search due to the fact that indexes are established by means of file names and the like is effectively solved, the global search of the files can be achieved, and the problems that the files searched in the current application program can only search information in the current application program, a user cannot obtain the global information, and further the files cannot be searched from the global are effectively solved.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a file search program that, when executed by a processor, implements the aforementioned file search method.
According to the computer-readable storage medium provided by the embodiment of the invention, through the file searching method, the file can be searched according to the context record of the file, the problem that the file is difficult to search due to the fact that indexes are established by using file names and the like for searching is effectively solved, the global searching of the file can be realized, and the problems that the file searched in the current application program can only search the information in the current application program, a user can not obtain the global information, and further the file can not be searched from the global are effectively solved.
The embodiment of the invention also provides terminal equipment which comprises a memory, a processor and a file searching program which is stored on the memory and can be operated on the processor, wherein when the processor executes the file searching program, the file searching method is realized.
According to the terminal device provided by the embodiment of the invention, through the file searching method, the file can be searched according to the context record of the file, the problem that the file is difficult to search due to the fact that indexes are established by using file names and the like for searching is effectively solved, the global searching of the file can be realized, and the problems that the file searched in the current application program can only search the information in the current application program, a user can not obtain the global information, and further the file can not be searched from the global are effectively solved.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium; either as communication within the two elements or as an interactive relationship of the two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, a first feature may be "on" or "under" a second feature, and the first and second features may be in direct contact, or the first and second features may be in indirect contact via an intermediate. Also, a first feature "on," "above," and "over" a second feature may be directly or obliquely above the second feature, or simply mean that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the second feature, or may simply mean that the first feature is at a lower level than the second feature.
In the description herein, the description of the terms "one embodiment," "some embodiments," "an embodiment," "an example," "a specific example" or "some examples" or the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are illustrative and not restrictive, and that those skilled in the art may make changes, modifications, substitutions and alterations to the above embodiments without departing from the scope of the present invention.

Claims (11)

1. A file searching method is applied to a terminal device, the terminal device comprises an application program and a file management module, and the method comprises the following steps:
acquiring a file data set of a file in the application program through the file management module, wherein the file data set comprises the file, the position information of the file and a context data set of the file, and the context data set comprises a context record of the file and the position information of the context record;
establishing a file index of the file data set through the file management module;
and when receiving the global search keyword, acquiring a target file according to the global search keyword and the file index through the file management module.
2. The file searching method according to claim 1, wherein the obtaining, by the file management module, the target file according to the global search keyword and the file index comprises:
acquiring context records containing the global search keywords from the file data set through the file management module according to the global search keywords and the file indexes;
and when a context record containing the global search keyword is acquired, determining the target file according to the context record.
3. The file searching method according to claim 2, wherein the obtaining, by the file management module, the target file according to the global search keyword and the file index further comprises:
determining, by the file management module, location information of the context record and location information of the file;
and acquiring and displaying the context record and the target file from the application program through the file management module according to the position information of the context record and the position information of the file.
4. The file searching method according to claim 3, wherein the obtaining, by the file management module, the target file according to the global search keyword and the file index further comprises:
and highlighting the global search keywords in the context record through the file management module.
5. The file searching method according to any one of claims 1 to 4, wherein the method further comprises:
establishing a business index of the context data set through the application program;
and when a local search keyword is received, acquiring the target file according to the local search keyword and the service index through the application program.
6. The file searching method according to claim 5, wherein said obtaining, by the application program, the target file according to the local search keyword and the service index comprises:
acquiring context records containing the local search keywords from the context data set according to the local search keywords and the service indexes through the application program;
when a context record containing the local search keyword is obtained, determining the position information of the context record;
and acquiring the target file according to the position information of the context record through the application program.
7. The file searching method according to claim 6, wherein the obtaining, by the application program, the target file according to the location information of the context record comprises:
and acquiring and displaying the context record and the target file according to the position information of the context record through the application program, wherein the local search keywords in the context record are highlighted through the application program.
8. The file searching method according to claim 5, wherein the method further comprises:
storing, by the application, the context data set in a database of the application.
9. A terminal device, comprising: an application program and a file management module,
the file management module is used for acquiring a file data set of a file in the application program and establishing a file index of the file data set, wherein the file data set comprises the file, the position information of the file and a context data set of the file, and the context data set comprises a context record of the file and the position information of the context record;
and the file management module is also used for acquiring a target file according to the global search keyword and the file index when receiving the global search keyword.
10. A computer-readable storage medium, characterized in that a file search program is stored thereon, which when executed by a processor implements the file search method according to any one of claims 1 to 8.
11. A terminal device comprising a memory, a processor, and a file search program stored on the memory and executable on the processor, wherein the processor implements the file search method according to any one of claims 1 to 8 when executing the file search program.
CN202210074451.4A 2022-01-21 2022-01-21 File searching method, terminal device and storage medium Active CN114090515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210074451.4A CN114090515B (en) 2022-01-21 2022-01-21 File searching method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210074451.4A CN114090515B (en) 2022-01-21 2022-01-21 File searching method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN114090515A true CN114090515A (en) 2022-02-25
CN114090515B CN114090515B (en) 2022-07-05

Family

ID=80309052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210074451.4A Active CN114090515B (en) 2022-01-21 2022-01-21 File searching method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN114090515B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200516432A (en) * 2003-11-14 2005-05-16 Infoacer Corp Context search system and method of computer file
US20060053157A1 (en) * 2004-09-09 2006-03-09 Pitts William M Full text search capabilities integrated into distributed file systems
WO2011033734A1 (en) * 2009-09-18 2011-03-24 Hitachi Solutions, Ltd. File search system and program
CN104462113A (en) * 2013-09-17 2015-03-25 腾讯科技(深圳)有限公司 Search method and device and electronic equipment
CN105991398A (en) * 2015-02-04 2016-10-05 阿里巴巴集团控股有限公司 Instant message IM chatting records storage method and apparatus
CN107436948A (en) * 2017-08-04 2017-12-05 广东欧珀移动通信有限公司 File search method, device and terminal
CN107633051A (en) * 2017-09-15 2018-01-26 努比亚技术有限公司 Desktop searching method, mobile terminal and computer-readable recording medium
CN110309324A (en) * 2018-03-09 2019-10-08 北京搜狗科技发展有限公司 A kind of searching method and relevant apparatus
CN110543449A (en) * 2019-09-03 2019-12-06 上海擎测机电工程技术有限公司 chat record searching method based on AR equipment
CN111240558A (en) * 2020-01-20 2020-06-05 腾讯科技(深圳)有限公司 Information searching method, device, terminal and storage medium
CN112182255A (en) * 2019-07-02 2021-01-05 百度(美国)有限责任公司 Method and apparatus for storing media files and for retrieving media files

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200516432A (en) * 2003-11-14 2005-05-16 Infoacer Corp Context search system and method of computer file
US20060053157A1 (en) * 2004-09-09 2006-03-09 Pitts William M Full text search capabilities integrated into distributed file systems
WO2011033734A1 (en) * 2009-09-18 2011-03-24 Hitachi Solutions, Ltd. File search system and program
CN104462113A (en) * 2013-09-17 2015-03-25 腾讯科技(深圳)有限公司 Search method and device and electronic equipment
CN105991398A (en) * 2015-02-04 2016-10-05 阿里巴巴集团控股有限公司 Instant message IM chatting records storage method and apparatus
CN107436948A (en) * 2017-08-04 2017-12-05 广东欧珀移动通信有限公司 File search method, device and terminal
CN107633051A (en) * 2017-09-15 2018-01-26 努比亚技术有限公司 Desktop searching method, mobile terminal and computer-readable recording medium
CN110309324A (en) * 2018-03-09 2019-10-08 北京搜狗科技发展有限公司 A kind of searching method and relevant apparatus
CN112182255A (en) * 2019-07-02 2021-01-05 百度(美国)有限责任公司 Method and apparatus for storing media files and for retrieving media files
CN110543449A (en) * 2019-09-03 2019-12-06 上海擎测机电工程技术有限公司 chat record searching method based on AR equipment
CN111240558A (en) * 2020-01-20 2020-06-05 腾讯科技(深圳)有限公司 Information searching method, device, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩静: "利用即时通讯平台开展档案工作", 《兰台世界》 *

Also Published As

Publication number Publication date
CN114090515B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN107679211B (en) Method and device for pushing information
US9081812B2 (en) System and method for information identification using tracked preferences of a user
CN103970793B (en) Information query method, client and server
US8483715B2 (en) Computer based location identification using images
CN102298533B (en) Method for activating application program and terminal equipment
US20080064438A1 (en) Place Name Picture Annotation on Camera Phones
EP1324223A2 (en) Apparatus and method for searching multimedia objects
US20110022529A1 (en) Social network creation using image recognition
US20080270378A1 (en) Method, Apparatus and Computer Program Product for Determining Relevance and/or Ambiguity in a Search System
US20100083125A1 (en) Connected address book systems and methods
WO2009138135A1 (en) Automatic tagging of photos in mobile devices
CN105392178A (en) Method and device for acquiring access information of wireless access point
US20140172962A1 (en) Method and system for prompting friend feed in SNS network, client and server
US11588938B2 (en) Systems and methods for curation and delivery of content for use in electronic calls
JP2006285526A (en) Information retrieval according to image data
CN114090515B (en) File searching method, terminal device and storage medium
US20110320430A1 (en) Object recommendation method and system
US9282331B2 (en) Image processing method and electronic device
CN110598032B (en) Image tag generation method, server and terminal equipment
CN110597866A (en) Map application information retrieval method and device, computer equipment and storage medium
US9977793B2 (en) Information processing system, information processing method, and information processing apparatus
CN109089216B (en) File transmission method and equipment based on Bluetooth transmission
EP1231549A2 (en) Database system for image attribute information
JP5790768B2 (en) Search method and information management apparatus
JP5059080B2 (en) Voice information retrieval system and voice information retrieval method

Legal Events

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