A search method, computing device, and readable storage medium
By using the file manager's custom search function, users can perform custom searches for drive letters and directory names using a search engine, which solves the problem of cumbersome search processes in existing technologies and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2026-03-27
AI Technical Summary
Existing operating systems do not allow users to customize the search scope when searching for files or folders, resulting in a cumbersome and time-consuming search process across multiple directories and files, leading to a poor user experience.
This paper provides a search method that allows users to enter drive letters, directory names, and file names through the custom search function of a file manager. The system then uses a search engine to perform a custom search, generating and presenting the first and second search results, thereby improving search efficiency.
It enables custom searches for drive letters, directory names, and files on computing devices, simplifying the search process across multiple directories and files and improving the user experience.
Smart Images

Figure CN115017105B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and in particular, to a search method, a computing device and a readable storage medium. BACKGROUND
[0002] At present, in the existing operating system, the search of files or folders is limited to the current directory, if the user needs to search for file A and file B, the user roughly remembers that the two files are located in directory C, directory D or directory E, at this time, the user needs to search in these directories in turn, or search for file A and B in the parent directory of these directories twice, such search method is tedious and time-consuming.
[0003] The search function of the existing operating system, such as Windows and UOS operating system, can only search for single files in the current directory and its subdirectories, and cannot customize the search range and files. When the user needs to search for multiple directories and multiple files at the same time, the user can only switch between multiple directories or search in the parent directory of multiple directories. If there are many directories to be searched or many files to be searched, the entire search process will become tedious and time-consuming, and a large number of repeated operations will result in poor user experience.
[0004] Therefore, there is a need for a search method to solve the problems in the prior art. SUMMARY
[0005] Therefore, the present application provides a search method, a computing device and a readable storage medium to solve or at least alleviate the above problems.
[0006] According to a first aspect of the present application, a search method is provided, which is executed in a file manager of a computing device, the method comprising: in response to an operation of searching for a search item after enabling custom search, sending a disk symbol and a directory name in the search item to a search engine of the computing device to obtain a first search result, the search item comprising a disk symbol, a directory name and a file name; sending the first search result and the file name in the search item to the search engine to obtain a second search result; and presenting the first search result and the second search result together.
[0007] Optionally, in the search method according to the present application, the search item further comprises an option of searching only the current directory, and the method further comprises: if the option of searching only the current directory is triggered, determining whether the directory name is empty; if the directory name is empty, determining that the first search result is the current directory; and if the directory name is not empty, taking the result of searching the directory name under the current directory as the first search result.
[0008] Optionally, in the search method according to the present application, further comprising: if the option of searching only the current directory is not triggered, judging whether the drive symbol is empty; if the drive symbol is empty, judging whether the directory name is empty; if the directory name is empty, judging whether the file name is empty; if the file name is empty, performing ending; if the file name is not empty, determining the first search result as the entire disk directory; if the directory name is not empty, taking the result of searching the directory name in the entire disk directory as the first search result; if the drive symbol is not empty, judging whether the directory name is empty; if the directory name is empty, determining the first search result as the disk directory under the drive symbol; if the directory name is not empty, taking the result of searching the directory name in the drive symbol as the first search result.
[0009] Optionally, in the search method according to the present application, after the step of determining the first search result as the entire disk directory, further comprising: taking the result of searching the file name in all directories of the first search result as the second search result.
[0010] Optionally, in the search method according to the present application, further comprising: judging whether the file name is empty; if the file name is empty, determining that the second search result does not exist; if the file name is not empty, taking the result of searching the file name in all directories of the first search result as the second search result.
[0011] Optionally, in the search method according to the present application, the step of starting the custom search comprises: in response to triggering the custom search function of the file manager, starting the search box of the custom search of the file manager.
[0012] Optionally, in the search method according to the present application, further comprising: in response to the operation of adding the search box of the custom search of the file manager, adding a new search box.
[0013] Optionally, in the search method according to the present application, further comprising: storing the first search result and the second search result into the memory of the computing device.
[0014] Optionally, in the search method according to the present application, further comprising: in response to the operation of exiting the custom search, clearing the first search result and the second search result stored in the memory.
[0015] According to a second aspect of the present application, a computing device is provided, comprising: at least one processor; a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions comprise instructions for executing the method as described above.
[0016] According to a third aspect of the present application, there is provided a readable storage medium having program instructions stored therein, which when read and executed by a computing device, cause the computing device to perform the method as described above.
[0017] According to the technical solution of the present application, when enabling custom search in the file manager, the file manager sends the disk symbol and the directory name in the search item to the search engine first, and then sends the first search result and the file name in the search item to the search engine to obtain the second search result. The custom search of the disk symbol, the directory name and the file in the computing device by the user is realized, and the user experience is improved.
[0018] The above description is only a summary of the technical solution of the present application. In order to enable one to more clearly understand the technical means of the present application and to implement it according to the content of the description, and in order to enable the above and other purposes, features and advantages of the present application to be more apparent and understandable, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0019] To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings. These aspects are indicative of various ways in which the principles disclosed herein can be practiced and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The foregoing and other objects, features, and advantages of the disclosure will be apparent from the following description of certain aspects as taken in connection with the accompanying drawings in which:
[0020] Figure 1 A block diagram illustrating physical components of a computing device 100 is shown;
[0021] Figure 2 A flowchart illustrating a search method 200 according to an embodiment of the present application is shown;
[0022] Figure 3 A schematic diagram illustrating activation of custom search according to an embodiment of the present application is shown;
[0023] Figure 4 A structural schematic diagram of a search directory cache according to an embodiment of the present application is shown;
[0024] Figure 5 A structural schematic diagram of a search file cache according to an embodiment of the present application is shown;
[0025] Figure 6 An interface schematic diagram of adding a search box according to an embodiment of the present application is shown;
[0026] Figure 7A flow diagram illustrating a search method 700 according to another embodiment of the present application is shown.
[0027] Figure 8 A flow diagram illustrating a search method 800 according to yet another embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure can be embodied in various forms without being limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and fully convey the scope of the present disclosure to those skilled in the art.
[0029] Figure 1 A block diagram of physical components of a computing device 100 is shown. In a basic configuration, the computing device 100 includes at least one processing unit 102 and a system memory 104. According to an aspect, depending upon the configuration and type of the computing device, the processing unit 102 can be implemented as a processor. The system memory 104 includes, but is not limited to, volatile (e.g., random access memory (RAM)), non-volatile (e.g., read-only memory (ROM)), flash memory, or any combination thereof. According to an aspect, the system memory 104 includes an operating system 105 and program modules 106, including a file manager 120 for implementing the search method of the present application, included in the operating system 105.
[0030] According to an aspect, the operating system 105 is suitable for controlling the operation of the computing device 100. Furthermore, examples are practiced in conjunction with a graphics library, other operating systems, or in any other application program, and are not limited to any particular application or system. This detailed description in its entirety is therefore to be considered exemplary in nature and its specifics are intended to be illustrative only. Figure 1 The basic configuration of the computing device 100 as shown in FIG. 1 includes one or more processing units 102 and system memory 104. According to an aspect, the processing unit 102 is implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, and / or any other devices, or equivalents thereof, suitable for the Figure 1 According to an aspect, the computing device 100 has additional features or functionality. For example, according to an aspect, the computing device 100 includes additional data storage devices (removable and / or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by removable storage 109 and non-removable storage 110.
[0031] As stated above, according to one aspect, program module 106 is stored in system memory 104. According to one aspect, program module 106 can include one or more applications that can be used by the computing device 100. The application programs can include, for example, email and contacts applications, word processing applications, spreadsheet applications, database applications, slide presentation applications, painting or computer-aided applications, web browser applications, etc.
[0032] According to one aspect, the examples can be practiced with circuitry that can comprise a single integrated circuit (IC), a plurality of ICs, a plurality of board-level components, and / or a plurality of off-the-shelf software or firmware modules, as desired. For example, the examples can be practiced with circuitry that comprises discrete electronic elements, a Figure 1 According to one aspect, the examples can be practiced with circuitry that can comprise a single integrated circuit (IC), a plurality of ICs, a plurality of board-level components, and / or a plurality of off-the-shelf software or firmware modules, as desired. For example, the examples can be practiced with circuitry that comprises discrete electronic elements, a
[0033] According to one aspect, the computing device 100 can also have one or more input device(s) 112 such as a keyboard, a mouse, a pen, a microphone, a touch input device, etc. One or more output device(s) 114 such as a display, speakers, a printer, etc. can also be included. The aforementioned devices are examples and others can also be used. The computing device 100 can include one or more communication connections 116 allowing communications with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver, and / or transceiver circuitry; universal serial bus (USB), parallel, and / or serial ports.
[0034] The term computer readable media as used herein includes computer storage media. Computer storage media can include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, or program modules. The system memory 104, the removable storage device 109, and the non-removable storage device 110 are all computer storage media examples (i.e., memory storage.) Computer storage media can include Random Access Memory (RAM), Read Only Memory (ROM), Electronically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store information and which can be accessed by the computing device 100. According to an aspect, any such computer storage media can be part of the computing device 100. Computer storage media does not include a carrier wave or other propagated data signal.
[0035] According to an aspect, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. According to an aspect, the term "modulated data signal" describes a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.
[0036] In one embodiment of the present application, the computing device 100 includes one or more processors and one or more readable storage media storing program instructions. When the program instructions are configured to be executed by the one or more processors, the computing device performs the search method in the embodiments of the present application.
[0037] Figure 2 A flow chart of a search method 200 according to one embodiment of the present application is shown. The method 200 is suitable for being performed in a file manager, also known as file explorer, of a computing device, such as the aforementioned computing device 100. As shown, the method 200 starts at step S210. Figure 2
[0038] In step S210, in response to the operation of searching for the search item after enabling the custom search, the drive letter and the directory name in the search item are sent to a search engine of the computing device to obtain a first search result. The search item includes the drive letter, the directory name, and the file name.
[0039] According to an embodiment of the present invention, in response to the triggering of the custom search function of the file manager, the search box of the custom search function of the file manager is launched. Specifically, the custom search is enabled in any directory of the file manager via the custom search button on the toolbar of the file manager or via a shortcut key. Figure 3 A schematic diagram illustrating the activation of a custom search according to an embodiment of the present invention is shown. Figure 3 As shown, when the user activates button 310 to trigger a custom search, the file manager's custom search search box 320 is launched. After the custom search is enabled, the user can set search terms in the search box, specifying the drive letter (e.g., C drive, D drive), the directory name, and the file name to be searched, and then begin the search. In response to the user's selection of search terms, the selected search terms are displayed in the search box. The drive letter, directory name, and file name in the search terms can all be empty, but at least one item in the search terms must be non-empty (i.e., at least one of the drive letter, directory name, or file name in the search terms must contain information and not be empty), and at least one of the directory name and file name in the search terms must contain information and not be empty. Subsequently, the file manager sends the drive letter and directory name in the search terms to the computing device's search engine for searching files on the computing device, so that the search results returned by the search engine after searching the drive letter and directory name are stored in the search directory cache.
[0040] Optionally, if the search term does not include a drive letter, the search engine searches for all drives on the computing device. If the search term includes a drive letter, the search engine searches only within that drive letter.
[0041] Optionally, the search terms may also include an option to search only the current directory, such as... Figure 3 As shown, search box 320 presents an option to search only the current directory (current directory only 330 in the figure). If the option to search only the current directory is triggered, the current directory is searched in the computing device's search engine. The current directory is the directory in the current state of the file manager.
[0042] Optionally, if the user triggers the fuzzy search option for a directory name and / or file name in the search terms, then that directory name and / or file name is marked as a fuzzy search, such as... Figure 3 As shown, the directory name (directory name input box 1 in the figure) in the search box 320 is marked with the fuzzy search option 340, and the file name (file name input box 1 in the figure) is marked with the fuzzy search option 350.
[0043] According to the embodiment of the present application, the disk symbol and the directory name in the search item are sent to the search engine of the computing device to obtain the first search result. Specifically, when the user performs the customized search, if the disk symbol and the directory name information exist in the search item, the disk symbol and the directory name in the search item are sent to the search engine, and after the search engine returns the first search result, the corresponding relationship between the disk symbol and the directory name is generated and stored in the memory of the computing device. If the disk symbol exists in the search item but the directory name information does not exist, the disk symbol in the search item is sent to the search engine, and after the search engine returns the first search result, the disk symbol information is generated and stored in the memory of the computing device. If the disk symbol does not exist in the search item but the directory name information exists, the directory name in the search item is sent to the search engine, the search engine searches all the disk symbols in the computing device, and after the search engine returns the first search result, if at least one disk symbol exists in the corresponding relationship with the directory name, the corresponding relationship between the disk symbol and the directory name is generated and stored in the memory of the computing device. If neither the disk symbol nor the directory name information exists in the search item, the first search result is not generated.
[0044] When the search item includes the directory name and the option of searching only the current directory is triggered, the search range is fixed under the current directory, and then the search range and the directory name are sent to the search engine together, so that the search engine searches the directory name in the search range under the current directory, and after the search engine returns the result, the corresponding relationship between the directory under the current directory and the directory name is generated and stored in the memory of the computing device.
[0045] If the directory is not searched, i.e., the directory name does not exist in the search item and the option of searching only the current directory is triggered, all the directory information in the current directory is directly generated and stored in the memory of the computing device.
[0046] Figure 4 The structure diagram of the search directory cache according to one embodiment of the present application is shown. After the disk symbol and the directory name in the search item are sent to the search engine of the computing device, the first search result is obtained, the corresponding relationship between the disk symbol and the directory name is included as the search directory cache, and is stored in the memory. As shown in Figure 4 The corresponding relationship between the disk symbol and the directory name stored in the memory is shown by an example, the disk symbol C corresponds to the searched directories A1, A2 and B1, the disk symbol D corresponds to the searched directories A1 and B1, and so on. Figure 4 The corresponding relationship between the disk symbol and the directory name stored in the memory is shown by an example, the disk symbol C corresponds to the searched directories A1, A2 and B1, the disk symbol D corresponds to the searched directories A1 and B1, and so on.
[0047] Through the technical solution of the present application, the required file can be searched in the self-defined directory. For example, when the user searches any one or more files in the directory A, the user can self-define to search any one or more subdirectories in the current directory. For example, the subdirectories in the current directory are B, C and D, and the user can specify to search files only in the directories C and D.
[0048] According to the embodiment of the present application, at least one of the directory name and the file name is included in the search item. The directory name and the file name can trigger the fuzzy search option. The fuzzy search method is described as follows:
[0049] First, the fuzzy search method when only one of the directory name and the file name is included in the search item is described. If the directory name is not included in the search item or the directory name is empty, and the file name does not correspond to the fuzzy search option, the search engine only searches the file with the same name as the file name. If the directory name is not included in the search item or the directory name is empty, and the file name corresponds to the fuzzy search option, the search engine searches all the files including the file name in the name. For example, if the file name in the search item triggers the fuzzy search option, and the searched file name is abc, the search engine searches the file with the file name abc, and other files with the file name including abc, for example, abcd and aabcd. If the file name is not included in the search item or the file name is empty, and the directory name does not correspond to the fuzzy search option, the search engine only searches the directory with the same name as the directory name. If the file name is not included in the search item or the file name is empty, and the directory name corresponds to the fuzzy search option, the search engine searches all the directories including the directory name in the name. For example, if the directory name in the search item triggers the fuzzy search option, and the searched directory name is abc, the search engine searches the directory with the directory name abc, and other directories with the directory name including abc, for example, abcd and aabcd.
[0050] Next, the fuzzy search method when the search item includes both the directory name and the file name is described. If the directory name and the file name in the search item both correspond to the fuzzy search option, the search engine searches all the files whose names include the file name in all the directories whose names include the directory name after searching all the directories. If the directory name and the file name in the search item both do not correspond to the fuzzy search option, the search engine searches the file whose name is the same as the file name in the directory whose name is the same as the directory name after searching the directory. If the directory name in the search item corresponds to the fuzzy search option and the file name does not correspond to the fuzzy search option, the search engine searches the file whose name is the same as the file name in all the directories whose names include the directory name after searching all the directories. If the file name in the search item corresponds to the fuzzy search option and the directory name does not correspond to the fuzzy search option, the search engine searches all the files whose names include the file name in the directory whose name is the same as the directory name after searching the directory.
[0051] According to the technical scheme of the present application, when searching a file in any directory, one or more disk symbols can be customized, one or more search directories can be customized, and one or more search files can be customized, and both the directory name and the file name can be searched fuzzily.
[0052] Subsequently, in step S220, the first search result and the file name in the search item are sent to the search engine together, and a second search result is obtained.
[0053] Specifically, the first search result and the file name stored in the memory are sent to the search engine again, and after the search engine returns the second search result, a search file cache is created in the memory, and the second search result searched is stored in the search file cache. Figure 5 A structure diagram of the search file cache according to an embodiment of the present application is shown. After the search engine receives the first search result and the file name sent by the file manager, the search engine searches the file name based on the first search result. For example, the first search result includes the corresponding relationship between the disk symbol C and the directory A1, and the file name in the search item is abc, so the search engine searches the file name in the directory A1. As shown in Figure 5 The second search result is obtained and stored in the memory, and the search file cache in the memory stores the second search result, including the corresponding relationship between the directory name and the file name. Figure 5 The corresponding relationship between the directory name and the file name stored in the memory is presented by an example. In the diagram, the directory A corresponds to the searched files N1, N2, and the directory C, and the directory C corresponds to the file N3. The directory B corresponds to the searched directories A1, B1, the directory B1 corresponds to the directory B2, and the directory B2 corresponds to the files N1 and N2.
[0054] According to the technical solution of the present application, by splitting the search item, the disk symbol and the directory name are searched first, one or more directory names are searched under one or more disk symbols, one or more first search results including the disk symbol and the directory name are obtained and stored in the memory. Then, the first search result and the file name are searched, so that one or more file names are searched in one or more results of the first search result, thereby realizing the self-defined search of one or more combinations of the disk symbol, the directory name and the file name.
[0055] Subsequently, in step S230, the first search result and the second search result are presented together.
[0056] According to the embodiment of the present application, after the search is completed, the file manager reads the first search result and the second search result in the memory, and presents the first search result and the second search result together according to the rule of the file manager.
[0057] Finally, in response to the operation of exiting the self-defined search, the first search result and the second search result stored in the memory are cleared, and the search directory cache and the search file cache in the memory are cleared.
[0058] The foregoing is directed to the steps of starting the search box of the self-defined search of the file manager after the self-defined search is enabled, and searching the search item in the search box. The file manager can include not only one search box, but also multiple search boxes, and the search item in the different search boxes is searched. According to another embodiment of the present application, in response to the operation of adding the search box of the self-defined search of the file manager, a new search box is added. The search box includes a button for adding a new search box, and by triggering the button, a new search box is added in the file manager. Figure 6 An interface schematic diagram of adding a search box according to an embodiment of the present application is shown. As Figure 6 shown, when the button 610 (the button represented by the plus sign in the figure) for adding a new search box in the original search box is triggered, the file manager will add a new row of search boxes 620. In which, each item in each row of search boxes does not interfere with each other, the fuzzy search option beside each directory name and file name input box is only valid for the current input box, and the search only in the current directory option between each row of search boxes does not interfere with each other, and the search only in the current directory option in each row is only valid for the current row.
[0059] The determination method of the first search result and the second search result in the search method of the present application will be described below in combination with a specific embodiment. Figure 7 A flow schematic diagram of a search method 700 according to another embodiment of the present application is shown. The method 700 is executed in the file manager of the computing device. As Figure 7As shown, the method 700 starts from step S701.
[0060] In step S701, in response to the user inputting a search item after starting a custom search, the search item is searched. The search item includes a disk symbol, a directory name and a file name.
[0061] Subsequently, in step S702, it is judged whether the option of searching only the current directory is triggered. If the option of searching only the current directory is triggered, step S703 is executed, and if the option of searching only the current directory is not triggered, step S706 is executed.
[0062] In step S703, it is judged whether the directory name is empty. If the directory name is empty, step S704 is executed, and if the directory name is not empty, step S705 is executed.
[0063] In step S704, the first search result is obtained as the current directory. Subsequently, step S715 is entered.
[0064] In step S705, the first search result is obtained as the result of searching the directory name under the current directory. Subsequently, step S715 is entered.
[0065] In step S706, it is judged whether the disk symbol is empty. If the disk symbol is empty, step S707 is executed, and if the disk symbol is not empty, step S712 is executed.
[0066] In step S707, it is judged whether the directory name is empty. If the directory name is empty, step S708 is executed, and if the directory name is not empty, step S711 is executed.
[0067] In step S708, it is judged whether the file name is empty. If the file name is empty, the end is executed. If the file name is not empty, step S710 is entered.
[0068] In step S710, the first search result is determined as the entire disk directory. Subsequently, step S716 is entered, the file name is searched in all the directories of the first search result to obtain the second search result. Subsequently, the end is executed.
[0069] In step S711, the first search result is determined as the result of searching the directory name in the entire disk directory. Subsequently, step S715 is entered.
[0070] In step S712, it is judged whether the directory name is empty. If the directory name is empty, step S713 is executed, and if the directory name is not empty, step S714 is executed.
[0071] In step S713, the first search result is determined as the disk directory under the disk symbol. Subsequently, step S715 is entered.
[0072] In step S714, it is determined that the first search result is the result of searching the directory name under the disk symbol. Then, step S715 is entered.
[0073] In step S715, it is judged whether the file name is empty. If the file name is empty, step S717 is entered, and if the file name is not empty, step S716 is entered.
[0074] In step S716, the file name is searched in all the directories in the first search result, and the second search result is obtained. Then, the execution ends.
[0075] In step S717, it is determined that the second search result does not exist. Then, the execution ends.
[0076] The search method of the present application is described below in connection with another embodiment. Figure 8 A flowchart of a search method 800 according to still another embodiment of the present application is shown. As shown, the method 800 starts from step S802. Figure 8
[0077] In step S802, any directory of the file manager is entered.
[0078] Then, in step S804, it is judged whether the custom search is triggered. If the custom search is started, step S806 is entered, and otherwise, the execution ends.
[0079] In step S806, the user selects the disk symbol to be searched, and inputs the directory and file name to be searched.
[0080] Then, in step S808, it is judged whether the custom search is performed. If the user clicks the search, step S810 is entered, and otherwise, the execution ends.
[0081] In step S810, the disk symbol and the directory name are sent to the search engine.
[0082] Then, in step S812, the first search result returned by the search engine is received, and written into the search directory cache in the memory, denoted as C1. The directory information in the first search result is recorded by creating a search directory cache structure.
[0083] Then, in step S814, the first search result in C1 and the file name to be searched are sent to the search engine.
[0084] Then, in step S816, the second search result returned by the search engine is received, and written into the search file cache in the memory, denoted as C2. The file information in the search result is recorded by creating a search file cache structure.
[0085] Then, in step S818, the cache information in C1 and C2 is read, and the first search result and the second search result are classified and displayed.
[0086] Then, in step S820, it is determined whether to exit the custom search. If it is determined to exit the custom search, step S822 is executed, otherwise, the execution ends.
[0087] In step S822, when the user exits the custom search, C1 and C2 created in the memory are cleared. The specific content of steps S802-S822 can refer to the description in the foregoing method 200.
[0088] According to the search method of the present application, when the custom search is enabled in the file manager, when the search item is searched, the file manager first sends the drive letter and the directory name in the search item to the search engine, and after the first search result is obtained, the first search result and the file name in the search item are sent to the search engine together to obtain the second search result. The custom search of the drive letter, the directory name and the file in the computing device by the user is realized, and the use experience of the user is improved.
[0089] Further, the first search result and the second search result are stored in the memory of the computing device, the first search result stored in the memory is searched together with the file name, the second search result is also stored in the memory, and finally the first search result and the second search result in the memory are presented together. The mechanism of custom search file data is realized by storing the searched information, and the use experience of the user is improved. The technical scheme of the present application has small dependence, strong universality and high running performance, and is suitable for any operating system.
[0090] The various techniques described herein can be implemented in connection with hardware or software or, where appropriate, with a combination of hardware / software. Thus, the methods and apparatus of the present application, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard disks, USB flash drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium wherein, when the program code is loaded into an internal memory of the machine such as a computer, the machine becomes an apparatus for practicing the present application.
[0091] In the case where the program code is executed on a programmable computer, the mobile terminal generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store program code; the processor is configured to execute instructions in the program code stored in the memory according to the instructions in the program code stored in the memory to perform the search method of the present application.
[0092] By way of example, and not limitation, a readable medium includes a readable storage medium and a communication medium. A readable storage medium stores information such as computer readable instructions, data structures, program modules or other data. A communication medium conveys information such as computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. Combinations of the any of the above are also included within the scope of readable media.
[0093] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order to not obscure the understanding of this description.
[0094] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order to not obscure the understanding of this description.
[0095] Similarly, it is to be understood that the narrative provided above with respect to the exemplary embodiments of the application sometimes collectively sets forth various features in a single embodiment, drawing, or description of an embodiment in order to streamline the disclosure and aid in the understanding of one or more of the various aspects of the application. However, it is not to be interpreted that the disclosure is reflecting an intention that the claimed application requires more features than are explicitly recited in each claim. Rather, as reflected in the claims that follow, inventive aspects are predicated on less than all of the features of the single embodiment, drawing, or description of an embodiment that was set forth in the narrative. Thus, the claims that follow are hereby expressly incorporated into this DETAILED DESCRIPTION with the particular understanding that each claim is independently predicated on less than all of the features of the single embodiment, drawing, or description of an embodiment set forth in the narrative.
[0096] Those skilled in the art will understand that the modules, or units, or components of the devices in the examples disclosed herein can be arranged in a device as described in the examples, or alternatively can be located in one or more devices different from the devices in the examples. The modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.
[0097] Those skilled in the art will appreciate that the modules in the apparatuses in the embodiments can be adapted and placed in one or more apparatuses other than the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and further can be split into multiple sub-modules or sub-units or sub-components. Any combination of all the features disclosed in the specification (including the accompanying claims, abstract and drawings), and any method or process or steps of any such methods or processes disclosed in the specification (including the accompanying claims, abstract and drawings) can be made, except that at least some of such features and / or processes or units are mutually exclusive, unless explicitly stated otherwise. Each feature disclosed in the specification (including the accompanying claims, abstract and drawings) can be replaced by alternative features serving the same, equivalent or similar purpose, unless explicitly stated otherwise.
[0098] Furthermore, those skilled in the art will appreciate that the features of the various embodiments described herein are not mutually exclusive and can be combined in different embodiments. For example, in the following claims, any of the embodiments claimed can be used in any combination.
[0099] Furthermore, some of the embodiments described herein are described as a method or combination of elements of a method implementable by a processor of a computer system or by other means of carrying out the function. Accordingly, a processor with the necessary instructions for carrying out such a method or element of a method forms a means for carrying out the method or element of a method. Furthermore, an element of a method described herein that is implemented as a means for carrying out a particular function performs that function whether or not recited as a means for carrying out that function.
[0100] As used herein, unless otherwise indicated, the use of the ordinal adjectives "first", "second", "third" and so on, in no way limits the number of objects that can be described by the terms. For example, a "first" object can be described simultaneously with a "second" object, even though only two objects can be described.
[0101] While the application has been described in accordance with the various embodiments shown and described, it is to be understood that the application is not limited to those precise embodiments, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present application. It is intended that the scope of the application should only be limited as recited in the appended claims.
Claims
1. A search method, performed in a file manager of a computing device, the method comprising: In response to the operation of searching for search terms after enabling custom search, the drive letter and directory name in the search terms are sent to the search engine of the computing device to search for multiple directory names under multiple drive letters, and one or more first search results including each drive letter and each directory name are obtained. The search terms include multiple drive letters, multiple directory names, and multiple file names. The first search result and the filenames in the search terms are sent to the search engine together. The search engine searches for multiple filenames in one or more results of the first search result to obtain the second search result. The first search result and the second search result will be presented together; The step of searching for multiple directory names under multiple drive letters to obtain one or more first search results including each drive letter and each directory name includes: if there is a drive letter in the search item but no directory name information, then the drive letter in the search item is sent to the search engine, and after the search engine returns the first search result, drive letter information is generated; If no drive letter exists in the search terms, but a directory name exists, the directory name in the search terms is sent to the search engine. The search engine searches for all drives in the computing device. After the search engine returns the first search result, if at least one drive letter is found to correspond to a directory name, the correspondence between the drive letter and the directory name is generated and stored in the memory of the computing device.
2. The method according to claim 1, wherein, The search terms also include an option to search only the current directory, and the method further includes: If the option to search only the current directory is triggered, then determine whether the directory name is empty; If the directory name is empty, then the first search result is determined to be the current directory; If the directory name is not empty, the result of searching for the directory name in the current directory will be used as the first search result.
3. The method according to claim 2, further comprising: If the option to search only the current directory is not triggered, then determine whether the drive letter is empty; If the drive letter is empty, then determine whether the directory name is empty; If the directory name is empty, then determine whether the file name is empty; If the filename is empty, the execution will end; If the filename is not empty, then the first search result is determined to be the entire disk directory; If the directory name is not empty, the result of searching the entire disk directory for the directory name is taken as the first search result; If the drive letter is not empty, then determine whether the directory name is empty; If the directory name is empty, then the first search result is determined to be a disk directory under the drive letter; If the directory name is not empty, the result of searching for the directory name in the drive letter is taken as the first search result.
4. The method according to claim 3, further comprising, after determining the first search result as an entire disk directory: The results of searching for the filename in all directories of the first search result are used as the second search result.
5. The method according to any one of claims 1 to 3, further comprising: Determine if the filename is empty; If the filename is empty, then the second search result does not exist; If the filename is not empty, then the results of searching for the filename in all directories of the first search result are used as the second search result.
6. The method according to any one of claims 1 to 3, wherein, The steps to start a custom search include: In response to triggering the file manager's custom search function, the file manager's custom search search box is launched.
7. The method according to claim 6, further comprising: In response to the operation of adding a search box for custom search in the file manager, a new search box is added.
8. The method according to any one of claims 1 to 3, further comprising: The first search result and the second search result are stored in the memory of the computing device.
9. The method according to claim 8, further comprising: In response to exiting the custom search, the first and second search results stored in memory are cleared.
10. A computing device, comprising: At least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the method as described in any one of claims 1 to 9.
11. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Methods and systems for searching and storing data
CN101430696A
System and method fro dynamically generating a selectable search extension
CN1938673A