CN116561071A - File searching method and device, storage medium and electronic equipment - Google Patents

File searching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116561071A
CN116561071A CN202310487770.2A CN202310487770A CN116561071A CN 116561071 A CN116561071 A CN 116561071A CN 202310487770 A CN202310487770 A CN 202310487770A CN 116561071 A CN116561071 A CN 116561071A
Authority
CN
China
Prior art keywords
searched
searching
file
content
paths
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310487770.2A
Other languages
Chinese (zh)
Inventor
夏晨皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310487770.2A priority Critical patent/CN116561071A/en
Publication of CN116561071A publication Critical patent/CN116561071A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • 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/156Query results presentation
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a file searching method and device, a storage medium and electronic equipment. Relates to the field of financial science and technology, and the method comprises the following steps: obtaining content to be searched and range information to be searched in a search interface of a client, wherein the range information to be searched at least comprises a path to be searched and a target file type; responding to a searching instruction obtained from a searching interface, searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in a searching range determined by the information of the range to be searched; and displaying a returned target searching result on a searching interface, wherein the target searching result is used for indicating that the file name searched in the searching range determined by the range information to be searched comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched. By the method and the device, the problem of low file searching accuracy in the related art is solved.

Description

File searching method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of financial science and technology, and in particular, to a file searching method and apparatus, a storage medium, and an electronic device.
Background
Often a large number of files are stored on the device, and when the files are needed, users often want to directly and accurately locate the files needed to be used. In the related art, a desired file may be searched from among files stored on a device by searching for a file name including a keyword. In such a way, a great deal of time is required to be consumed due to the need of searching from all files stored on the device, and the searching efficiency is low; and some files may be desired by the user, but the naming of the file may not include what the user searches for, may result in missed files, etc.
Aiming at the problem of lower file searching accuracy in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a file searching method and device, a storage medium and electronic equipment, so as to solve the problem of lower file searching accuracy in the related art.
In order to achieve the above object, according to one aspect of the present application, there is provided a file searching method. The method comprises the following steps: obtaining content to be searched and range information to be searched in a search interface of a client, wherein the range information to be searched at least comprises a path to be searched and a target file type; responding to a searching instruction obtained from the searching interface, searching a file with a file name comprising the content to be searched and a file with a file content comprising the content to be searched in a searching range determined by the range information to be searched; and displaying a returned target searching result on the searching interface, wherein the target searching result is used for indicating that the file name searched in the searching range determined by the searching range information comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched.
Optionally, the searching, in response to the searching instruction obtained in the searching interface, the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the information of the range to be searched includes: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the files of the contents to be searched in the files with the file types of the target file types in the path to be searched and searching files with the file contents comprising the files of the contents to be searched, wherein the searching range comprises the files with the file types of the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned first searching result on the searching interface, wherein the target searching result comprises the first searching result, and the first searching result is used for indicating that the file name searched in the file with the file type of the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, before searching the file whose file name includes the content to be searched and searching the file whose file content includes the content to be searched in the searching range determined by the range information to be searched, the method further includes: acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained in the searching interface, and searching files with file names comprising the files of the contents to be searched and files with the contents of the files comprising the contents to be searched in the files with the file types of the target file types in paths except the paths which are forbidden to be searched in the paths to be searched, wherein the searching range comprises the files with the file types of the target file types in the paths except the paths which are forbidden to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned second searching result on the searching interface, wherein the target searching result comprises the second searching result, and the second searching result is used for indicating that the file type in the paths except the forbidden searching path in the paths to be searched is the file of the target file type, the searched file name comprises the file of the content to be searched, and the searched file content comprises the file of the content to be searched.
Optionally, the searching, in response to the searching instruction obtained in the searching interface, the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the information of the range to be searched includes: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the content to be searched in the files with file types not being the target file types in the path to be searched and searching files with file contents comprising the content to be searched, wherein the searching range comprises files with file types not being the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned third searching result on the searching interface, wherein the target searching result comprises the third searching result, and the third searching result is used for indicating that the file name searched in the file with the file type not being the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, the obtaining the content to be searched and the range information to be searched in the search interface of the client includes: under the condition that a first group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a first current path to be configured, wherein the first group of paths comprises N paths, and N is a positive integer greater than or equal to 1; determining whether a path in the first set of paths includes the first current path; and under the condition that the ith path in the first group of paths contains the first current path, replacing the ith path in the first group of paths with the first current path to obtain a second group of paths, wherein the second group of paths are the paths to be searched which are currently determined, and i is a positive integer which is greater than or equal to 1 and less than or equal to N.
Optionally, the obtaining the content to be searched and the range information to be searched in the search interface of the client includes: and under the condition that the paths in the first group of paths do not contain the first current path, adding the first current path into the first group of paths to obtain a third group of paths, wherein the third group of paths are the paths to be searched which are currently determined.
Optionally, the obtaining the content to be searched and the range information to be searched in the search interface of the client includes: under the condition that a fourth group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a second current path to be configured, wherein the fourth group of paths comprise M forbidden searching paths, and M is a positive integer greater than or equal to 1; determining whether a path in the fourth set of paths includes the second current path; and under the condition that the j-th path in the fourth group of paths contains the second current path, replacing the j-th path in the fourth group of paths with the second current path to obtain a fifth group of paths, wherein the fifth group of paths are the forbidden searching paths which are currently determined, and j is a positive integer which is greater than or equal to 1 and less than or equal to M.
Optionally, the obtaining the content to be searched and the range information to be searched in the search interface of the client includes: and under the condition that the paths in the fourth group of paths do not contain the second current path, adding the second current path into the fourth group of paths to obtain a sixth group of paths, wherein the sixth group of paths are the currently determined forbidden search paths.
Optionally, after searching the file whose file name includes the content to be searched and searching the file whose file content includes the content to be searched in the searching range determined by the range information to be searched, the method further includes: in the process of searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the range information to be searched, responding to a searching pause instruction acquired in the searching interface, and pausing searching the files with the file names comprising the content to be searched and the files with the file contents comprising the content to be searched in the searching range determined by the range information to be searched; acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; and responding to a search continuation instruction acquired from the search interface, and continuing searching files with file names comprising the files of the contents to be searched and files with file contents comprising the contents to be searched in the files with the file types of the target file types in paths except the path which is forbidden to be searched in the paths to be searched, wherein the search range comprises the files with the file types of the target file types in the paths except the path which is forbidden to be searched.
In order to achieve the above object, according to another aspect of the present application, there is provided a file searching apparatus. The device comprises: the first acquisition module is used for acquiring content to be searched and range information to be searched in a search interface of the client, wherein the range information to be searched at least comprises a path to be searched and a target file type; the first searching module is used for responding to the searching instruction acquired in the searching interface, searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the information of the range to be searched; the display module is used for displaying a returned target searching result on the searching interface, wherein the target searching result is used for representing that the file name searched in the searching range determined by the searching range information comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched
Through the application, the following steps are adopted: the method comprises the steps of obtaining content to be searched and range information to be searched in a searching interface of a client, searching files with file names and file contents comprising the files of the content to be searched in the range to be searched determined by the range information to be searched, and returning and displaying the searched files on the searching interface of the client, so that missing detection and false detection of the files are avoided, and the problem of lower file searching accuracy in the related art is solved. Thereby achieving the effect of improving the accuracy of file searching.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a flow chart of a file finding method provided according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a file lookup method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a configuration of paths to be looked up according to an embodiment of the present application;
FIG. 4 is a schematic diagram of one configuration object file type according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a configuration path according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a configuration for disabling a lookup path according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a pause lookup in accordance with an embodiment of the present application;
FIG. 8 is a display diagram of a target lookup result according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a file finding apparatus according to an embodiment of the present application;
fig. 10 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, the following will describe some terms or terms related to the embodiments of the present application:
murdi algorithm: is character string pattern matching proposed by Daniel M.Sunday in 1990, and the core idea is as follows: in the matching process, when the pattern strings find that the pattern strings are not matched, the algorithm can skip as many characters as possible to carry out next matching, so that the matching efficiency is improved.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
The present invention is described below in connection with preferred implementation steps, and fig. 1 is a flowchart of a file searching method according to an embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
Step S101, obtaining content to be searched and range information to be searched in a search interface of a client, wherein the range information to be searched at least comprises a path to be searched and a target file type;
step S102, searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in a searching range determined by the range information to be searched in response to a searching instruction acquired in the searching interface;
step S103, displaying a returned target search result on the search interface, where the target search result is used to indicate that the file name searched in the search range determined by the to-be-searched range information includes the file of the to-be-searched content, and that the searched file content includes the file of the to-be-searched content.
In order to better understand the file searching process in the embodiments of the present application, the following explanation and description of the file searching method in the embodiments of the present application in connection with the alternative embodiments may be, but are not limited to, applicable to the embodiments of the present application.
Fig. 2 is a schematic diagram of a file searching method according to an embodiment of the present application, as shown in fig. 2, a path field to be searched, a target file type field, and a content field to be searched may be displayed in the searching interface 102-1 of the client 102, but are not limited to. The user may configure the content to be searched and the range information to be searched by, but not limited to, editing the path field to be searched, the object file type field, and the content field to be searched. Such as: the file formats of csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx are selected in the target file type field, and the content xxx to be searched is edited in the content field to be searched. The content to be searched obtained in the search interface of the client is "xxx", and the range information to be searched at least comprises paths to be searched "C: \and E: \", and target file types "csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx".
In such a case, the search instruction may be acquired in the search interface 102-1, but is not limited to, in a case where the operation button in the search interface 102-1 is clicked, and in such a case, the search file name may include a file of the content to be searched "xxx" and the search file content may include a file of the content to be searched "xxx" in the search range (corresponding to among the files of C: \and E: \and file types csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx) determined in the search range information in response to the search instruction acquired in the search interface 102-1. It is possible, but not limited to, in the case where the pause button in the search interface 102-1 is clicked, to pause searching for a file whose file name includes the content "xxx" to be searched for and searching for a file whose file content includes the content "xxx" to be searched for in the search range (corresponding to among the files of file types csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx in C: \and E: \). In addition, in the case where the save set button in the seek interface 102-1 is clicked, the currently configured path to be sought and the target file type may be saved for the next seek to be directly invoked.
And displaying a returned target searching result on the searching interface 102-1, wherein the target searching result is used for indicating that the file names searched in the searching range determined by the searching range information comprise the file 3 and the file 5 of the content to be searched "xxx", and the searched file contents comprise the file 1, the file 2 and the file 4 of the content to be searched.
In detail, the range information to be searched may be configured, but is not limited to, in the following manner. Fig. 3 is a schematic diagram of a configuration of a path to be searched according to an embodiment of the present application, as shown in fig. 3, a user may, but is not limited to, select a path to be searched by clicking a selection button in a field of the path to be searched, and the user may, but is not limited to, select a folder or a file, and may select several more. Such as: the local disk (C) and the local disk (E) in the candidate searching path are subjected to selection operation, and the local disk (F) and the local disk (G) in the candidate searching path are not subjected to selection operation, so that the paths to be searched are C and E, and the searching is only performed in the selected limited files or folders in the mode, and the searching efficiency is improved.
FIG. 4 is a schematic diagram of a configuration of a target file type, as shown in FIG. 4, where a user may select the target file type, such as by clicking a select button of a target file type field, according to an embodiment of the present application: the default target file type is csv, log, pdf, ppt, pptm, pptx, rtf, txt, wps, wpt, xls, xlsm, xlsx, xmind, doc, docx, which may be, but is not limited to, by entering file type 1 in the newly added file type, then file type 1 will be included in the target file type in subsequent searches. The file type to be deleted can be selected from the displayed file type list, and multiple selections of deletion can be performed, so that the deleted file type is not included in the target file type in the subsequent search.
It should be noted that, in fig. 2, 3 and 4, only the client is illustrated as being carried on a computer, and in fact, the client may be implemented on other terminal devices, which is not limited in this application.
In the technical solution provided in step 101, the client may, but is not limited to, run on a terminal device, where a large number of files are stored, and in a case where a file stored on the terminal device where the client is located needs to be searched, the range information to be searched and the content to be searched may, but are not limited to, be configured in a search interface of the client; or under the condition that the client and the remote equipment establish communication, the content to be searched and the range information to be searched on the remote equipment can be obtained through the search interface of the client, so that the file on the remote equipment is searched. By the method, accuracy of finding files required by the user is improved.
Optionally, in the file searching method provided in the embodiment of the present application, the content to be searched may include at least one of a word, a number, a symbol, or a letter, but is not limited to the method. The path to be searched in the range information to be searched may be, but is not limited to, a storage path for representing a file in a storage space (e.g., a storage space such as a disk or a hard disk), an access path for a file, or an access path for a storage space for storing a file, etc. The target file type in the scope information to be looked up may, but is not limited to, a type including a file format, such as: csv, log, pdf, ppt, pptm, pptx, rtf, txt, wps, wpt, xls, xlsm, xlsx, xmind, doc, docx, java,. C,. Js, etc.
Optionally, in the file searching method provided in the embodiment of the present application, the client may be, but not limited to, running on a terminal device, where the terminal device may be a terminal device configured with the client, and may include, but not limited to, at least one of the following: a mobile phone (e.g., an Android mobile phone, iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, and the like.
In one exemplary embodiment, the content to be searched and the range information to be searched may be obtained in a search interface of the client by, but not limited to, the following ways: under the condition that a first group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a first current path to be configured, wherein the first group of paths comprises N paths, and N is a positive integer greater than or equal to 1; determining whether a path in the first set of paths includes the first current path; and under the condition that the ith path in the first group of paths contains the first current path, replacing the ith path in the first group of paths with the first current path to obtain a second group of paths, wherein the second group of paths are the paths to be searched which are currently determined, and i is a positive integer which is greater than or equal to 1 and less than or equal to N.
Optionally, in the file searching method provided in the embodiment of the present application, the user has configured the content to be searched and the range information to be searched in the search interface of the client to obtain the first set of paths, where the user may feel that the range information to be searched in the range information to be searched is too large or too small, in this case, the first current path may be configured again, but not limited to, where if the ith path in the first set of paths includes the first current path, it may be indicated that the first current path is a sub-path of the ith path in the first set of paths, for example: path B contains path a, it being understood that path a is a sub-path of path B, e.g., path B is C: path A is C \\Windows. In such a case, the i-th path of the first set of paths may be replaced with the first current path, that is, the range of the second set of paths resulting from the replacement is smaller than the range of the first set of paths. By the method, the path to be searched is flexibly configured according to the searching requirement of the user, and the experience of the user is improved.
In one exemplary embodiment, the content to be searched and the range information to be searched may be obtained in a search interface of the client by, but not limited to, the following ways: and under the condition that the paths in the first group of paths do not contain the first current path, adding the first current path into the first group of paths to obtain a third group of paths, wherein the third group of paths are the paths to be searched which are currently determined.
Optionally, in the file searching method provided in the embodiment of the present application, the user has configured the content to be searched and the range information to be searched in the search interface of the client to obtain the first set of paths, but the user may feel that the range information to be searched in the range information to be searched is too large or too small, in this case, the first current path may be configured again, but not limited to, and in the case that it is determined that none of the paths in the first set of paths includes the first current path, it may be indicated that the first current path is a path to be searched that needs to be newly added, and in this case, the first current path is added to the first set of paths to obtain the third set of paths. The third set of paths has a range that is greater than the range of the first set of paths. By the method, the path to be searched is flexibly configured according to the searching requirement of the user, and the experience of the user is improved.
In one exemplary embodiment, the content to be searched and the range information to be searched may be obtained in a search interface of the client by, but not limited to, the following ways: under the condition that a fourth group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a second current path to be configured, wherein the fourth group of paths comprise M forbidden searching paths, and M is a positive integer greater than or equal to 1; determining whether a path in the fourth set of paths includes the second current path; and under the condition that the j-th path in the fourth group of paths contains the second current path, replacing the j-th path in the fourth group of paths with the second current path to obtain a fifth group of paths, wherein the fifth group of paths are the forbidden searching paths which are currently determined, and j is a positive integer which is greater than or equal to 1 and less than or equal to M.
Optionally, in the file searching method provided in the embodiment of the present application, in a case where M search prohibition paths are configured in the search interface of the client, but the user may feel that the range of the search prohibition paths is too large or too small, in this case, the second current path may be configured again, and if the jth path in the fourth set of paths includes the second current path, it may be indicated that the second current path is a sub-path of the jth path in the fourth set of paths, for example: path B contains path a, it being understood that path a is a sub-path of path B, e.g., path B is C: path A is C \\Windows. In such a case, the j-th path in the fourth set of paths may be replaced with the second current path, that is, the range of the fifth set of paths obtained after the replacement is smaller than the range of the fourth set of paths. By the method, the path to be searched is flexibly configured according to the searching requirement of the user, and the experience of the user is improved.
In one exemplary embodiment, the content to be searched and the range information to be searched may be obtained in a search interface of the client by, but not limited to, the following ways: and under the condition that the paths in the fourth group of paths do not contain the second current path, adding the second current path into the fourth group of paths to obtain a sixth group of paths, wherein the sixth group of paths are the currently determined forbidden search paths.
Optionally, in the file searching method provided in the embodiment of the present application, in a case where M search prohibition paths are configured in the search interface of the client, but the user may feel that the range of the search prohibition paths is too large or too small, in this case, the second current path may be configured again, if none of the fourth set of paths includes the second current path, the second current path is added to the fourth set of paths, so as to obtain a sixth set of paths, that is, the range of the sixth set of paths obtained after the replacement is larger than the range of the fourth set of paths.
Fig. 5 is a schematic diagram of a configuration path according to an embodiment of the present application, as shown in fig. 5, paths to be searched in a search interface 102-1 of a client 102 are C: \and E: \, and forbidden search paths are E: \workspace and C: \. The search interface 102-1 of the client 102 is further provided with a search prohibition path field, and the user can pop up the interface 102-2 by clicking a selection button for excluding the address field, and in the interface 102-2, the user can click a newly added path button to pop up the interface 102-3; selecting a path in interface 102-3 that prohibits a lookup, such as: the video, the picture, the desktop and the local disk C in the local disk C are selected as the path which is forbidden to search in the local disk C, or the C is selected as the forbidden path in the forbidden path list of the interface 102-2.
In such a case, C: \and C: \Windows are inclusion relationships, then C: \is overlaid with C: \Windows, i.e., the C: \Windows path in the selected set is deleted, and a C: \is added; conversely, if C: \Windows is currently selected, but C: \Windows is later selected, then C: \Windows is replaced with C: \Windows.
If the user feels that the range of the default C \\Windows is too small at first, and the whole C disk is to be excluded, then the path C \\is selected later, and the path C \Windows is included, so that the path C \Windows is covered, and the path C \Windows is changed into a C disk with a larger range; if the user selects the C disc, and remorses, only a certain folder is required to be removed from the C disc, and all folders are not required to be removed, then selecting certain folders from the C disc again, deleting C in the selected set, and instead selecting a plurality of small-range folders, such as C in Users, C in Temp, and the like, indicating that other places of the C disc are to be scanned besides the two folders.
To sum up, if the previously selected path and the last selected path have a relationship that includes each other, the previous path is removed and the last selected path is replaced. But if the mutual inclusion relationship does not exist, a last selected path is directly added.
In the technical solution provided in step 102, the user may but is not limited to configure the content to be searched and the range information to be searched in the search interface of the client, and when the content to be searched and the range information to be searched are obtained in the search interface of the client, it may be indicated that the search instruction is obtained, and in such a case, the file name may but is not limited to search the file whose file name includes the content to be searched and the file content includes the file of the content to be searched in the search range determined by the range information to be searched. By the method, accurate searching of the file is achieved, and the condition that the file name of the file does not include the content to be searched and the file content includes the content to be searched is avoided, and the file is not detected or is detected by mistake.
Optionally, in the file searching method provided in the embodiment of the present application, searching for a file whose file name includes the content to be searched and a file whose file content includes the content to be searched may be implemented by, but not limited to, a sandy algorithm for searching for keywords, KMP, BF, BM, or RK or the like. The file searching method in the embodiment of the application can be explained and illustrated by taking the Mordi algorithm as an example but not limited to. The file searching method in the embodiment of the application can be implemented by the following steps:
Target string (corresponding to text content or file name): abcdefghijklmn
Keywords (equivalent to content to be searched) ijk
Step S202, comparing abc and ijk, finding abc and ijk not matched, and jumping to end d to judge whether d exists in keyword ijk, as follows:
target character string: abcdefghijklmn
Keyword: ijk (Ijk)
In step S204, if d is determined not to exist in the keyword ijk, then the step is shifted backward by one bit to continue the determination, and the comparison between efg and ijk is performed as follows:
target character string: abcdefghijklmn
Keyword: ijk (Ijk)
If the judgment is not matched, jumping to the tail h, and judging whether h exists in ijk or not;
in step S206, if it is determined that h is not present in ijk, then a bit is shifted as follows:
target character string: abcdefghijklmn
Keyword: ijk, at this time, is matched, in which case it can be determined that the keyword is included in the target character string.
Through the Mordi algorithm, the file name and the file content of the text are matched with the content to be searched, and when the pattern string is found to be unmatched in the matching process, the algorithm skips as many characters as possible to carry out the next matching, so that the matching efficiency is improved.
In an exemplary embodiment, in response to the search instruction acquired in the search interface, searching for a file whose file name includes the content to be searched and searching for a file whose file content includes the content to be searched in a search range determined by the range information to be searched includes: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the files of the contents to be searched in the files with the file types of the target file types in the path to be searched and searching files with the file contents comprising the files of the contents to be searched, wherein the searching range comprises the files with the file types of the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned first searching result on the searching interface, wherein the target searching result comprises the first searching result, and the first searching result is used for indicating that the file name searched in the file with the file type of the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, in the file searching method provided in the embodiment of the present application, the target file type may, but is not limited to, include a file type that is desired to be searched in the path to be searched, in which case, the file name and the file content including the file to be searched may, but are not limited to, be searched in the file whose file type is the target file type in the path to be searched, and the searched file is displayed on the searching interface of the client.
In an exemplary embodiment, before searching for a file whose file name includes the content to be searched for and searching for a file whose file content includes the content to be searched for in the search range determined by the range information to be searched for, the method further includes: acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained in the searching interface, and searching files with file names comprising the files of the contents to be searched and files with the contents of the files comprising the contents to be searched in the files with the file types of the target file types in paths except the paths which are forbidden to be searched in the paths to be searched, wherein the searching range comprises the files with the file types of the target file types in the paths except the paths which are forbidden to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned second searching result on the searching interface, wherein the target searching result comprises the second searching result, and the second searching result is used for indicating that the file type in the paths except the forbidden searching path in the paths to be searched is the file of the target file type, the searched file name comprises the file of the content to be searched, and the searched file content comprises the file of the content to be searched.
Optionally, in the file searching method provided in the embodiment of the present application, a user may configure a search prohibition path in a search interface of a client, fig. 6 is a schematic configuration diagram of a search prohibition path according to an embodiment of the present application, and, with reference to fig. 2 and fig. 6, a search prohibition path field is further disposed in a search interface 102-1 of a client 102, and the user may pop up an interface 102-2 by clicking a selection button for excluding an address field, and in the interface 102-2, the user may click a newly added path button and pop up an interface 102-3; selecting a path in interface 102-3 that prohibits a lookup, such as: c \Window in the local disk C is selected as a path which is forbidden to be searched in the local disk C.
The user may also delete one or more paths in the list of forbidden paths in the interface 102-2 by selecting. Also, a function of adding a new condition is that the user can fill in a text box of the "new condition" button in the interface 102-2 with a keyword containing a number, such as node_modules, because the node_modules folder is self-contained in the vue framework, and the inside is a vue component dependent, and contains a large amount of js files and txt files, which would certainly waste a large amount of time if searching for them. By adding the fuzzy matching function, the system can judge whether the character string of node_modules is contained in the file name of the current scanning during the formal searching, and if so, the system skips without searching the content of the character string. When several paths to be excluded are selected, clicking to close the pop-up interface, the right side of the "exclude address" of the search interface 102-1 will display the paths that have been selected to prohibit searching, for example: c \Window, E \workspace.
In an exemplary embodiment, in response to the search instruction acquired in the search interface, searching for a file whose file name includes the content to be searched and searching for a file whose file content includes the content to be searched in a search range determined by the range information to be searched includes: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the content to be searched in the files with file types not being the target file types in the path to be searched and searching files with file contents comprising the content to be searched, wherein the searching range comprises files with file types not being the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned third searching result on the searching interface, wherein the target searching result comprises the third searching result, and the third searching result is used for indicating that the file name searched in the file with the file type not being the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, in the file searching method provided in the embodiment of the present application, the target file type may be a file type that is not desired to be searched, that is, a file type that is prohibited from being searched, and in this case, the file type that is prohibited from being searched may be configured in a search interface of the client, and a file name that includes a file to be searched and a file that includes a content to be searched may be searched in a file whose file type is not the target file type in the path to be searched.
In one exemplary embodiment, the range information to be looked up may be reconfigured, but is not limited to, by: in the process of searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the range information to be searched, responding to a searching pause instruction acquired in the searching interface, and pausing searching the files with the file names comprising the content to be searched and the files with the file contents comprising the content to be searched in the searching range determined by the range information to be searched; acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; and responding to a search continuation instruction acquired from the search interface, and continuing searching files with file names comprising the files of the contents to be searched and files with file contents comprising the contents to be searched in the files with the file types of the target file types in paths except the path which is forbidden to be searched in the paths to be searched, wherein the search range comprises the files with the file types of the target file types in the paths except the path which is forbidden to be searched.
Optionally, in the file searching method provided in the embodiment of the present application, in a process of continuing searching for a file whose file name includes the content to be searched and searching for a file whose file content includes the content to be searched, in a file whose file type in a path other than the forbidden searching path is the target file type in the paths to be searched, searching for a path that has been searched in the searching range before suspending searching is unnecessary to be performed again.
Fig. 7 is a schematic diagram of suspending searching according to an embodiment of the present application, as shown in fig. 7, paths to be searched in a searching interface 102-1 of a client 102 are C: \and E: \, paths to be forbidden to be searched are E: \workspace and C: \and object file types are csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx, and content to be searched is 1ax.
The user clicks the "run" button to start searching for a file with a file name of 1ax and a file with a file content of 1ax in the files with the target file type of csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx in the path E: \except the path E: \workspace, and the interface 102-1 displays the searching progress, wherein the searching progress comprises the currently scanned file and the file type.
Such as: the path in the seek progress that would indicate that a seek is currently being performed may include, but is not limited to: e \ajax\portalweb\portalweb\not_modules\echarts\node_modules\tslib\LICENSE. The target file type is txt. In this way, the search process is as transparent as possible to the user.
In the process of searching for a file whose file name includes 1ax and a file whose file content includes 1ax in the file of the target file type csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx in the path other than the path E: \workspace in the path E: \the user may click on the "pause" button in the interface 102-1 and then reconfigure the path to be searched and the target file type if some folders are found in the "progress" displayed in the interface 102-1 and some files of the file type are found in the "target file type" row and do not need to be scanned, and then continue searching for a file whose file includes the content to be searched and a file whose file name includes the content to be searched in the search range determined by the reconfigured path to be searched and the target file type. In addition, the 'stop' button can be clicked, at the moment, the 'stop' button is jumped to the 'run' button, then the 'run' button is clicked after the path to be searched and the type of the target file are reconfigured, scanning is carried out according to the path to be searched and the type of the target file after the reconfiguration, and the flexibility of searching is improved. After the search is completed, a target search result is displayed, wherein the target search result comprises a file 6, a file 7 and a file 8 with file contents comprising the content to be searched, and a file 9 and a file 10 with file names comprising the content to be searched.
In the technical solution provided in step 103, the file name searched in the searched searching range may be displayed on the searching interface of the client, and the searched file content may include the file of the content to be searched.
Fig. 8 is a display diagram of a target search result according to an embodiment of the present application, as shown in fig. 8, in a search interface 102-1 of a client 102, a to-be-searched path is C: \and G: \and a forbidden search path is C: \temp, a target file type is csv, log, pdf, ppt, rtf, wps, wpt, xls, xlsm, xlsx, xmind, doc and docx, and a to-be-searched content is 2a3b. Under the condition that searching is completed, prompt information is displayed, and the completion of the current searching and the total time of the current searching are displayed, for example: 0.1 seconds. Displaying a target searching result in the searching interface 102-1, wherein the target searching result comprises file 1, file 2, file 3 and file 4 of which the file content comprises the content 2a and 3b to be searched; and the file name includes the file 5 and the file 6 of the content 2a3b to be searched. By the method, visual display of the search result is achieved, and the readability of the search result is improved.
According to the file searching method provided by the embodiment of the application, the content to be searched and the range information to be searched are obtained in the searching interface of the client, the file name and the file content comprising the file of the content to be searched are searched in the range to be searched determined by the range information to be searched, and then the searched file is returned and displayed on the searching interface of the client, so that the problem of low file searching accuracy in the related technology is solved. Thereby achieving the effect of improving the accuracy of file searching.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a file searching device, and the file searching device can be used for executing the file searching method. The following describes a file searching apparatus provided in an embodiment of the present application.
Fig. 9 is a schematic diagram of a file finding apparatus according to an embodiment of the present application. As shown in fig. 9, the apparatus includes:
the first obtaining module 902 is configured to obtain content to be searched and range information to be searched in a search interface of a client, where the range information to be searched at least includes a path to be searched and a target file type;
a first searching module 904, configured to respond to a searching instruction obtained in the searching interface, and search a file whose file name includes the content to be searched and a file whose searched file content includes the content to be searched in a searching range determined by the range information to be searched;
and a display module 906, configured to display a returned target search result on the search interface, where the target search result is used to indicate that a file name found in the search range determined by the search range information includes the file of the content to be searched, and that the found file content includes the file of the content to be searched.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the first searching module includes: the first searching unit is used for responding to the searching instruction acquired in the searching interface, searching files with file names comprising the content to be searched in the files with the file types being the target file types in the path to be searched and searching files with the file contents comprising the content to be searched, wherein the searching range comprises files with the file types being the target file types in the path to be searched; a display module, comprising: the first display unit is used for displaying a returned first searching result on the searching interface, wherein the target searching result comprises the first searching result, and the first searching result is used for indicating that the file name searched in the file with the file type of the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the apparatus further includes: the second obtaining module is used for obtaining a forbidden searching path in the searching interface of the client before searching the file with the file name comprising the content to be searched in the searching range determined by the range information to be searched and searching the file with the file content comprising the content to be searched, wherein the forbidden searching path is a path contained in the path to be searched; the first search module includes: the second searching unit is used for responding to the searching instruction acquired in the searching interface, and searching files with file names comprising the files of the contents to be searched and files with the contents of the files comprising the contents to be searched in the files with the file types of the target file types in the paths except the paths to be searched in the paths to be searched; a display module, comprising: the second display unit is configured to display a second search result returned on the search interface, where the target search result includes the second search result, and the second search result is used to indicate that, in the files whose file types in the paths other than the forbidden search path are the target file types, the searched file name includes the file of the content to be searched, and the searched file content includes the file of the content to be searched.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the first searching module includes: the third searching unit is used for responding to the searching instruction obtained in the searching interface, searching files with file names comprising the content to be searched in the files with file types not being the target file types in the path to be searched and searching files with file contents comprising the content to be searched, wherein the searching range comprises files with file types not being the target file types in the path to be searched; a display module, comprising: and the third display unit is used for displaying a returned third searching result on the searching interface, wherein the target searching result comprises the third searching result, and the third searching result is used for indicating that the file name searched in the file with the file type which is not the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the first obtaining module includes: the first acquisition unit is used for responding to the path configuration instruction acquired on the search interface to acquire a first current path to be configured under the condition that a first group of paths are acquired on the search interface, wherein the first group of paths comprise N paths, and N is a positive integer greater than or equal to 1; a first determining unit configured to determine whether a path in the first set of paths includes the first current path; and the first replacing unit is used for replacing the ith path in the first group of paths with the first current path under the condition that the ith path in the first group of paths contains the first current path, so as to obtain a second group of paths, wherein the second group of paths are the paths to be searched which are currently determined, and i is a positive integer which is more than or equal to 1 and less than or equal to N.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the first obtaining module includes: and the first adding unit is used for adding the first current path into the first group of paths to obtain a third group of paths under the condition that the paths in the first group of paths do not contain the first current path, wherein the third group of paths are the paths to be searched which are currently determined.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the first obtaining module includes: a second obtaining unit, configured to obtain, in response to a path configuration instruction obtained on the search interface, a second current path to be configured when a fourth set of paths has been obtained on the search interface, where the fourth set of paths includes M search-prohibited paths, and M is a positive integer greater than or equal to 1; a second determining unit configured to determine whether a path in the fourth set of paths includes the second current path; and a second replacing unit, configured to replace a jth path in the fourth set of paths with the second current path if it is determined that the jth path in the fourth set of paths includes the second current path, to obtain a fifth set of paths, where j is a positive integer greater than or equal to 1 and less than or equal to M, where the fifth set of paths is the currently determined prohibited search path.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the first obtaining module includes: and the second adding unit is used for adding the second current path into the fourth group of paths to obtain a sixth group of paths under the condition that the paths in the fourth group of paths do not contain the second current path, wherein the sixth group of paths are the forbidden search paths which are currently determined.
Optionally, in the file searching apparatus provided in the embodiment of the present application, the apparatus further includes: a suspension module, configured to suspend, in response to a suspension instruction obtained in the search interface, searching for a file whose file name includes the content to be searched and searching for a file whose file content includes the content to be searched in a search range determined by the range information, in a process of searching for a file whose file name includes the content to be searched and searching for a file whose file content includes the content to be searched in the search range determined by the range information after searching for a file whose file name includes the content to be searched in the search range determined by the range information and searching for a file whose file content includes the content to be searched; a third obtaining module, configured to obtain a search prohibition path in the search interface of the client, where the search prohibition path is a path included in the path to be searched; and the second searching module is used for responding to a searching continuing instruction acquired in the searching interface, and continuing searching files with file names comprising the files of the contents to be searched and searching files with the contents comprising the files of the contents to be searched in the files with the file types of the target file types in the paths except the paths to be searched in the paths to be searched.
According to the file searching device, the content to be searched and the range information to be searched are acquired in the searching interface of the client, the file name and the file content including the file of the content to be searched are searched in the range to be searched determined by the range information to be searched, and then the searched file is returned and displayed on the searching interface of the client, so that the problem that the file is missed to be searched and false to be searched is solved, and the problem that the file searching accuracy is low in the related technology is solved. Thereby achieving the effect of improving the accuracy of file searching.
The file searching device comprises a processor and a memory, wherein the units are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the accuracy of file searching is improved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a program that, when executed by a processor, implements the file finding method.
The embodiment of the invention provides a processor which is used for running a program, wherein the program runs to execute the file searching method.
As shown in fig. 10, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining content to be searched and range information to be searched in a search interface of a client, wherein the range information to be searched at least comprises a path to be searched and a target file type; responding to a searching instruction obtained from the searching interface, searching a file with a file name comprising the content to be searched and a file with a file content comprising the content to be searched in a searching range determined by the range information to be searched; and displaying a returned target searching result on the searching interface, wherein the target searching result is used for indicating that the file name searched in the searching range determined by the searching range information comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched.
Optionally, the following steps may be implemented when the above processor executes a program: the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the files of the contents to be searched in the files with the file types of the target file types in the path to be searched and searching files with the file contents comprising the files of the contents to be searched, wherein the searching range comprises the files with the file types of the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned first searching result on the searching interface, wherein the target searching result comprises the first searching result, and the first searching result is used for indicating that the file name searched in the file with the file type of the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, the following steps may be implemented when the above processor executes a program: before searching the file with the file name comprising the content to be searched and searching the file with the file content comprising the content to be searched in the searching range determined by the range information to be searched, the method further comprises: acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained in the searching interface, and searching files with file names comprising the files of the contents to be searched and files with the contents of the files comprising the contents to be searched in the files with the file types of the target file types in paths except the paths which are forbidden to be searched in the paths to be searched, wherein the searching range comprises the files with the file types of the target file types in the paths except the paths which are forbidden to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned second searching result on the searching interface, wherein the target searching result comprises the second searching result, and the second searching result is used for indicating that the file type in the paths except the forbidden searching path in the paths to be searched is the file of the target file type, the searched file name comprises the file of the content to be searched, and the searched file content comprises the file of the content to be searched.
Optionally, the following steps may be implemented when the above processor executes a program: the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the content to be searched in the files with file types not being the target file types in the path to be searched and searching files with file contents comprising the content to be searched, wherein the searching range comprises files with file types not being the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned third searching result on the searching interface, wherein the target searching result comprises the third searching result, and the third searching result is used for indicating that the file name searched in the file with the file type not being the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, the following steps may be implemented when the above processor executes a program: under the condition that a first group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a first current path to be configured, wherein the first group of paths comprises N paths, and N is a positive integer greater than or equal to 1; determining whether a path in the first set of paths includes the first current path; and under the condition that the ith path in the first group of paths contains the first current path, replacing the ith path in the first group of paths with the first current path to obtain a second group of paths, wherein the second group of paths are the paths to be searched which are currently determined, and i is a positive integer which is greater than or equal to 1 and less than or equal to N.
Optionally, the following steps may be implemented when the above processor executes a program: and under the condition that the paths in the first group of paths do not contain the first current path, adding the first current path into the first group of paths to obtain a third group of paths, wherein the third group of paths are the paths to be searched which are currently determined.
Optionally, the following steps may be implemented when the above processor executes a program: under the condition that a fourth group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a second current path to be configured, wherein the fourth group of paths comprise M forbidden searching paths, and M is a positive integer greater than or equal to 1; determining whether a path in the fourth set of paths includes the second current path; and under the condition that the j-th path in the fourth group of paths contains the second current path, replacing the j-th path in the fourth group of paths with the second current path to obtain a fifth group of paths, wherein the fifth group of paths are the forbidden searching paths which are currently determined, and j is a positive integer which is greater than or equal to 1 and less than or equal to M.
Optionally, the following steps may be implemented when the above processor executes a program: and under the condition that the paths in the fourth group of paths do not contain the second current path, adding the second current path into the fourth group of paths to obtain a sixth group of paths, wherein the sixth group of paths are the currently determined forbidden search paths.
Optionally, the following steps may be implemented when the above processor executes a program: in the process of searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the range information to be searched, responding to a searching pause instruction acquired in the searching interface, and pausing searching the files with the file names comprising the content to be searched and the files with the file contents comprising the content to be searched in the searching range determined by the range information to be searched; acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; and responding to a search continuation instruction acquired from the search interface, and continuing searching files with file names comprising the files of the contents to be searched and files with file contents comprising the contents to be searched in the files with the file types of the target file types in paths except the path which is forbidden to be searched in the paths to be searched, wherein the search range comprises the files with the file types of the target file types in the paths except the path which is forbidden to be searched.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: obtaining content to be searched and range information to be searched in a search interface of a client, wherein the range information to be searched at least comprises a path to be searched and a target file type; responding to a searching instruction obtained from the searching interface, searching a file with a file name comprising the content to be searched and a file with a file content comprising the content to be searched in a searching range determined by the range information to be searched; and displaying a returned target searching result on the searching interface, wherein the target searching result is used for indicating that the file name searched in the searching range determined by the searching range information comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the files of the contents to be searched in the files with the file types of the target file types in the path to be searched and searching files with the file contents comprising the files of the contents to be searched, wherein the searching range comprises the files with the file types of the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned first searching result on the searching interface, wherein the target searching result comprises the first searching result, and the first searching result is used for indicating that the file name searched in the file with the file type of the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: before searching the file with the file name comprising the content to be searched and searching the file with the file content comprising the content to be searched in the searching range determined by the range information to be searched, the method further comprises: acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained in the searching interface, and searching files with file names comprising the files of the contents to be searched and files with the contents of the files comprising the contents to be searched in the files with the file types of the target file types in paths except the paths which are forbidden to be searched in the paths to be searched, wherein the searching range comprises the files with the file types of the target file types in the paths except the paths which are forbidden to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned second searching result on the searching interface, wherein the target searching result comprises the second searching result, and the second searching result is used for indicating that the file type in the paths except the forbidden searching path in the paths to be searched is the file of the target file type, the searched file name comprises the file of the content to be searched, and the searched file content comprises the file of the content to be searched.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the content to be searched in the files with file types not being the target file types in the path to be searched and searching files with file contents comprising the content to be searched, wherein the searching range comprises files with file types not being the target file types in the path to be searched; displaying the returned target searching result on the searching interface, including: and displaying a returned third searching result on the searching interface, wherein the target searching result comprises the third searching result, and the third searching result is used for indicating that the file name searched in the file with the file type not being the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: under the condition that a first group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a first current path to be configured, wherein the first group of paths comprises N paths, and N is a positive integer greater than or equal to 1; determining whether a path in the first set of paths includes the first current path; and under the condition that the ith path in the first group of paths contains the first current path, replacing the ith path in the first group of paths with the first current path to obtain a second group of paths, wherein the second group of paths are the paths to be searched which are currently determined, and i is a positive integer which is greater than or equal to 1 and less than or equal to N.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: and under the condition that the paths in the first group of paths do not contain the first current path, adding the first current path into the first group of paths to obtain a third group of paths, wherein the third group of paths are the paths to be searched which are currently determined.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: under the condition that a fourth group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a second current path to be configured, wherein the fourth group of paths comprise M forbidden searching paths, and M is a positive integer greater than or equal to 1; determining whether a path in the fourth set of paths includes the second current path; and under the condition that the j-th path in the fourth group of paths contains the second current path, replacing the j-th path in the fourth group of paths with the second current path to obtain a fifth group of paths, wherein the fifth group of paths are the forbidden searching paths which are currently determined, and j is a positive integer which is greater than or equal to 1 and less than or equal to M.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: and under the condition that the paths in the fourth group of paths do not contain the second current path, adding the second current path into the fourth group of paths to obtain a sixth group of paths, wherein the sixth group of paths are the currently determined forbidden search paths.
Optionally, the computer program product mentioned above, when executed on a data processing device, is adapted to perform a program initialized with the method steps of: in the process of searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the range information to be searched, responding to a searching pause instruction acquired in the searching interface, and pausing searching the files with the file names comprising the content to be searched and the files with the file contents comprising the content to be searched in the searching range determined by the range information to be searched; acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched; and responding to a search continuation instruction acquired from the search interface, and continuing searching files with file names comprising the files of the contents to be searched and files with file contents comprising the contents to be searched in the files with the file types of the target file types in paths except the path which is forbidden to be searched in the paths to be searched, wherein the search range comprises the files with the file types of the target file types in the paths except the path which is forbidden to be searched.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (12)

1. A method for searching a file, comprising:
obtaining content to be searched and range information to be searched in a search interface of a client, wherein the range information to be searched at least comprises a path to be searched and a target file type;
responding to a searching instruction obtained from the searching interface, searching a file with a file name comprising the content to be searched and a file with a file content comprising the content to be searched in a searching range determined by the range information to be searched;
And displaying a returned target searching result on the searching interface, wherein the target searching result is used for indicating that the file name searched in the searching range determined by the searching range information comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the files of the contents to be searched in the files with the file types of the target file types in the path to be searched and searching files with the file contents comprising the files of the contents to be searched, wherein the searching range comprises the files with the file types of the target file types in the path to be searched;
displaying the returned target searching result on the searching interface, including: and displaying a returned first searching result on the searching interface, wherein the target searching result comprises the first searching result, and the first searching result is used for indicating that the file name searched in the file with the file type of the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
before searching the file with the file name comprising the content to be searched and searching the file with the file content comprising the content to be searched in the searching range determined by the range information to be searched, the method further comprises: acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched;
the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained in the searching interface, and searching files with file names comprising the files of the contents to be searched and files with the contents of the files comprising the contents to be searched in the files with the file types of the target file types in paths except the paths which are forbidden to be searched in the paths to be searched, wherein the searching range comprises the files with the file types of the target file types in the paths except the paths which are forbidden to be searched;
Displaying the returned target searching result on the searching interface, including: and displaying a returned second searching result on the searching interface, wherein the target searching result comprises the second searching result, and the second searching result is used for indicating that the file type in the paths except the forbidden searching path in the paths to be searched is the file of the target file type, the searched file name comprises the file of the content to be searched, and the searched file content comprises the file of the content to be searched.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the searching file name including the file of the content to be searched and the searching file content including the file of the content to be searched in the searching range determined by the range information to be searched in response to the searching instruction acquired in the searching interface comprises the following steps: responding to a searching instruction obtained from the searching interface, searching files with file names comprising the content to be searched in the files with file types not being the target file types in the path to be searched and searching files with file contents comprising the content to be searched, wherein the searching range comprises files with file types not being the target file types in the path to be searched;
Displaying the returned target searching result on the searching interface, including: and displaying a returned third searching result on the searching interface, wherein the target searching result comprises the third searching result, and the third searching result is used for indicating that the file name searched in the file with the file type not being the target file type in the path to be searched comprises the file with the content to be searched and the searched file content comprises the file with the content to be searched.
5. The method according to claim 1, wherein the obtaining the content to be searched and the range information to be searched in the search interface of the client includes:
under the condition that a first group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a first current path to be configured, wherein the first group of paths comprises N paths, and N is a positive integer greater than or equal to 1;
determining whether a path in the first set of paths includes the first current path;
and under the condition that the ith path in the first group of paths contains the first current path, replacing the ith path in the first group of paths with the first current path to obtain a second group of paths, wherein the second group of paths are the paths to be searched which are currently determined, and i is a positive integer which is greater than or equal to 1 and less than or equal to N.
6. The method according to claim 5, wherein the obtaining the content to be searched and the range information to be searched in the search interface of the client includes:
and under the condition that the paths in the first group of paths do not contain the first current path, adding the first current path into the first group of paths to obtain a third group of paths, wherein the third group of paths are the paths to be searched which are currently determined.
7. A method according to claim 3, wherein the obtaining the content to be searched and the range information to be searched in the search interface of the client includes:
under the condition that a fourth group of paths are acquired on the searching interface, responding to a path configuration instruction acquired on the searching interface, and acquiring a second current path to be configured, wherein the fourth group of paths comprise M forbidden searching paths, and M is a positive integer greater than or equal to 1;
determining whether a path in the fourth set of paths includes the second current path;
and under the condition that the j-th path in the fourth group of paths contains the second current path, replacing the j-th path in the fourth group of paths with the second current path to obtain a fifth group of paths, wherein the fifth group of paths are the forbidden searching paths which are currently determined, and j is a positive integer which is greater than or equal to 1 and less than or equal to M.
8. The method according to claim 7, wherein the obtaining the content to be searched and the range information to be searched in the search interface of the client includes:
and under the condition that the paths in the fourth group of paths do not contain the second current path, adding the second current path into the fourth group of paths to obtain a sixth group of paths, wherein the sixth group of paths are the currently determined forbidden search paths.
9. The method according to any one of claims 1 to 8, wherein after searching for a file whose file name includes the content to be searched for and searching for a file whose file content includes the content to be searched for in the search range determined by the range information to be searched for, the method further comprises:
in the process of searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the range information to be searched, responding to a searching pause instruction acquired in the searching interface, and pausing searching the files with the file names comprising the content to be searched and the files with the file contents comprising the content to be searched in the searching range determined by the range information to be searched;
Acquiring a forbidden search path from the search interface of the client, wherein the forbidden search path is a path contained in the path to be searched;
and responding to a search continuation instruction acquired from the search interface, and continuing searching files with file names comprising the files of the contents to be searched and files with file contents comprising the contents to be searched in the files with the file types of the target file types in paths except the path which is forbidden to be searched in the paths to be searched, wherein the search range comprises the files with the file types of the target file types in the paths except the path which is forbidden to be searched.
10. A document searching apparatus, comprising:
the first acquisition module is used for acquiring content to be searched and range information to be searched in a search interface of the client, wherein the range information to be searched at least comprises a path to be searched and a target file type;
the first searching module is used for responding to the searching instruction acquired in the searching interface, searching files with file names comprising the content to be searched and files with file contents comprising the content to be searched in the searching range determined by the information of the range to be searched;
The display module is used for displaying a returned target searching result on the searching interface, wherein the target searching result is used for indicating that the file name searched in the searching range determined by the searching range information comprises the file of the content to be searched and the searched file content comprises the file of the content to be searched.
11. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 9.
12. An electronic device comprising one or more processors and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-9.
CN202310487770.2A 2023-04-28 2023-04-28 File searching method and device, storage medium and electronic equipment Pending CN116561071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310487770.2A CN116561071A (en) 2023-04-28 2023-04-28 File searching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310487770.2A CN116561071A (en) 2023-04-28 2023-04-28 File searching method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116561071A true CN116561071A (en) 2023-08-08

Family

ID=87490941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310487770.2A Pending CN116561071A (en) 2023-04-28 2023-04-28 File searching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116561071A (en)

Similar Documents

Publication Publication Date Title
US8112404B2 (en) Providing search results for mobile computing devices
US20120124126A1 (en) Contextual and task focused computing
CN102959542B (en) For the method and apparatus of managing video content
US7739289B2 (en) Reviewing user-created content before website presentation
CN108549569B (en) Method and equipment for searching information in application program
CN106156244B (en) Information search navigation method and device
US20080276177A1 (en) Tag-sharing and tag-sharing application program interface
US11356498B2 (en) Method and a device for sharing a hosted application
US20160378718A1 (en) Electronic Discovery Insight Tool
US20140181099A1 (en) User management of electronic documents
CN105843800A (en) DOI-based language information display method and device
CN105335423A (en) Collecting and processing method and apparatus for user feedbacks of webpage
CN114416667A (en) Method and device for rapidly sharing network disk file, network disk and storage medium
US20160188584A1 (en) System for tracking and displaying changes in a set of related electronic documents.
CN110546633A (en) Named entity based category tag addition for documents
US20160248890A1 (en) Hybrid native networked applications
CN110968314A (en) Page generation method and device
CN111368226A (en) Screening method and device, electronic equipment and computer readable storage medium
CN107391534A (en) The page is shown, pagefile return method and device, computer-readable storage medium
US9690769B2 (en) Method and system for completing an edit area of a web page
US10877981B1 (en) Stopword inclusion for searches
CN110659406B (en) Searching method and device
US10152530B1 (en) Determining a recommended control point for a file system
CN116561071A (en) File searching method and device, storage medium and electronic equipment
CN111914165A (en) Target object recommendation method, device, equipment and storage medium

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