CN107436948B - File searching method and device and terminal - Google Patents

File searching method and device and terminal Download PDF

Info

Publication number
CN107436948B
CN107436948B CN201710660485.0A CN201710660485A CN107436948B CN 107436948 B CN107436948 B CN 107436948B CN 201710660485 A CN201710660485 A CN 201710660485A CN 107436948 B CN107436948 B CN 107436948B
Authority
CN
China
Prior art keywords
file
file object
search
objects
common
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.)
Expired - Fee Related
Application number
CN201710660485.0A
Other languages
Chinese (zh)
Other versions
CN107436948A (en
Inventor
张晓璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710660485.0A priority Critical patent/CN107436948B/en
Publication of CN107436948A publication Critical patent/CN107436948A/en
Application granted granted Critical
Publication of CN107436948B publication Critical patent/CN107436948B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A file searching method, a file searching device and a terminal are provided. The method comprises the following steps: displaying a file search interface; acquiring a search keyword input in an input box, and recording storage paths of n file objects according to selection signals corresponding to the n file objects in the file object list; and when the trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects. The embodiment of the invention provides a local searching mode, a user selects a file object possibly comprising a target file object and/or a file object possibly being the target file object, marks the file object, and a subsequent terminal searches the target file object from the marked file object.

Description

File searching method and device and terminal
Technical Field
The embodiment of the invention relates to the technical field of searching, in particular to a file searching method, a file searching device and a file searching terminal.
Background
Currently, a terminal is provided with a file search function so that a user can search for a certain specific file in the terminal.
The file search method provided by the prior art is as follows: the terminal displays a search interface, a user inputs a search keyword in an input box of the search interface, then a search instruction is triggered, at the moment, the terminal searches target files matched with the search keyword in all files stored in the terminal, and displays the searched target files.
The file searching method provided by the prior art may be referred to as a global searching method, and since the searching range is all files stored by the terminal, the time consumption of the whole searching process is long, and more processing resources are required to be consumed.
Disclosure of Invention
In order to solve the problems that in the global search mode adopted in the prior art, the search consumes a long time and needs to consume a large number of processing resources, embodiments of the present invention provide a file search method, an apparatus and a terminal. The technical scheme is as follows:
in a first aspect, a file searching method is provided, and the method includes:
displaying a file searching interface, wherein the file searching interface comprises a file object list, an input box and a searching control, the file object list comprises at least one file object, and the file object is a folder or a file;
acquiring a search keyword input in the input box, and recording storage paths of n file objects in the file object list according to selection signals corresponding to the n file objects, wherein n is a positive integer;
and when a trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects.
Optionally, the recording storage paths of the n file objects according to selection signals corresponding to the n file objects in the file object list includes:
when a selection signal corresponding to any file object in the file object list is acquired, adding a storage path of the file object to a storage path set, wherein the storage path set stores the storage path in a form of a table or a linked list.
Optionally, the method further comprises:
when a trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from m common file objects according to the search keyword and storage paths of the m common file objects, wherein the common file objects comprise file objects with usage frequency larger than a preset threshold value and/or file objects with attribute information set as common types, and m is a positive integer.
Optionally, before searching for a target file object matched with the search keyword from the m common file objects according to the search keyword and the storage paths of the m common file objects, the method further includes:
displaying the file object list; when a setting instruction corresponding to a specified file object in the file object list is acquired, determining the specified file object as the common file object, and recording a storage path of the common file object, wherein the setting instruction is used for setting the attribute information of the specified file object as the common type;
and/or the presence of a gas in the gas,
acquiring the use frequency of each currently stored file object; and determining the file object with the use frequency larger than the preset threshold value as the common file object, and recording the storage path of the common file object.
Optionally, after searching for a target file object matching the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects, the method further includes:
and if the target file object is not searched, searching the target file object matched with the search keyword from all the currently stored file objects.
In a second aspect, there is provided a file search apparatus, the apparatus comprising:
the interface display module is used for displaying a file search interface, wherein the file search interface comprises a file object list, an input box and a search control, the file object list comprises at least one file object, and the file object is a folder or a file;
a path recording module, configured to record storage paths of n file objects in the file object list according to selection signals corresponding to the n file objects, where n is a positive integer;
a keyword acquisition module for acquiring the search keyword input in the input box;
and the file searching module is used for searching a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects when the trigger signal corresponding to the search control is acquired.
Optionally, the path recording module is configured to, when a selection signal corresponding to any file object in the file object list is acquired, add a storage path of the file object to a storage path set, where the storage path set stores the storage path in a form of a table or a linked list.
Optionally, the file searching module is further configured to search, when the trigger signal corresponding to the search control is acquired, a target file object matched with the search keyword from the m common file objects according to the search keyword and storage paths of the m common file objects, where the common file objects include file objects whose usage frequency is greater than a preset threshold and/or file objects whose attribute information is set as a common type, and m is a positive integer.
Optionally, the apparatus further comprises: a setting module and/or a determining module;
the setting module is used for displaying the file object list; when a setting instruction corresponding to a specified file object in the file object list is acquired, determining the specified file object as the common file object, and recording a storage path of the common file object, wherein the setting instruction is used for setting the attribute information of the specified file object as the common type;
the determining module is used for acquiring the use frequency of each currently stored file object; and determining the file object with the use frequency larger than the preset threshold value as the common file object, and recording the storage path of the common file object.
Optionally, the file searching module is further configured to search, if the target file object is not searched, the target file object matched with the search keyword from all currently stored file objects.
In a third aspect, a terminal is provided, where the terminal includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the file search method as described in the first aspect and any optional implementation manner of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, where the instruction is loaded and executed by a processor to implement the file search method as described in the first aspect and any optional implementation manner of the first aspect.
The technical scheme provided by the embodiment of the invention can bring the following beneficial effects:
the embodiment of the invention provides a file local searching mode, a user selects a file object possibly comprising a target file object expected to be searched and/or a file object possibly being the target file object, marks the file object, and a subsequent terminal searches the target file object from the marked file object. Compared with a global search mode, the local search mode provided by the embodiment of the invention has the advantage that the search range is obviously reduced, so that the search time is reduced, and the required processing resources are reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a file search method provided by an embodiment of the invention;
FIG. 2 is a schematic view of an interface according to the embodiment of FIG. 1;
FIG. 3 is a flowchart of a file searching method according to another embodiment of the present invention;
FIG. 4 is a block diagram of a file search apparatus provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for locally searching files. When a user desires to search for a target file object related to a search keyword, the user may determine a file object that may include the target file object and/or a file object that may be the target file object according to the memory, mark the file object by the user, and then the subsequent terminal searches for the target file object from the marked file object. In the embodiment of the invention, the file object is a folder or a file. Compared with a global search mode, the local search mode provided by the embodiment of the invention has the advantage that the search range is obviously reduced, so that the search time is reduced, and the required processing resources are reduced.
In the embodiment of the present invention, the execution subject of each step may be a terminal. Optionally, an application program for implementing the file search function provided by the embodiment of the present invention is installed and run in the terminal, and the execution subject of each step may be the application program, for example, the application program may be a system application or a third party application. In addition, the terminal may be any electronic device having file storage and search functions, such as a mobile phone, a tablet Computer, an electronic book reader, a multimedia playing device, a wearable device, a PC (Personal Computer), and other electronic devices. For convenience of explanation, in the following method embodiments, only the main body of execution of each step is a terminal, but the present invention is not limited thereto.
FIG. 1 is a flow diagram illustrating a file search method according to an exemplary embodiment. The method may include several steps as follows.
Step 101, displaying a file search interface.
The file searching interface comprises a file object list, an input box and a searching control. The file object list comprises at least one file object, and the file object is a folder or a file. For example, the file object list includes all folders and files currently stored in the terminal. The input box is used for a user to input search keywords, and the search control is used for the user to trigger and start searching.
Referring collectively to FIG. 2, a file search interface 20 includes a list of file objects, including at least one file object 21, an input box 22, and a search control 23.
Step 102, obtaining the search keyword input in the input box, and recording storage paths of n file objects according to selection signals corresponding to the n file objects in the file object list, wherein n is a positive integer.
The search keyword is any word, character, or combination of the two, entered by the user. For example, the search key may be "decode" to search for a file object that matches "decode". The user can input the search keyword in an input box in the file search interface, and accordingly the terminal obtains the search keyword input in the input box by the user.
The storage path of the file object is used for indicating the storage position of the file object in the terminal. For example, the storage path of a certain folder is "C: \ users \ administration". As another example, the storage path of a file is "C: \ desktop \ My file \ project plan.
Taking a file search as an example, when a user feels that any folder may contain a target file to be searched, the folder may be selected, that is, a selection signal corresponding to the folder is triggered, and accordingly, after the terminal acquires the selection signal corresponding to the folder, a storage path of the folder is recorded. Or, when the user feels that any file may be a target file desired to be searched, the file may be selected, that is, a selection signal corresponding to the file is triggered, and accordingly, after the terminal acquires the selection signal corresponding to the file, the storage path of the file is recorded. In the embodiment of the present invention, a manner of triggering the selection signal is not limited, for example, clicking a certain file object to trigger the selection signal corresponding to the file object, or selecting one or more file objects to trigger the selection signal corresponding to the file object.
In the embodiment of the present invention, the execution sequence of inputting the search keyword and selecting the n file objects by the user is not limited, and the user may select the n file objects first and then input the search keyword, or may input the search keyword first and then select the n file objects.
In addition, after the file object is selected, the terminal distinguishes the selected file object from the file objects that are not selected. For example, a mark such as a tick mark, a five-pointed star, or the like is displayed next to the selected file object, or the selected file object is highlighted, or the like. Referring to fig. 2 in combination, the user enters the search keyword 24 "decode" in the input box 22 and selects a file object among the at least one file object 21, and black small squares are displayed beside the selected file object 25 to distinguish the selected file object 25 from the unselected file objects 21.
Optionally, after acquiring the selection signal corresponding to any file object, the terminal adds the storage path of the file object to the storage path set. The storage path set stores the storage paths in a form of a table or a linked list. Illustratively, when the storage path set is stored in a table form, it can be shown in the following table-1:
storage path
C \ users \ work
C \ desktop \ My file
D \ downloads \ a safety decoding method, doc
TABLE-1
In the above table-1, the 1 st storage path of the record is a storage path of a folder named "work", the 2 nd storage path of the record is a storage path of a folder named "my file", and the 3 rd storage path of the record is a storage path of a file named "one security decoding method".
A linked list is a non-sequential, non-sequential storage structure on a physical structural element. The storage path for storing the file object in the form of the linked list adopts the dynamic allocation of the storage space, so that the memory waste or overflow of the terminal can not be caused. In addition, the insertion operation and the deletion operation of the linked list are very convenient, and the operation efficiency is higher.
Optionally, for any selected file object, if a deselection signal corresponding to the file object is acquired, the storage path of the file object is deselected. For example, when a user clicks a certain file object to trigger a selection signal corresponding to the file object, and clicks the file object again to trigger a deselection signal corresponding to the file object.
And 103, when the trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects.
When a user clicks a search control, the terminal acquires a trigger signal corresponding to the search control, and then the terminal starts searching. Referring collectively to FIG. 2, a user clicking on the search control 23 triggers a search to be initiated and the terminal searches for the target file object in the selected file object 25.
The terminal may search only for the target file matching the search keyword, may search only for the target folder matching the search keyword, or may search for both the target file and the target folder matching the search keyword. That is, the target file object may include only the target file, may include only the target folder, or may include both the target file and the target folder.
Optionally, taking a search file as an example, when the terminal acquires the trigger signal corresponding to the search control, the terminal searches for the target file matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects. When the terminal acquires the trigger signal corresponding to the search control, a plurality of files included by the n file objects are acquired according to the storage paths of the n file objects recorded in the storage path set, and the search keywords are matched with the files one by one so as to search the target files matched with the search keywords. The target file may be a file whose file name includes the search keyword, or the target file may be a file whose file content includes the search keyword, which is not limited in the embodiment of the present invention. In addition, the algorithm used for matching the search keyword with the file object may be a string matching (string match) algorithm, a spatial text matching algorithm based on a mixed index tree, and the like, which is not limited in the embodiment of the present invention.
Optionally, after step 103, the following steps are further included: and if the target file object is searched, displaying the target file object.
And after the terminal acquires the trigger signal corresponding to the search control, skipping to display a search result display interface, wherein the search result display interface is used for displaying the search result. Under the condition that the target file object is searched, the terminal displays the target file object in a search result display interface; and under the condition that the target file object is not searched, the terminal displays corresponding prompt information in a search result display interface. Optionally, the search result presentation interface further includes an input box for the user to input a search keyword and a search control for the user to trigger the start of the search, so that the user can perform the next search.
Referring to fig. 2 in combination, after the terminal acquires the trigger signal corresponding to the search control 23, the terminal skips to display the search result presentation page 30, and displays the target file object 31 on the search result presentation page 30.
In addition, in the embodiment of the present invention, the arrangement manner of the searched target file objects is not limited, and the target file objects may be sorted according to indexes such as names, modification dates, types, sizes, and the like.
Optionally, if the terminal does not search for the target file object, searching for the target file object matching the search keyword from all currently stored file objects. That is, when the target file object is not searched in the local search, the terminal automatically searches the target file object in the global search mode. By the method, the target file object can be searched as much as possible, and the search requirement of the user is met.
In summary, the method provided in the embodiments of the present invention provides a way of locally searching for a file, where a user selects a file object that may include a target file object desired to be searched and/or a file object that may be the target file object, marks the file object, and a subsequent terminal searches for the target file object from the marked file object. Compared with a global search mode, the local search mode provided by the embodiment of the invention has the advantage that the search range is obviously reduced, so that the search time is reduced, and the required processing resources are reduced.
In addition, because the file object list, the input box and the search control are in the same interface (namely the file search interface), a user can complete all operations involved in the whole search process without switching the interface, and the operation is convenient and efficient.
Fig. 3 is a flowchart illustrating a file search method according to another exemplary embodiment. The method may include several steps as follows.
Step 301, displaying a file search interface.
As already described above, the file search interface includes a list of file objects, including at least one file object, an input box, and a search control.
Step 302, according to the selection signals corresponding to n file objects in the file object list, recording the storage paths of the n file objects, wherein n is a positive integer.
Step 303, obtaining the search keyword input in the input box.
For the file object selection process in step 302 and the search keyword input process in step 303, these two processes may be executed in sequence, for example, the file object is selected first and then the search keyword is input, or the search keyword is input first and then the file object is selected; the two processes may also be performed alternately, for example, by selecting at least one document object, then entering a search key, and then selecting at least one document object. The embodiment of the present invention is not limited thereto.
And 304, when the trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from the n file objects and the m common file objects according to the search keyword, the storage paths of the n file objects and the storage paths of the m common file objects, wherein m is a positive integer.
Unlike the embodiment of fig. 1, in the present embodiment, the terminal searches for a target file object matching the search keyword from among m common file objects in addition to searching for a target file object matching the search keyword from among n file objects selected by the user.
The common file objects comprise file objects with the use frequency larger than a preset threshold value and/or file objects with the attribute information set as common types. The use frequency can be the use frequency or the use frequency, and the preset threshold value can be preset according to actual requirements. When the frequently-used file objects are file objects with the use frequency larger than a preset threshold value, the frequently-used file objects are determined by the terminal according to the use frequency of each file object; when the common file object is a file object of which the attribute information is set to be a common type, the common file object is set by a user in a self-defined manner.
Optionally, if the frequently-used file object is determined by the terminal, the terminal acquires the use frequency of each currently-stored file object; and determining the file object with the use frequency greater than a preset threshold value as a common file object, and recording the storage path of the common file object. Optionally, the terminal obtains the use frequency of each file object within the latest preset duration, and determines the file object of which the use frequency is greater than a preset threshold within the latest preset duration as a common file object. The value of the last preset time length can be preset according to actual requirements, and the embodiment of the invention does not limit the value. For example, a file object that has been used more frequently than 5 times in the last month is determined as a common file object. In other possible examples, the terminal sorts the file objects according to the use frequency, and determines the file objects ranked at the top k bits as common file objects, wherein k is a positive integer. For example, the terminal determines the file object with the top 3 bits of usage frequency as the common file object.
Optionally, in a case where the common file object is set by a user in a customized manner, the setting process includes the following two steps:
firstly, displaying a file object list;
secondly, when a setting instruction corresponding to the specified file object in the file object list is acquired, the specified file object is determined as a common file object, and a storage path of the common file object is recorded.
The setting instruction is used to set the attribute information of the specified file object to a common type. In the embodiment of the present invention, the manner of triggering the setting instruction is not limited. For example, a long press on a designated file object triggers a setting instruction, or a right mouse click on the designated file object triggers a display operation menu, and a menu item in the operation menu for setting the file object as a common file object triggers a setting instruction.
In addition, the storage path of the common file object may be stored in a table form or a linked list form, which is not limited in the embodiment of the present invention.
In step 305, if the target file object is searched, the target file object is displayed.
Step 306, if the target file object is not searched, searching the target file object matched with the search keyword from all the currently stored file objects.
In summary, the method provided in the embodiment of the present invention further sets the common file objects, and searches for the target file object in the common file objects, so as to improve the success rate of obtaining the target file object by searching as much as possible on the premise of reducing the time consumed by searching.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 4, a block diagram of a file searching apparatus according to an embodiment of the present invention is shown. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus may include: an interface display module 401, a path recording module 402, a keyword acquisition module 403, and a file search module 404.
The interface display module 401 is configured to display a file search interface, where the file search interface includes a file object list, an input box, and a search control, the file object list includes at least one file object, and the file object is a folder or a file.
A path recording module 402, configured to record storage paths of n file objects in the file object list according to selection signals corresponding to the n file objects, where n is a positive integer.
A keyword obtaining module 403, configured to obtain the search keyword input in the input box.
And a file searching module 404, configured to search, when a trigger signal corresponding to the search control is obtained, a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects.
In summary, the apparatus provided in the embodiments of the present invention provides a way for locally searching for a file, where a user selects a file object that may include a target file object desired to be searched and/or a file object that may be the target file object, marks the file object, and a subsequent terminal searches for the target file object from the marked file object. Compared with a global search mode, the local search mode provided by the embodiment of the invention has the advantage that the search range is obviously reduced, so that the search time is reduced, and the required processing resources are reduced.
In an optional embodiment provided based on the embodiment of fig. 4, the path recording module 401 is configured to, when a selection signal corresponding to any file object in the file object list is acquired, add a storage path of the file object to a storage path set; wherein the storage path set stores the storage paths in a table or linked list form.
In another optional embodiment provided based on the embodiment of fig. 4, the file searching module 402 is further configured to search, when the trigger signal corresponding to the search control is obtained, a target file object matched with the search keyword from the m common file objects according to the search keyword and storage paths of the m common file objects, where the common file objects include file objects whose usage frequency is greater than a preset threshold and/or file objects whose attribute information is set as a common type, and m is a positive integer.
In another optional embodiment provided based on the embodiment of fig. 4, the apparatus further comprises: a setup module and/or a determination module (not shown in the figures).
The list display module is used for displaying a file object list; when a setting instruction corresponding to a specified file object in the file object list is acquired, the specified file object is determined as the common file object, and a storage path of the common file object is recorded, wherein the setting instruction is used for setting the attribute information of the specified file object as the common type.
The determining module is used for acquiring the use frequency of each currently stored file object; and determining the file object with the use frequency larger than the preset threshold value as the common file object, and recording the storage path of the common file object.
In another optional embodiment provided based on the embodiment of fig. 4, the file searching module 402 is further configured to search all currently stored file objects for a target file object matching the search keyword if the target file object is not searched.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 5, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown. The terminal is used for implementing the file searching method provided in the above embodiment. Specifically, the method comprises the following steps:
the terminal 500 may include RF (Radio Frequency) circuitry 510, memory 520 including one or more computer-readable storage media, an input unit 530, a display unit 540, a sensor 550, audio circuitry 560, a WiFi (wireless fidelity) module 570, a processor 580 including one or more processing cores, and a power supply 590. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 510 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink information from a base station and processing the received downlink information by one or more processors 580; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 510 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 500, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 520 may also include a memory controller to provide the processor 580 and the input unit 530 access to the memory 520.
The input unit 530 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input related to user setting and function control. Specifically, the input unit 530 may include an image input device 531 and other input devices 532. The image input device 531 may be a camera or a photo scanning device. The input unit 530 may include other input devices 532 in addition to the image input device 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal 500, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
The terminal 500 can also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 541 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 541 and/or a backlight when the terminal 500 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 500, detailed descriptions thereof are omitted.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and terminal 500. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signal into an electric signal, is received by the audio circuit 560 and converted into audio data, and then outputs the audio data to the processor 580 for processing, and then to the RF circuit 510 for transmission to, for example, another terminal, or outputs the audio data to the memory 520 for further processing. The audio circuit 560 may also include an earbud jack to provide communication of a peripheral headset with the terminal 500.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 500 may help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 570, and provide the user with wireless broadband internet access. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the terminal 500, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 580 is a control center of the terminal 500, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 500 and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the handset. Optionally, processor 580 may include one or more processing cores; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The terminal 500 further includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system that may enable managing charging, discharging, and power consumption via the power management system. The power supply 590 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any other components.
Although not shown, the terminal 500 may further include a bluetooth module or the like, which is not described in detail herein.
In this embodiment, the terminal 500 further includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the file search method.
In an exemplary embodiment, a computer readable storage medium is further provided, in which at least one instruction is stored, the at least one instruction being loaded and executed by a processor of a terminal to implement the steps in the above-described method embodiments.
In an exemplary embodiment, a computer program product is also provided for implementing the functions of the individual steps in the above-described method embodiments when the computer program product is executed.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only exemplary of the present invention and should not be taken as limiting the invention, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of searching for a file, the method comprising:
displaying a file searching interface, wherein the file searching interface comprises a file object list, an input box and a searching control, the file object list comprises at least one file object, and the file object is a folder or a file;
acquiring a search keyword input in the input box, and recording storage paths of n file objects in the file object list according to selection signals corresponding to the n file objects, wherein n is a positive integer;
when a trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects;
when a trigger signal corresponding to the search control is acquired, searching a target file object matched with the search keyword from m common file objects according to the search keyword and storage paths of the m common file objects, wherein the common file objects comprise file objects with usage frequency larger than a preset threshold value and/or file objects with attribute information set as common types, and m is a positive integer.
2. The method according to claim 1, wherein the recording storage paths of n file objects in the file object list according to selection signals corresponding to the n file objects comprises:
when a selection signal corresponding to any file object in the file object list is acquired, adding a storage path of the file object to a storage path set, wherein the storage path set stores the storage path in a form of a table or a linked list.
3. The method according to claim 1, wherein before searching for the target file object matching the search keyword from the m common file objects according to the search keyword and the storage path of the m common file objects, the method further comprises:
displaying the file object list; when a setting instruction corresponding to a specified file object in the file object list is acquired, determining the specified file object as the common file object, and recording a storage path of the common file object, wherein the setting instruction is used for setting the attribute information of the specified file object as the common type;
and/or the presence of a gas in the gas,
acquiring the use frequency of each currently stored file object; and determining the file object with the use frequency larger than the preset threshold value as the common file object, and recording the storage path of the common file object.
4. The method according to claim 1 or 2, wherein after searching for a target file object matching the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects, further comprising:
and if the target file object is not searched, searching the target file object matched with the search keyword from all the currently stored file objects.
5. A file search apparatus, characterized in that the apparatus comprises:
the interface display module is used for displaying a file search interface, wherein the file search interface comprises a file object list, an input box and a search control, the file object list comprises at least one file object, and the file object is a folder or a file;
a path recording module, configured to record storage paths of n file objects in the file object list according to selection signals corresponding to the n file objects, where n is a positive integer;
a keyword acquisition module for acquiring the search keyword input in the input box;
the file searching module is used for searching a target file object matched with the search keyword from the n file objects according to the search keyword and the storage paths of the n file objects when the trigger signal corresponding to the search control is acquired;
the file searching module is further configured to search, when a trigger signal corresponding to the search control is acquired, a target file object matched with the search keyword from the m common file objects according to the search keyword and storage paths of the m common file objects, where the common file objects include file objects whose usage frequency is greater than a preset threshold and/or file objects whose attribute information is set as a common type, and m is a positive integer.
6. The apparatus according to claim 5, wherein the path recording module is configured to, when a selection signal corresponding to any file object in the file object list is obtained, add a storage path of the file object to a storage path set, where the storage path set stores the storage path in a table or a linked list.
7. The apparatus of claim 5, further comprising: a setting module and/or a determining module;
the setting module is used for displaying the file object list; when a setting instruction corresponding to a specified file object in the file object list is acquired, determining the specified file object as the common file object, and recording a storage path of the common file object, wherein the setting instruction is used for setting the attribute information of the specified file object as the common type;
the determining module is used for acquiring the use frequency of each currently stored file object; and determining the file object with the use frequency larger than the preset threshold value as the common file object, and recording the storage path of the common file object.
8. The apparatus according to claim 5 or 6, wherein the file searching module is further configured to search all currently stored file objects for a target file object matching the search keyword if the target file object is not searched.
9. A terminal, characterized in that the terminal comprises a processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to implement the file search method according to any one of claims 1 to 4.
10. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to implement the file search method of any one of claims 1 to 4.
CN201710660485.0A 2017-08-04 2017-08-04 File searching method and device and terminal Expired - Fee Related CN107436948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710660485.0A CN107436948B (en) 2017-08-04 2017-08-04 File searching method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710660485.0A CN107436948B (en) 2017-08-04 2017-08-04 File searching method and device and terminal

Publications (2)

Publication Number Publication Date
CN107436948A CN107436948A (en) 2017-12-05
CN107436948B true CN107436948B (en) 2020-01-14

Family

ID=60459858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710660485.0A Expired - Fee Related CN107436948B (en) 2017-08-04 2017-08-04 File searching method and device and terminal

Country Status (1)

Country Link
CN (1) CN107436948B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109876A (en) * 2018-01-09 2019-08-09 腾讯科技(深圳)有限公司 A kind of file search method and its equipment, storage medium, terminal
CN108829821A (en) * 2018-06-12 2018-11-16 佛山市飞程信息技术有限公司 It is a kind of for searching the file search method and system of mobile terminal document
CN109819311B (en) * 2019-01-29 2022-03-18 法信公证云(厦门)科技有限公司 Terminal video evidence obtaining method and device
CN111177076A (en) * 2019-12-30 2020-05-19 腾讯科技(深圳)有限公司 File information management method, device, equipment and storage medium
CN112333084B (en) * 2020-10-30 2022-02-08 维沃移动通信有限公司 File sending method and device and electronic equipment
CN112597275A (en) * 2020-12-25 2021-04-02 上海幻电信息科技有限公司 Content searching method and device
CN114090515B (en) * 2022-01-21 2022-07-05 亿次网联(杭州)科技有限公司 File searching method, terminal device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101263495A (en) * 2005-09-12 2008-09-10 微软公司 Expanded search and find user interface
CN101639831A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Search method, search device and search system
CN103548013A (en) * 2011-05-22 2014-01-29 微软公司 Search and browse hybrid
CN106951492A (en) * 2017-03-14 2017-07-14 广东欧珀移动通信有限公司 File search method, device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101263495A (en) * 2005-09-12 2008-09-10 微软公司 Expanded search and find user interface
CN101639831A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Search method, search device and search system
CN103548013A (en) * 2011-05-22 2014-01-29 微软公司 Search and browse hybrid
CN106951492A (en) * 2017-03-14 2017-07-14 广东欧珀移动通信有限公司 File search method, device and electronic equipment

Also Published As

Publication number Publication date
CN107436948A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN107436948B (en) File searching method and device and terminal
US20210224477A1 (en) Method and apparatus for displaying candidate word, and graphical user interface
US9977571B2 (en) Method and apparatus for sharing contents of electronic device
CN106874390B (en) Browser history record viewing method and terminal
US10673790B2 (en) Method and terminal for displaying instant messaging message
CN113360238A (en) Message processing method and device, electronic equipment and storage medium
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106303070B (en) notification message prompting method and device and mobile terminal
CN106302996B (en) Message display method and device
CN105740263B (en) Page display method and device
JP2018506792A (en) Method for displaying chat history records and apparatus for displaying chat history records
WO2015039517A1 (en) Multimedia file search method, apparatus, and terminal device
CN113127773A (en) Page processing method and device, storage medium and terminal equipment
CN104679724A (en) Page noting method and device
CN108769822B (en) Video display method and terminal equipment
CN106844572B (en) Search result processing method and device for search result processing
CN106648607B (en) Application starting method and device based on icon switching and terminal equipment
CN106202422B (en) The treating method and apparatus of Web page icon
CN105095161B (en) Method and device for displaying rich text information
CN108595107B (en) Interface content processing method and mobile terminal
CN104731806A (en) Method and terminal for quickly finding user information in social network
CN113849092A (en) Content sharing method and device and electronic equipment
KR20100083305A (en) Apparatus and method for managing data in portable terminal
CN110532231B (en) File query method, file query device and terminal equipment
CN108932243B (en) Method and device for refreshing webpage

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114