[go: up one dir, main page]

CN105138586A - File searching method and apparatus - Google Patents

File searching method and apparatus Download PDF

Info

Publication number
CN105138586A
CN105138586A CN201510464002.0A CN201510464002A CN105138586A CN 105138586 A CN105138586 A CN 105138586A CN 201510464002 A CN201510464002 A CN 201510464002A CN 105138586 A CN105138586 A CN 105138586A
Authority
CN
China
Prior art keywords
file
user
target
text information
file name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510464002.0A
Other languages
Chinese (zh)
Inventor
唐伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology China Co Ltd
Original Assignee
Meizu Technology China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology China Co Ltd filed Critical Meizu Technology China Co Ltd
Priority to CN201510464002.0A priority Critical patent/CN105138586A/en
Publication of CN105138586A publication Critical patent/CN105138586A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Library & Information Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a file searching method and apparatus. The file searching method can comprise: receiving text information inputted by a user; according to a preset rule, identifying a file name comprised by the text information; and and according to the identified file name, searching a target file corresponding to the file name, and displaying a search result of the target file to the user. According to the file searching method and apparatus disclosed by the embodiment of the invention, the target file is searched and obtained intelligently, rapidly and conveniently.

Description

File searching method and device
Technical Field
The present invention relates to the field of information processing, and in particular, to a file searching method and apparatus.
Background
In the process of mail interaction, a sender often needs to upload or upload a certain file to be sent to a receiver as an attachment, and after the sender inputs the name of the file in the text information of the mail content, the sender may need to view the file or add the file to the attachment. In the prior art, the file can only be searched in a mode that a sender manually searches folders layer by layer; or after the searching is finished, the user needs to manually add the accessory, the convenience is not enough, the completeness is difficult to guarantee, the time and the energy of the sender are wasted, and the user experience is influenced.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a file searching method and device, so as to more intelligently and quickly find out a target file.
In a first aspect, an embodiment of the present invention provides a file searching method, which may include:
receiving text information input by a user;
identifying the file name contained in the text information according to a preset rule;
and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
With reference to the first aspect, in a first possible implementation manner, the receiving text information input by a user includes:
receiving text information input by a user in a text editing area;
after the search result of the target file is displayed to the user, the method further comprises the following steps:
if the search result comprises one target file, adding the target file to a preset position or an attachment column in the text editing area;
and if the search result comprises a plurality of target files, adding at least one file to a preset position of the text editing area or an attachment column according to a confirmation instruction of a user on at least one file in the plurality of target files.
With reference to the first aspect, in a second possible implementation manner, the identifying, according to a preset rule, a file name included in the text information includes:
and identifying the file name contained in the text information according to the attribute of the file name or according to a selection instruction of a user.
With reference to the first aspect, in a third possible implementation manner, the identifying, according to a preset rule, a file name included in the text information includes:
detecting whether text information input by a user contains a file suffix name or not;
and if the file suffix name is detected to be contained, identifying the file name contained in the text information according to the file suffix name.
With reference to the first aspect, in a fourth possible implementation manner, the identifying, according to a preset rule, a file name included in the text information includes:
receiving a character selection instruction of a user in the text information, wherein the character selection instruction is used for indicating that a file name in the text information is selected;
receiving an opening search instruction of a user;
and according to the search starting instruction, identifying the character selected by the character selecting instruction as the file name contained in the text information.
With reference to the first aspect, in a fifth possible implementation manner, the displaying, to a user, a search result of the target file includes:
when the target file corresponding to the file name is found, displaying a storage path of the target file to a user so that the user can add or open the attachment; or automatically add the target file to the attachment or directly open.
With reference to the first aspect, in a sixth possible implementation manner, the displaying, to a user, a search result of the target file includes:
when a plurality of target files corresponding to the file names are found, displaying storage paths of the target files to a user in a list form so that the user can add or open the attachments; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
In a second aspect, an embodiment of the present invention provides a file searching apparatus, which may include:
the input module is used for receiving text information input by a user;
the identification module is used for identifying the file name contained in the text information according to a preset rule;
and the searching module is used for searching the target file corresponding to the file name according to the identified file name and displaying the searching result of the target file to a user.
With reference to the second aspect, in a first possible implementation manner, the input module is specifically configured to:
receiving text information input by a user in a text editing area; the device, still include:
a first adding module, configured to add, if the search result includes one target file, the target file to a preset position or an attachment column in the text editing area;
and the second adding module is used for adding at least one file to a preset position of the text editing area or an attachment column according to a confirmation instruction of a user on the at least one file in the target files if the search result comprises the target files.
With reference to the second aspect, in a second possible implementation manner, the identification module is specifically configured to:
and identifying the file name contained in the text information according to the attribute of the file name or according to a selection instruction of a user.
With reference to the second aspect, in a third possible implementation manner, the identifying module includes:
the detection unit is used for detecting whether the text information input by the user contains a file suffix name;
and the first identification unit is used for identifying the file name contained in the text information according to the file suffix name if the file suffix name is detected to be contained.
With reference to the second aspect, in a fourth possible implementation manner, the identifying module includes:
the first receiving unit is used for receiving a character selection instruction of a user in the text information, wherein the character selection instruction is used for indicating that a file name in the text information is selected;
the second receiving unit is used for receiving an opening search instruction of a user;
and the second identification unit is used for identifying the character selected by the character selection instruction as the file name contained in the text information according to the search starting instruction.
With reference to the second aspect, in a fifth possible implementation manner, the search module is specifically configured to:
when the target file corresponding to the file name is found, displaying a storage path of the target file to a user so that the user can add or open the attachment; or automatically add the target file to the attachment or directly open.
With reference to the second aspect, in a sixth possible implementation manner, the search module is specifically configured to:
when a plurality of target files corresponding to the file names are found, displaying storage paths of the target files to a user in a list form so that the user can add or open the attachments; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a file searching method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another file searching method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a file searching method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a file searching method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a file searching method according to another embodiment of the present invention;
FIG. 6 is a flowchart illustrating a file searching method according to another embodiment of the present invention;
FIG. 7 is a flowchart illustrating a file searching method according to another embodiment of the present invention;
fig. 8 and fig. 9 are schematic diagrams of a specific application scenario of the file searching method in the embodiment of the present invention;
fig. 10 and fig. 11 are schematic diagrams of another specific application scenario of the file searching method in the embodiment of the present invention;
FIG. 12 is a schematic structural diagram of a file searching apparatus according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of another file searching apparatus in an embodiment of the present invention;
FIG. 14 is a schematic structural diagram of another file searching apparatus in an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another file searching apparatus in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be further noted that the terminal in the embodiment of the present invention includes, but is not limited to, a smart phone, a tablet computer, a media player, a smart television, a smart bracelet, a smart wearable device, an MP3 player (movingpictureexpeerpropertiiolayaudiolayer iii, motion picture experts compressed standard audio layer 3), an MP4 player (movingpictureexpeerpropertiiolayiolaylayeri iv, motion picture experts compressed standard audio layer 3), a Personal Digital Assistant (PDA) laptop computer, a desktop computer, and other user devices that can perform text editing and text storage.
Fig. 1 is a schematic flow chart of a file searching method in an embodiment of the present invention, and a detailed description will be given below on the file searching method in the embodiment of the present invention with reference to fig. 1, as shown in fig. 1, the file searching method in the embodiment may include the following steps S101 to S103.
Step S101: receiving text information input by a user.
Specifically, receiving text information input by a user in a text editing area, where the text editing area includes a mail editing area, an area of an application program interface for text editing, or a text editing area of office software, and the like, that is, as long as the areas capable of performing text editing and text uploading belong to the text editing area related in the present invention, the text information includes various characters such as chinese characters, english characters, various symbols, and the like. When the method is applied to an application scene of a mail editing area, mail content information input by a user is received in a text editing box of the mail.
Step S102: and identifying the file name contained in the text information according to a preset rule.
Specifically, the file name included in the text information received in step S101 is identified according to a preset rule. More specifically, identifying the file name according to the preset rule may be identifying the file name contained in the text information according to attribute information of the file name, a selection instruction of a user, or other identification information of the file, for example, identifying a character string starting from a preset key character including key characters such as colon, space character, quotation mark, preset letter or preset symbol and ending from a suffix name of the file as the file name from the received input text information; or, according to the character selected by the user and in combination with a confirmation search instruction clicked by the user, acquiring the file name and searching the target file; or, the file name is acquired and the target file is searched according to file identification information preset by a user, such as a file code number, a file unique identifier and the like.
Step S103: and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
Specifically, the target file corresponding to the file name is searched according to the file name identified in step S102, and a search result of the searched target file is displayed to the user. When a plurality of searched target files exist, the display mode can be that the searched results are directly presented to the user in a list form, and the list can be arranged according to the sequence of the modification time of the files or according to the matching degree of the identified file names; when only one target file is found, the file can be directly opened or directly uploaded so as to avoid the complicated operation steps of the user. For example, when a user writes mail content, related Word attachment content needs to be loaded, when the file name of the attachment is input in a text editing area, the system can automatically identify the attachment in the background and directly upload the identified and matched document to the attachment of the mail, so that the user is prevented from performing manual searching and uploading actions, the searching time of the user is saved, and the file searching and uploading are more intelligent and convenient. It should be noted that, when searching for the target file, the target file may be searched locally in a local terminal where the text editing area is located, or may be searched in a cloud server or a cloud disk in which a network connection is established in advance, or may be a combination of the two search approaches, so that the searched content is wider and comprehensive.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 2 is a schematic flowchart of another file searching method in the embodiment of the present invention, and details of the another file searching method in the embodiment of the present invention will be described below with reference to fig. 2, as shown in fig. 2, the another file searching method in the embodiment of the present invention may include the following steps S201 to S203.
Step S201: receiving text information input by a user.
Specifically, reference may be made to step S101 in the embodiment of fig. 1, which is not described herein again.
Step S202: and identifying the file name contained in the text information according to the attribute of the file name or according to a selection instruction of a user.
Specifically, the file name included in the text information acquired in step S201 is identified according to the attribute of the file name or a selection instruction of the user, and for example, the extraction of the file name may be performed according to a suffix name in the file name attribute. The suffix name type of the file name includes: document files, compressed files, graphic files, sound files, animation files, system files, executable files, system files, and the like; the selection instruction of the user comprises the following steps: a select instruction, a drag instruction, a box select instruction, and the like. For example, a character string starting from a preset key character to ending at the file suffix name is identified as the file name from the received input text information, wherein the preset key character includes at least one key character of colon, space character, quotation mark, preset word or preset symbol, it is understood that when a plurality of preset key characters are detected, the preset key character closest to the file suffix name may be made the starting preset key character; or, according to the character selected by the user and the confirmation searching instruction clicked by the user, the file name is obtained and the target file is searched.
Step S203: and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
Specifically, reference may be made to step S103 of the method in the embodiment in fig. 1, which is not described herein again.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 3 is a schematic flowchart of another file searching method in the embodiment of the present invention, and details of the another file searching method in the embodiment of the present invention will be described below with reference to fig. 3, as shown in fig. 3, the another file searching method in the embodiment of the present invention may include the following steps S301 to S304.
Step S301: receiving text information input by a user.
Specifically, reference may be made to step S101 in the embodiment of fig. 1, which is not described herein again.
Step S302: and detecting whether the text information input by the user contains a file suffix name.
Specifically, the real-time detection step S301 may detect whether the text information input by the user includes a file suffix name, and the detection may be real-time, periodic, or triggered, for example, when a character newly input by the user is received, the detection is triggered. Extracting the file name according to the suffix name, wherein the suffix name type of the file name comprises: document files, compressed files, graphics files, sound files, animation files, system files, executable files, system files, and the like. For example, a document file may include: txt (all word processing software or editors can be opened), doc (software such as word and wps can be opened), hlp (adobabarteReader can be opened), wps (software such as wps can be opened), rtf (software such as word and wps can be opened), html (various browsers can be opened, source codes can be viewed by opening a tablet), pdf (adobabarteReader and various electronic reading software can be opened), and the like.
Step S303: and if the file suffix name is detected to be contained, identifying the file name contained in the text information according to the file suffix name.
Specifically, if it is detected that a file suffix name is included, the file name included in the text information is identified based on the file suffix name. For example, a character string starting from a preset key character to the end of the file suffix name is identified as the file name from the received input text information, wherein the preset key character includes at least one key character of colon, space character, quotation mark, preset letter or preset symbol, it being understood that when a plurality of preset key characters are detected, the preset key character closest to the file suffix name may be made the starting preset key character. For example, when the preset key character is colon, when "XX hello: the following is a fiscal statement for this quarter: 2015 second quarter financial statistics xls, you check for income, very thank you! "the file name included in the text information is identified according to the above rule: "2015 second quarter financial statistics, xls".
Step S304: and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
Specifically, reference may be made to step S103 of the method in the embodiment in fig. 1, which is not described herein again.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 4 is a schematic flowchart of another file searching method in the embodiment of the present invention, and details of the another file searching method in the embodiment of the present invention will be described below with reference to fig. 4, as shown in fig. 4, the another file searching method in the embodiment of the present invention may include the following steps S401 to S405.
Step S401: receiving text information input by a user.
Specifically, reference may be made to step S101 in the embodiment of fig. 1, which is not described herein again.
Step S402: and receiving a character selection instruction of a user in the text information, wherein the character selection instruction is used for indicating that the file name in the text information is selected.
Specifically, a character selection instruction in the text information input by the user in step S401 is received, where the character selection instruction is used to indicate that a file name in the text information is selected. Wherein the selection instruction of the user can comprise: a select instruction, a drag instruction, a box select instruction, and the like.
Step S403: and receiving an opening search instruction of a user.
Specifically, after receiving the character selection instruction in step S402, receiving an opening search instruction of the user, that is, the character selection instruction in step S402 is further combined with the opening search instruction, so that the operation error can be reduced, and it is ensured that the user needs to perform fast search on the file.
Step S404: and according to the search starting instruction, identifying the character selected by the character selecting instruction as the file name contained in the text information.
Specifically, according to the open search instruction, the character selected by the character selection instruction in step S402 is identified and confirmed as the file name included in the text information.
Step S405: and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
Specifically, reference may be made to step S103 of the method in the embodiment in fig. 1, which is not described herein again.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 5 is a schematic flowchart of another file searching method in the embodiment of the present invention, and details of the another file searching method in the embodiment of the present invention will be described below with reference to fig. 5, as shown in fig. 5, the another file searching method in the embodiment of the present invention may include the following steps S501 to S504.
Step S501: receiving text information input by a user.
Specifically, reference may be made to step S301 of the method in the embodiment in fig. 3, which is not described herein again.
Step S502: and detecting whether the text information input by the user contains a file suffix name.
Specifically, reference may be made to step S302 of the method in the embodiment in fig. 3, which is not described herein again.
Step S503: and if the file suffix name is detected to be contained, identifying the file name contained in the text information according to the file suffix name.
Specifically, reference may be made to step S303 of the method in the embodiment in fig. 3, which is not described herein again.
Step S504: searching a target file corresponding to the file name according to the identified file name, and when the target file corresponding to the file name is searched, displaying a storage path of the target file to a user so that the user can add or open an attachment; or automatically add the target file to the attachment or directly open.
Specifically, searching a target file corresponding to the file name at a local terminal or a cloud server or a cloud disk which establishes a network connection relationship in advance according to the identified file name, and when the target file corresponding to the file name is searched, displaying a storage path of the target file to a user so that the user can add or open an attachment; or automatically add the target file to the attachment or open it directly.
Further, step S504 in the above embodiment can also be implemented by the following specific implementation.
And searching a target file corresponding to the file name at a local terminal or a cloud server or a cloud disk which establishes a connection relation in advance according to the identified file name, and when a plurality of target files corresponding to the file name are searched, displaying storage paths of the plurality of target files to a user in a list form so that the user can add or open the attachment. It can be understood that the sequence of the files in the list can also be arranged according to the sequence of the modification dates or the matching degree of the file names; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 6 is a schematic flowchart of another file searching method in the embodiment of the present invention, and details of the another file searching method in the embodiment of the present invention will be described below with reference to fig. 6, as shown in fig. 6, the another file searching method in the embodiment of the present invention may include the following steps S601 to S605.
Step S601: receiving text information input by a user.
Specifically, reference may be made to step S401 in the embodiment of fig. 4, which is not described herein again.
Step S602: and receiving a character selection instruction of a user in the text information, wherein the character selection instruction is used for indicating that the file name in the text information is selected.
Specifically, reference may be made to step S402 in the embodiment of fig. 4, which is not described herein again.
Step S603: and receiving an opening search instruction of a user.
Specifically, reference may be made to step S403 in the embodiment in fig. 4, which is not described herein again.
Step S604: and according to the search starting instruction, identifying the character selected by the character selecting instruction as the file name contained in the text information.
Specifically, reference may be made to step S404 of the method in the embodiment in fig. 4, which is not described herein again.
Step S605: searching a target file corresponding to the file name according to the identified file name, and when the target file corresponding to the file name is searched, displaying a storage path of the target file to a user so that the user can add or open an attachment; or automatically add the target file to the attachment or directly open.
Specifically, searching a target file corresponding to the file name at a local terminal or a cloud server or a cloud disk which establishes a connection relationship in advance according to the identified file name, and when the target file corresponding to the file name is searched, displaying a storage path of the target file to a user so that the user can add or open an attachment; or automatically add the target file to the attachment or open it directly.
Further, step S604 in the above embodiments can also be implemented by the following specific implementation manners.
And searching a target file corresponding to the file name at a local terminal or a cloud server or a cloud disk which establishes a connection relation in advance according to the identified file name, and when a plurality of target files corresponding to the file name are searched, displaying storage paths of the plurality of target files to a user in a list form so that the user can add or open the attachment. It can be understood that the sequence of the files in the list can also be arranged according to the sequence of the modified dates or the matching degree of the names of the civilization; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 7 is a schematic flowchart of another file searching method in the embodiment of the present invention, and details of the another file searching method in the embodiment of the present invention will be described below with reference to fig. 7, as shown in fig. 7, the another file searching method in the embodiment of the present invention may include the following steps S701 to S705.
Step S701: receiving text information input by a user in the text editing area.
Specifically, when the embodiment of the invention is applied to the mail system, the embodiment of the invention is used for receiving the text information input by the user in the mail edit box or the subject edit box. The file editing area may include a text editing area in a text editor such as PPT or Word.
Step S702: and identifying the file name contained in the text information according to a preset rule.
Specifically, reference may be made to step S102 of the method in the embodiment in fig. 1, which is not described herein again.
Step S703: and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
Specifically, reference may be made to step S103 of the method in the embodiment in fig. 1, which is not described herein again.
Step S704: and if the search result comprises one target file, adding the target file to a preset position or an attachment column in the text editing area.
Specifically, when there is a target file in the search result, the target file is preferentially added to the attachment column of the mail, that is, the only target file is automatically uploaded to the attachment column. If the application scene is in the PPT or Word text editing area, the target file is added to a preset position in the text editing area, such as a position behind the file name or a position in front of the file name. The target file may also be a picture file, an audio file, or a video file, and the invention is not limited in particular.
Step S705: and if the search result comprises a plurality of target files, adding at least one file to a preset position of the text editing area or an attachment column according to a confirmation instruction of a user on at least one file in the plurality of target files.
Specifically, when the search result includes a plurality of target files, the user may be prompted to select the plurality of target files, or not prompted, whether to select the target files is determined according to the user's own will, and finally, at least one target file corresponding to the selection performed by the user is automatically added to the attachment of the mail, so that the user is prevented from performing more operations, and the user experience is enhanced. If the application scene is in the PPT or Word text editing area, the target file is added to a preset position in the text editing area, such as a position behind the file name or a position in front of the file name. The target file may also be a picture file, an audio file, or a video file, and the invention is not limited in particular.
In a specific application scenario, as shown in fig. 8 and fig. 9, fig. 8 and fig. 9 are schematic diagrams of a specific application scenario of an information display method in an embodiment of the present invention, and in the text content of the mail to be sent in fig. 7, for example, when a preset key character is a colon, when "XX hello" is input in a text editing area of the mail: the following is a fiscal statement for this quarter: 2015 second quarter financial statistics xls, you check for income, very thank you! "the file name included in the text information is identified by a preset rule for identifying a file suffix name: "2015 second quarter financial statistics, xls". After recognition and search, in the bullet frame of fig. 9, the plurality of search results are arranged in sequence according to the modification time of the file, so as to prompt the user to select the search results. The application scenario is only a preferred embodiment of the present invention, and other specific application scenarios and implementation manners are not listed.
In a specific application scenario, as shown in fig. 10 and fig. 11, fig. 10 and fig. 11 are schematic diagrams of another specific application scenario of the information display method in the embodiment of the present invention, and in the text content of the to-be-sent mail in fig. 10, for example, after receiving a character selection instruction, and receiving a search start instruction of a user: the name of the file is identified and confirmed as ' 2015 second quarter financial statistics ' xls ', and the character selection instruction is further combined with a search starting instruction to reduce operation errors and ensure that a user needs to search for the file quickly. After recognition and search, in the bullet frame of fig. 11, the plurality of search results are arranged in sequence according to the modification time of the file, so as to prompt the user to select the search results. The application scenario is only a preferred embodiment of the present invention, and other specific application scenarios and implementation manners are not listed.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 12 is a schematic structural diagram of a file searching apparatus in an embodiment of the present invention, configured to execute a flow of a file searching method in the embodiment shown in fig. 1 or a flow of another file searching method in the embodiment shown in fig. 2.
The structure of a file searching apparatus according to an embodiment of the present invention will be described in detail below with reference to fig. 12. The apparatus 10 may include: an input module 101, an identification module 102 and a lookup module 103.
An input module 101, configured to receive text information input by a user;
specifically, the input module 101 may execute and complete all methods and processes in the method step S101 and the method step S201, which are not described herein again.
The identifying module 102 is configured to identify a file name included in the text information according to a preset rule.
Specifically, the identification module 102 may execute and complete all methods and processes in the method step S102 and the method step S202, which are not described herein again.
The searching module 103 is configured to search for the target file corresponding to the file name according to the identified file name, and display a search result of the target file to a user.
Specifically, the search module 103 may execute and complete all the methods and processes in the method step S103 and the method step S203, which are not described herein again.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 13 is a schematic structural diagram of another file searching apparatus in the embodiment of the present invention, which is used to execute a flow of another file searching method in the embodiment shown in fig. 3 or a flow of another file searching method in the embodiment shown in fig. 5.
The structure of another file searching apparatus in the embodiment of the present invention will be described in detail below with reference to fig. 13. The apparatus 20 may include: an input module 201, an identification module 202 and a lookup module 203. The identification module 202 may include: a detection unit 2021 and a first recognition unit 2022.
An input module 201, configured to receive text information input by a user.
Specifically, the input module 201 may execute and complete all methods and processes in the method step S301 and the method step S501, which are not described herein again.
The identification module 202 may include: a detection unit 2021 and a first recognition unit 2022.
A detecting unit 2021, configured to detect whether a file suffix name is included in the text information input by the user;
a first identifying unit 2022, configured to identify a file name included in the text information according to a file suffix name if it is detected that the file suffix name is included.
Wherein the units 2021 to 2022 included in the identification module 202 in the apparatus may execute and complete all methods and flows in the method steps S302 to S303 or the method steps S502 to S503, which are not described herein again.
The searching module 203 is configured to search for a target file corresponding to the file name according to the identified file name, and display a searching result of the target file to a user; or,
a step for displaying a storage path of the target file to a user when the target file corresponding to the file name is found so that the user can add or open an attachment; or automatically adding the target file to an attachment or directly opening the target file; or,
when a plurality of target files corresponding to the file names are found, displaying storage paths of the target files to a user in a list form so that the user can add or open the attachments; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
Specifically, the search module 203 may execute and complete all the methods and processes in the method step S304 or the method step S504, which are not described herein again.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 14 is a schematic structural diagram of another file searching apparatus in an embodiment of the present invention, configured to execute a flow of another file searching method in the embodiment shown in fig. 4 or a flow of another file searching method in the embodiment shown in fig. 6.
The structure of another file searching apparatus in the embodiment of the present invention will be described in detail below with reference to fig. 14. The apparatus 30 may include: an input module 301, an identification module 302, and a lookup module 303. The mold 302 may include: a first receiving unit 3021, a second receiving unit 3022, and a second identifying unit 3023.
An input module 301, configured to receive text information input by a user.
Specifically, the input module 301 may execute and complete all methods and processes in the method step S401 and the method step S601, which are not described herein again.
The identification module 302 may include: a first receiving unit 3021, a second receiving unit 3022, and a second identifying unit 3023.
A first receiving unit 3021, configured to receive a character selection instruction in the text information from a user, where the character selection instruction is used to indicate that a file name in the text information is selected;
a second receiving unit 3022, configured to receive an open search instruction of a user;
a second identifying unit 3023, configured to identify, according to the open search instruction, the character selected by the character selecting instruction as the file name included in the text information.
Wherein the units 3021 to 3023 included in the identification module 302 of the apparatus may perform and complete all methods and procedures in the method steps S402 to S403 or the method steps S602 to S603, and are not described herein again.
The searching module 303 is configured to search for a target file corresponding to the file name according to the identified file name, and display a search result of the target file to a user; or,
a step for displaying a storage path of the target file to a user when the target file corresponding to the file name is found so that the user can add or open an attachment; or automatically adding the target file to an attachment or directly opening the target file; or,
when a plurality of target files corresponding to the file names are found, displaying storage paths of the target files to a user in a list form so that the user can add or open the attachments; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
Specifically, the search module 303 may execute and complete all the methods and processes in the method step S404 or the method step S604, which are not described herein again.
According to the embodiment of the invention, the text information input by the user is received, the file name contained in the text information is identified according to the preset rule, the target file corresponding to the file name is searched according to the identified file name, and the search result of the target file is finally displayed to the user.
Fig. 15 is a schematic structural diagram of another file searching apparatus in an embodiment of the present invention, configured to execute a process of another file searching method in the embodiment shown in fig. 7.
The structure of another file searching apparatus in the embodiment of the present invention will be described in detail below with reference to fig. 15. The apparatus 40 may include: an input module 401, an identification module 402, a lookup module 403, a first add module 404, and a second add module 405.
An input module 401, configured to receive text information input by a user in the text editing area.
Specifically, the input module 401 may execute and complete all the methods and processes in the method step S701, which are not described herein again.
An identifying module 402, configured to identify a file name included in the text information according to a preset rule;
specifically, the identifying module 402 may execute and complete all the methods and processes in the method step S702, which are not described herein again.
The searching module 403 is configured to search for a target file corresponding to the file name according to the identified file name, and display a search result of the target file to a user.
Specifically, the search module 403 may execute and complete all the methods and processes in the method step S703, which are not described herein again.
A first adding module 404, configured to add, if the search result includes one target file, the target file to a preset position or an attachment column in the text editing area.
Specifically, the first adding module 404 may execute and complete all the methods and flows in the method step S704, which are not described herein again.
A second adding module 405, configured to, if the search result includes multiple target files, add at least one file to a preset position of the text editing area or an attachment column according to a confirmation instruction of a user on the at least one file in the multiple target files.
Specifically, the second adding module 405 may execute and complete all the methods and flows in the method step S705, which are not described herein again.
It will be understood that, although the terms first, second, etc. may be used herein to describe methods or elements, these methods or elements should not be limited by these terms, which are used to distinguish one from another.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A file searching method is characterized by comprising the following steps:
receiving text information input by a user;
identifying the file name contained in the text information according to a preset rule;
and searching a target file corresponding to the file name according to the identified file name, and displaying a searching result of the target file to a user.
2. The method of claim 1, wherein receiving user-entered textual information comprises:
receiving text information input by a user in a text editing area;
after the search result of the target file is displayed to the user, the method further comprises the following steps:
if the search result comprises one target file, adding the target file to a preset position or an attachment column in the text editing area;
and if the search result comprises a plurality of target files, adding at least one file to a preset position of the text editing area or an attachment column according to a confirmation instruction of a user on at least one file in the plurality of target files.
3. The method of claim 1, wherein the identifying the file name included in the text message according to a preset rule comprises:
and identifying the file name contained in the text information according to the attribute of the file name or according to a selection instruction of a user.
4. The method of claim 1, wherein the identifying the file name included in the text message according to a preset rule comprises:
detecting whether text information input by a user contains a file suffix name or not;
and if the file suffix name is detected to be contained, identifying the file name contained in the text information according to the file suffix name.
5. The method of claim 1, wherein the identifying the file name included in the text message according to a preset rule comprises:
receiving a character selection instruction of a user in the text information, wherein the character selection instruction is used for indicating that a file name in the text information is selected;
receiving an opening search instruction of a user;
and according to the search starting instruction, identifying the character selected by the character selecting instruction as the file name contained in the text information.
6. The method of claim 1, wherein the presenting the search results of the target file to the user comprises:
when the target file corresponding to the file name is found, displaying a storage path of the target file to a user so that the user can add or open the attachment; or automatically add the target file to the attachment or directly open.
7. The method of claim 1, wherein the presenting the search results of the target file to the user comprises:
when a plurality of target files corresponding to the file names are found, displaying storage paths of the target files to a user in a list form so that the user can add or open the attachments; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
8. A file lookup apparatus, comprising:
the input module is used for receiving text information input by a user;
the identification module is used for identifying the file name contained in the text information according to a preset rule;
and the searching module is used for searching the target file corresponding to the file name according to the identified file name and displaying the searching result of the target file to a user.
9. The apparatus of claim 8, wherein the input module is specifically configured to:
receiving text information input by a user in a text editing area; the device, still include:
a first adding module, configured to add, if the search result includes one target file, the target file to a preset position or an attachment column in the text editing area;
and the second adding module is used for adding at least one file to a preset position of the text editing area or an attachment column according to a confirmation instruction of a user on the at least one file in the target files if the search result comprises the target files.
10. The apparatus of claim 8, wherein the identification module is specifically configured to:
and identifying the file name contained in the text information according to the attribute of the file name or according to a selection instruction of a user.
11. The apparatus of claim 8, wherein the identification module comprises:
the detection unit is used for detecting whether the text information input by the user contains a file suffix name;
and the first identification unit is used for identifying the file name contained in the text information according to the file suffix name if the file suffix name is detected to be contained.
12. The apparatus of claim 8, wherein the identification module comprises:
the first receiving unit is used for receiving a character selection instruction of a user in the text information, wherein the character selection instruction is used for indicating that a file name in the text information is selected;
the second receiving unit is used for receiving an opening search instruction of a user;
and the second identification unit is used for identifying the character selected by the character selection instruction as the file name contained in the text information according to the search starting instruction.
13. The apparatus of claim 8, wherein the lookup module is specifically configured to:
when the target file corresponding to the file name is found, displaying a storage path of the target file to a user so that the user can add or open the attachment; or automatically add the target file to the attachment or directly open.
14. The apparatus of claim 8, wherein the lookup module is specifically configured to:
when a plurality of target files corresponding to the file names are found, displaying storage paths of the target files to a user in a list form so that the user can add or open the attachments; or automatically adding the latest target file with the modified date in the plurality of target files to the attachment or directly opening the attachment.
CN201510464002.0A 2015-07-30 2015-07-30 File searching method and apparatus Pending CN105138586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510464002.0A CN105138586A (en) 2015-07-30 2015-07-30 File searching method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510464002.0A CN105138586A (en) 2015-07-30 2015-07-30 File searching method and apparatus

Publications (1)

Publication Number Publication Date
CN105138586A true CN105138586A (en) 2015-12-09

Family

ID=54723935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510464002.0A Pending CN105138586A (en) 2015-07-30 2015-07-30 File searching method and apparatus

Country Status (1)

Country Link
CN (1) CN105138586A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446014A (en) * 2016-08-26 2017-02-22 维沃移动通信有限公司 File searching method and mobile terminal
CN107368574A (en) * 2017-07-12 2017-11-21 广州视源电子科技股份有限公司 File directory display method and device, electronic terminal and storage medium
WO2018027862A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for automatically finding mail attachment folder on the basis of subject and mail system
WO2018027864A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for collecting data of automatic e-mail attachment matching technology, and e-mail system
WO2018027863A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method and email system for pushing information when automatically searching for email attachment
CN107885827A (en) * 2017-11-07 2018-04-06 广东欧珀移动通信有限公司 File acquisition method, device, storage medium and electronic equipment
CN108038114A (en) * 2017-10-17 2018-05-15 广东欧珀移动通信有限公司 A kind of path query method, terminal, computer-readable recording medium
CN108073556A (en) * 2016-11-14 2018-05-25 英业达科技有限公司 Word string discrimination method and machine learning method
CN108494668A (en) * 2018-04-03 2018-09-04 北京京东尚科信息技术有限公司 A kind of method and apparatus executing email processing jobs
CN108874881A (en) * 2018-05-04 2018-11-23 昆山丘钛微电子科技有限公司 A kind of detecting method, device, equipment and medium
CN109191642A (en) * 2018-09-19 2019-01-11 上海膺芙光电科技有限公司 A kind of airport frontier inspection Information Authentication method and system
CN111414521A (en) * 2019-01-04 2020-07-14 珠海金山办公软件有限公司 Method and device for processing document, computer storage medium and terminal
CN111414470A (en) * 2019-01-04 2020-07-14 珠海金山办公软件有限公司 Method and device for processing document, computer storage medium and terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318294A (en) * 2009-02-13 2012-01-11 维斯阿克公司 A method for handling email messages and attachments in a mobile communication system
CN102456037A (en) * 2010-10-28 2012-05-16 康佳集团股份有限公司 Method and device for reading electronic book in mobile terminal
CN102999596A (en) * 2012-11-19 2013-03-27 东莞宇龙通信科技有限公司 Text label retrieval method, system and terminal
CN103177118A (en) * 2013-04-09 2013-06-26 天津三星光电子有限公司 File search method and device thereof
CN103324616A (en) * 2012-03-20 2013-09-25 国际商业机器公司 Method and computer equipment for adding attachment to electronic message
CN103744860A (en) * 2013-12-12 2014-04-23 中国科学院深圳先进技术研究院 Method, device and mobile phone for searching for picture
CN104268228A (en) * 2014-09-26 2015-01-07 西安酷派软件科技有限公司 Attachment adding method and attachment adding device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318294A (en) * 2009-02-13 2012-01-11 维斯阿克公司 A method for handling email messages and attachments in a mobile communication system
CN102456037A (en) * 2010-10-28 2012-05-16 康佳集团股份有限公司 Method and device for reading electronic book in mobile terminal
CN103324616A (en) * 2012-03-20 2013-09-25 国际商业机器公司 Method and computer equipment for adding attachment to electronic message
CN102999596A (en) * 2012-11-19 2013-03-27 东莞宇龙通信科技有限公司 Text label retrieval method, system and terminal
CN103177118A (en) * 2013-04-09 2013-06-26 天津三星光电子有限公司 File search method and device thereof
CN103744860A (en) * 2013-12-12 2014-04-23 中国科学院深圳先进技术研究院 Method, device and mobile phone for searching for picture
CN104268228A (en) * 2014-09-26 2015-01-07 西安酷派软件科技有限公司 Attachment adding method and attachment adding device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018027862A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for automatically finding mail attachment folder on the basis of subject and mail system
WO2018027864A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method for collecting data of automatic e-mail attachment matching technology, and e-mail system
WO2018027863A1 (en) * 2016-08-11 2018-02-15 张焰焰 Method and email system for pushing information when automatically searching for email attachment
CN106446014B (en) * 2016-08-26 2020-01-07 维沃移动通信有限公司 A file search method and mobile terminal
CN106446014A (en) * 2016-08-26 2017-02-22 维沃移动通信有限公司 File searching method and mobile terminal
CN108073556A (en) * 2016-11-14 2018-05-25 英业达科技有限公司 Word string discrimination method and machine learning method
CN107368574A (en) * 2017-07-12 2017-11-21 广州视源电子科技股份有限公司 File directory display method and device, electronic terminal and storage medium
CN108038114A (en) * 2017-10-17 2018-05-15 广东欧珀移动通信有限公司 A kind of path query method, terminal, computer-readable recording medium
CN107885827A (en) * 2017-11-07 2018-04-06 广东欧珀移动通信有限公司 File acquisition method, device, storage medium and electronic equipment
CN108494668A (en) * 2018-04-03 2018-09-04 北京京东尚科信息技术有限公司 A kind of method and apparatus executing email processing jobs
CN108874881A (en) * 2018-05-04 2018-11-23 昆山丘钛微电子科技有限公司 A kind of detecting method, device, equipment and medium
CN109191642A (en) * 2018-09-19 2019-01-11 上海膺芙光电科技有限公司 A kind of airport frontier inspection Information Authentication method and system
CN111414521A (en) * 2019-01-04 2020-07-14 珠海金山办公软件有限公司 Method and device for processing document, computer storage medium and terminal
CN111414470A (en) * 2019-01-04 2020-07-14 珠海金山办公软件有限公司 Method and device for processing document, computer storage medium and terminal

Similar Documents

Publication Publication Date Title
CN105138586A (en) File searching method and apparatus
US9936022B2 (en) Computer device for reading e-book and server for being connected with the same
CN108073680B (en) Generating presentation slides with refined content
CN107070779B (en) Information processing method and device
CN104160388B (en) Method contributing to replying received E-mail message
US20170277277A1 (en) Input-based information display method and input system
WO2015047920A1 (en) Title and body extraction from web page
WO2013089668A2 (en) Content-based automatic input protocol selection
CN107861932B (en) Text editing method, device and system and terminal equipment
EP3029567B1 (en) Method and device for updating input method system, computer storage medium, and device
US10565301B2 (en) Stateful editing of rich content using a basic text box
US20140317495A1 (en) Retroactive word correction
EP2544437A1 (en) Apparatus and method for transmitting message in mobile terminal
CN109074547B (en) Text message ordering based on message content
US20140258852A1 (en) Detection and Reconstruction of Right-to-Left Text Direction, Ligatures and Diacritics in a Fixed Format Document
US20150278248A1 (en) Personal Information Management Service System
CN104363349A (en) Short message processing method and portable terminal using same
WO2014078449A2 (en) Intelligent information summarization and display
CN111291575B (en) Text processing method and device, electronic equipment and storage medium
CN111046627A (en) Chinese character display method and system
EP3642771A1 (en) Inline content file item attachment
CN114995691B (en) Document processing method, device, equipment and medium
CN104331393A (en) Equipment and method for providing option by aiming at input operation of user
CN102591851A (en) Method and device for editing target texts based on keyboard keys
CN114691790A (en) Data collection method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209