CN103605758B - The method and device that a kind of mobile terminal document is searched - Google Patents

The method and device that a kind of mobile terminal document is searched Download PDF

Info

Publication number
CN103605758B
CN103605758B CN201310601361.7A CN201310601361A CN103605758B CN 103605758 B CN103605758 B CN 103605758B CN 201310601361 A CN201310601361 A CN 201310601361A CN 103605758 B CN103605758 B CN 103605758B
Authority
CN
China
Prior art keywords
file
storage path
searched
mobile terminal
information
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.)
Active
Application number
CN201310601361.7A
Other languages
Chinese (zh)
Other versions
CN103605758A (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.)
Shenzhen Institute of Advanced Technology of CAS
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
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 Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201310601361.7A priority Critical patent/CN103605758B/en
Publication of CN103605758A publication Critical patent/CN103605758A/en
Application granted granted Critical
Publication of CN103605758B publication Critical patent/CN103605758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

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

Abstract

本发明适用于移动终端文件管理技术领域,提供了一种移动终端文件查找的方法及装置,所述方法包括:获取移动终端文件的存储路径;根据所述存储路径建立树型结构索引;接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息;在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径;从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户。通过本发明使得移动终端具备了文件查找功能,从而方便用户简单、快速的查找到所需的文件。

The present invention is applicable to the technical field of mobile terminal file management, and provides a method and device for mobile terminal file search. The method includes: obtaining a storage path of a mobile terminal file; establishing a tree structure index according to the storage path; receiving a mobile Terminal file search request information, the search request information includes the keyword information of the file to be searched; the keyword information is searched in the tree structure index, and the storage path of the file corresponding to the keyword information is obtained; from the Acquiring the file to be found corresponding to the storage path of the file, and displaying the obtained file to be found to the user. Through the present invention, the mobile terminal is equipped with a file search function, thereby facilitating users to find required files simply and quickly.

Description

一种移动终端文件查找的方法及装置Method and device for mobile terminal file search

技术领域technical field

本发明属于移动终端文件管理技术领域,尤其涉及一种移动终端文件查找的方法及装置。The invention belongs to the technical field of mobile terminal file management, and in particular relates to a method and device for mobile terminal file search.

背景技术Background technique

现有的手机文件管理软件提供给用户两种分类,一种是按照文件存储的位置,比如手机RAM、内置SD卡或外置SD卡;另一种是按照文件的类型,比如文档、图片、安装包等。如果用户想要查找所需的手机文件,必须按照手机管理工具提供的分类逐一查找,当手机文件较多且用户不知道所需的手机文件属于哪一类时,查找费时费力,操作繁琐、效率较低,极大的影响了用户体验。The existing mobile phone file management software provides users with two categories, one is based on the location of the file storage, such as mobile phone RAM, built-in SD card or external SD card; the other is based on the type of file, such as documents, pictures, Install packages etc. If the user wants to find the required mobile phone files, he must search one by one according to the categories provided by the mobile phone management tool. When there are many mobile phone files and the user does not know which category the required mobile phone files belong to, the search is time-consuming and laborious, and the operation is cumbersome and efficient. Low, which greatly affects the user experience.

发明内容Contents of the invention

本发明实施例在于提供一种移动终端文件查找的方法,以解决现有手机文件查找操作繁琐、效率较低的问题。An embodiment of the present invention provides a method for searching files in a mobile terminal, so as to solve the problems of cumbersome operations and low efficiency for searching files in existing mobile phones.

本发明实施例的第一方面,提供一种移动终端文件查找的方法,所述方法包括:The first aspect of the embodiments of the present invention provides a method for searching files in a mobile terminal, the method comprising:

获取移动终端文件的存储路径;Obtain the storage path of the mobile terminal file;

根据所述存储路径建立树型结构索引;Establishing a tree structure index according to the storage path;

接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息;Receiving mobile terminal file search request information, the search request information includes keyword information of the file to be searched;

在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径;Searching for the keyword information in the tree structure index to obtain the storage path of the file corresponding to the keyword information;

从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户。The file to be searched is obtained from the storage path of the corresponding file, and the obtained file to be searched is displayed to the user.

本发明实施例的第二方面,提供一种移动终端文件查找的装置,所述装置包括:The second aspect of the embodiments of the present invention provides a mobile terminal file search device, the device comprising:

存储路径获取单元,用于获取移动终端文件的存储路径;a storage path obtaining unit, configured to obtain the storage path of the mobile terminal file;

索引建立单元,用于根据所述存储路径建立树型结构索引;an index building unit, configured to create a tree structure index according to the storage path;

信息接收单元,用于接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息;The information receiving unit is used to receive the mobile terminal file search request information, and the search request information includes keyword information of the file to be searched;

查找单元,用于在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径;A search unit, configured to search for the keyword information in the tree structure index, and obtain the storage path of the file corresponding to the keyword information;

显示单元,用于从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户。A display unit, configured to obtain the file to be searched from the storage path of the corresponding file, and display the obtained file to be searched for to the user.

本发明实施例与现有技术相比存在的有益效果是:本发明实施例通过获取移动终端文件的存储路径,并根据所述存储路径建立树型结构索引,在接收到用户的移动终端文件查找请求信息,可以根据所述索引自动、快速的查找到用户所需的文件。本发明实施例使得移动终端具备了文件查找功能。而且实现简单,操作方便、快捷,文件查找效率较高,提高了用户体验,具有较强的易用性和实用性。Compared with the prior art, the embodiment of the present invention has the following beneficial effects: the embodiment of the present invention obtains the storage path of the mobile terminal file, and establishes a tree structure index according to the storage path, and searches for the mobile terminal file received from the user. According to the request information, the files needed by the user can be found automatically and quickly according to the index. The embodiment of the present invention enables the mobile terminal to have a file search function. Moreover, the implementation is simple, the operation is convenient and fast, the file search efficiency is high, the user experience is improved, and the utility model has strong usability and practicability.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.

图1是本发明第一实施例提供的移动终端文件查找方法的实现流程图;Fig. 1 is the implementation flowchart of the mobile terminal file search method that the first embodiment of the present invention provides;

图2是本发明第二实施例提供的移动终端文件查找装置的组成结构图。Fig. 2 is a structural diagram of the mobile terminal file search device provided by the second embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例一:Embodiment one:

图1示出了本发明第一实施例提供的移动终端文件查找方法的实现流程,其过程详述如下:Fig. 1 shows the implementation process of the mobile terminal file search method that the first embodiment of the present invention provides, and its process is described in detail as follows:

在步骤S101中,获取移动终端文件的存储路径。In step S101, the storage path of the mobile terminal file is obtained.

具体的是,获取移动终端文件的存储路径,并将获取的所述存储路径写入新的文件夹中,将所述新的文件夹存储在移动终端的根目录下。本实施例所述存储路径指的是文件的绝对路径。例如在pictures文件夹下的good.jpg文件,其绝对路径为/media/sdcards/picures/good.jpg,而不是指相对路径../good.jpg。移动终端根据所述存储路径,可以快速获取对应的文件。Specifically, the storage path of the mobile terminal file is obtained, and the obtained storage path is written into a new folder, and the new folder is stored in the root directory of the mobile terminal. The storage path described in this embodiment refers to the absolute path of the file. For example, the good.jpg file in the pictures folder has an absolute path of /media/sdcards/picures/good.jpg instead of a relative path ../good.jpg. According to the storage path, the mobile terminal can quickly obtain the corresponding file.

进一步的,由于用户对文件的添加或者删除等操作,本实施例还包括:Further, due to operations such as adding or deleting files by the user, this embodiment also includes:

根据更新指令更新所存储的存储路径,所述更新指令包括由用户输入的更新启动命令触发,或者根据配置的更新时限自动触发。The stored storage path is updated according to an update instruction, the update instruction being triggered by an update start command input by a user, or automatically triggered according to a configured update time limit.

在本发明实施例中,所述新文件夹中存储路径的更新指令可以是用户主动输入的更新启动命令触发,也可以是系统根据配置的更新时限,在更新时限到时自动触发。In the embodiment of the present invention, the update instruction of the storage path in the new folder may be triggered by an update start command actively input by the user, or may be automatically triggered by the system when the update time limit expires according to the configured update time limit.

作为本发明的一个实施例,用户可以预先配置所述存储路径的更新时限,例如配置为每日、每周或者每10天更新一次等,系统实时监测更新时限,在更新时限到时,自动发起所述存储路径的更新过程。As an embodiment of the present invention, the user can pre-configure the update time limit of the storage path, for example, it is configured to update once every day, every week, or every 10 days, etc., the system monitors the update time limit in real time, and automatically initiates when the update time limit expires. The update process of the storage path.

另外,本实施例所述更新启动命令可以优选为:在监测到用户在移动终端上的触摸动作为两点触摸且滑动轨迹为纵向相对滑动后,判断两触摸点纵向相对滑动的位移是否同时大于预设的第一阈值、所述两触摸点最终落点的距离差是否小于预设的第二阈值、且所述两触摸点滑动的速度是否同时大于预设的第三阈值;或者在监测到所述触摸动作为两点触摸且所述滑动轨迹为相反方向滑动后,判断两触摸点相反方向滑动的位移是否同时大于预设的第一阈值、所述两触摸点最终落点的距离差是否大于预设的第四阈值、且所述两触摸点滑动的速度是否同时大于预设的第三阈值,若是(即上述三个条件判断结果都为“是”),则判定为更新启动命令;若否(上述三个条件的判断结果至少有一个为“否”),则不执行,结束当前操作。In addition, the update startup command described in this embodiment may preferably be: after detecting that the user's touch action on the mobile terminal is a two-point touch and the sliding track is a vertical relative sliding, it is determined whether the vertical relative sliding displacement of the two touch points is greater than Whether the preset first threshold, the distance difference between the final landing points of the two touch points is less than the preset second threshold, and whether the sliding speed of the two touch points is greater than the preset third threshold at the same time; After the touch action is a two-point touch and the sliding trajectory is sliding in opposite directions, it is judged whether the displacements of the two touch points sliding in opposite directions are greater than the preset first threshold at the same time, and whether the distance difference between the final landing points of the two touch points is greater than the preset fourth threshold, and whether the sliding speed of the two touch points is greater than the preset third threshold at the same time, if so (that is, the judgment results of the above three conditions are all "yes"), it is determined to be an update start command; If not (at least one of the judgment results of the above three conditions is "No"), do not execute, and end the current operation.

在步骤S102中,根据所述存储路径建立树型结构索引。In step S102, a tree structure index is established according to the storage path.

在本实施例中,根据所述存储路径建立树型结构索引,例如移动终端的根目录下有文件夹bin、etc、sys、data、root等,而所述目录下又有子文件夹,按照目录的层次建立树型结构索引,例如root文件下有pictures、apps文件夹,而pictures下面又有cards和sdcards的目录,那么建立索引时,树的根节点为root,有分支pictures和apps,而pictures有分支cards和sdcards。In this embodiment, a tree structure index is established according to the storage path, for example, there are folders bin, etc, sys, data, root, etc. under the root directory of the mobile terminal, and there are subfolders under the directory, according to Create a tree structure index at the directory level, for example, there are pictures and apps folders under the root file, and there are cards and sdcards directories under pictures, then when building an index, the root node of the tree is root, and there are branches pictures and apps, and Pictures have branch cards and sdcards.

本实施例建立索引的过程是生成一个树的过程,即按照目录层次生成树型结构的索引,树的根节点是最高层的目录,最高层目录的子目录作为树的孩子节点,直到该目录的最后一层。由于所述树型结构查找时时间复杂度较低,因而查询速度更快。The process of building an index in this embodiment is a process of generating a tree, that is, an index of a tree structure is generated according to the directory hierarchy. of the last layer. Since the time complexity of searching the tree structure is low, the query speed is faster.

在步骤S103中,接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息。In step S103, the mobile terminal file search request information is received, and the search request information includes keyword information of the file to be searched.

在实际应用中,可以提供一个输入框,根据用户输入的关键词查找相应的文件,所述关键词为与文件的名称相关的字符串。In practical applications, an input box may be provided to search for corresponding files according to keywords input by the user, where the keywords are character strings related to file names.

在步骤S104中,在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径。In step S104, the keyword information is searched in the tree structure index to obtain the storage path of the file corresponding to the keyword information.

在本实施例中,当移动终端接收到用户通过输入框输入的待查找文件的关键词后,在所述树型结构索引中查找包含该关键词的文件路径。具体的是:从当前目录开始,一直查找到当前目录的最低目录,之后再返回当前目录,并从当前目录向上级目录查找,直到根目录,之后再从根目录依次向其他子目录查找,直到查找到包含所述关键词的文件路径。由于所述索引为树型结构,查询的时间复杂度较低,因此相比于其他的查询方法,速度快并且效率高。In this embodiment, after the mobile terminal receives the keyword of the file to be searched inputted by the user through the input box, it searches the file path containing the keyword in the tree structure index. Specifically: start from the current directory, search to the lowest directory of the current directory, then return to the current directory, and search from the current directory to the upper directory until the root directory, and then search from the root directory to other subdirectories in turn until A file path containing the keyword is found. Since the index is in a tree structure, the time complexity of the query is low, so compared with other query methods, it is faster and more efficient.

在步骤S105中,从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户。In step S105, the file to be searched is obtained from the storage path of the corresponding file, and the obtained file to be searched is displayed to the user.

在本实施例中,当获取的所述待查找文件有多个时,获取每个所述待查找文件的查找频率信息及所属分类信息;In this embodiment, when there are multiple files to be searched, the search frequency information and classification information of each file to be searched are obtained;

根据所述查找频率信息及所属分类信息,计算每个待查找文件的权值分数,并根据所述权值分数对所述待查找文件进行排序显示;calculating the weight score of each file to be searched according to the search frequency information and the classification information to which it belongs, and sorting and displaying the files to be searched according to the weight score;

其中,计算每个待查找文件的权值分数的公式为:Wherein, the formula for calculating the weight score of each file to be searched is:

Q=q+kn*fn Q=q+k n *f n

Q为计算的每个待查找文件权值分数,q为每个待查找文件对应的权值基本值(所述每个待查找文件的基本值可以相同也可以不同)、n表示第n个待查找文件,n为大于0的整数,kn为预先根据分类信息设置的重要性因值(所述重要性因值为根据所述分类信息的重要性度量化的数值,例如图片类文件设置的重要性因值为1,视频类文件设置的重要性因值为2)、fn为第n个待查找文件对应的查找频率。Q is the calculated weight score of each file to be found, q is the basic weight value corresponding to each file to be found (the basic value of each file to be found can be the same or different), n represents the nth file to be found Find the file, n is an integer greater than 0, k n is the importance factor value set in advance according to the classification information (the importance factor value is a numerical value quantified according to the importance of the classification information, such as the value set by the picture class file The importance factor value is 1, the importance factor value set for video files is 2), and f n is the search frequency corresponding to the nth file to be searched.

另外,本实施例还可以将每个待查找文件的权值分数以突出显示的方式进行显示,其中,突出显示的方式包括浮层框显示、变色显示等。In addition, this embodiment may also display the weight score of each file to be searched in a highlighted manner, wherein the highlighted manner includes floating frame display, color-changing display, and the like.

通过本发明实施例,使得移动终端具备了文件查找功能,方便用户在移动终端简单、快速的查找到所需的文件。Through the embodiment of the present invention, the mobile terminal is equipped with a file search function, which is convenient for the user to simply and quickly find the required file on the mobile terminal.

实施例二:Embodiment two:

图2示出了本发明第二实施例提供的移动终端文件查找装置的组成结构,为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 2 shows the structure of the mobile terminal file search device provided by the second embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

该移动终端文件查找装置可应用于各种终端设备(优选移动终端,例如手机等),例如口袋计算机(Pocket Personal Computer,PPC)、掌上电脑、计算机、笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)等,可以是运行于这些终端内的软件单元、硬件单元或者软硬件相结合的单元,也可以作为独立的挂件集成到这些终端中或者运行于这些终端的应用系统中。The mobile terminal file search device can be applied to various terminal devices (preferably mobile terminals, such as mobile phones, etc.), such as pocket computers (Pocket Personal Computer, PPC), palmtop computers, computers, notebook computers, personal digital assistants (Personal Digital Assistant, PDA), etc., can be a software unit, a hardware unit, or a combination of software and hardware running in these terminals, or can be integrated into these terminals as an independent pendant or run in the application systems of these terminals.

该移动终端文件查找装置包括存储路径获取单元21、索引建立单元22、信息接收单元23、查找单元24以及显示单元25。其中,各单元具体功能如下:The mobile terminal file search device includes a storage path acquisition unit 21 , an index establishment unit 22 , an information receiving unit 23 , a search unit 24 and a display unit 25 . Among them, the specific functions of each unit are as follows:

存储路径获取单元21,用于获取移动终端文件的存储路径;Storage path obtaining unit 21, for obtaining the storage path of mobile terminal file;

索引建立单元22,用于根据所述存储路径建立树型结构索引;An index building unit 22, configured to create a tree structure index according to the storage path;

信息接收单元23,用于接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息;The information receiving unit 23 is used to receive the mobile terminal file search request information, and the search request information includes keyword information of the file to be searched;

查找单元24,用于在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径;A search unit 24, configured to search for the keyword information in the tree structure index, and obtain the storage path of the file corresponding to the keyword information;

显示单元25,用于从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户。The display unit 25 is configured to obtain the file to be found from the storage path of the corresponding file, and display the obtained file to be found to the user.

进一步的,在获取移动终端文件的存储路径之后,所述装置还包括:Further, after obtaining the storage path of the mobile terminal file, the device further includes:

存储单元26,用于将获取的所述存储路径写入新的文件夹中,并将所述新的文件夹存储在移动终端的根目录下。The storage unit 26 is configured to write the acquired storage path into a new folder, and store the new folder under the root directory of the mobile terminal.

进一步的,所述装置还包括:Further, the device also includes:

更新单元27,用于根据更新指令更新所存储的存储路径;所述更新指令包括由用户输入的更新启动命令触发,或者根据配置的更新时限自动触发。The update unit 27 is configured to update the stored storage path according to an update instruction; the update instruction includes being triggered by an update start command input by a user, or automatically triggered according to a configured update time limit.

进一步的,所述装置还包括:Further, the device also includes:

配置单元28,用于预先配置所述存储路径的更新时限。The configuration unit 28 is configured to pre-configure the update time limit of the storage path.

进一步的,所述显示单元25还包括:Further, the display unit 25 also includes:

信息获取模块251,用于当获取的所述待查找文件有多个时,获取每个所述待查找文件的查找频率信息及所属分类信息;An information acquisition module 251, configured to acquire the search frequency information and the classification information of each of the files to be searched when there are multiple files to be searched;

显示模块252,用于根据所述查找频率信息及所属分类信息,计算每个待查找文件的权值分数,并根据所述权值分数对所述待查找文件进行排序显示;其中,计算每个待查找文件的权值分数的公式为:The display module 252 is configured to calculate the weight score of each file to be searched according to the search frequency information and the classification information, and sort and display the files to be searched according to the weight score; The formula for the weight score of the file to be found is:

Q=q+kn*fn Q=q+k n *f n

Q为计算的每个待查找文件权值分数,q为每个待查找文件对应的权值基本值、n表示第n个待查找文件,n为大于0的整数,kn为预先根据分类信息设置的重要性因值、fn为第n个待查找文件对应的查找频率。Q is the calculated weight score of each file to be found, q is the basic weight value corresponding to each file to be found, n represents the nth file to be found, n is an integer greater than 0, and k n is the pre-according to the classification information Set the importance factor value, f n is the search frequency corresponding to the nth file to be searched.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元或模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元或模块既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述装置中单元、模块的具体工作过程,可以参考前述方法实施例的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Module completion means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit or module in the embodiment can be integrated in one processing unit, or each unit can exist separately physically, or two or more units can be integrated in one unit, and the above-mentioned integrated unit or module can be adopted It may be implemented in the form of hardware, or may be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above device, reference may be made to the corresponding process in the foregoing method embodiment, and details are not repeated here.

综上所述,本发明实施例通过获取移动终端文件的存储路径,并根据所述存储路径建立树型结构索引,在接收到用户的移动终端文件查找请求信息,可以根据所述索引自动、快速的查找到用户所需的文件。本发明实施例使得移动终端具备了文件查找功能。而且实现简单,操作方便、快捷,文件查找效率较高,提高了用户体验。另外,本发明实施例在获取的所述待查找文件有多个时,通过计算每个待查找文件的权值分数,并根据所述权值分数对所述待查找文件进行排序显示,方便用户选择以及查看,具有较强的易用性和实用性。To sum up, the embodiment of the present invention obtains the storage path of the mobile terminal file, and establishes a tree structure index according to the storage path. After receiving the user's mobile terminal file search request information, it can automatically and quickly according to the index. Find the files needed by the user. The embodiment of the present invention enables the mobile terminal to have a file search function. Moreover, the implementation is simple, the operation is convenient and fast, the file search efficiency is high, and the user experience is improved. In addition, in the embodiment of the present invention, when there are multiple files to be searched, the weight score of each file to be searched is calculated, and the files to be searched are sorted and displayed according to the weight score, which is convenient for users. Select and view, with strong ease of use and practicality.

本领域普通技术人员还可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,包括ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can also understand that all or part of the steps in the method of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, so The storage medium mentioned above includes ROM/RAM, magnetic disk, optical disk, etc.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下做出若干等同替代或明显变型,而且性能或用途相同,都应当视为属于本发明由所提交的权利要求书确定的专利保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, several equivalent substitutions or obvious modifications are made without departing from the concept of the present invention, and the performance or use is the same, all should be regarded as belonging to the present invention by the submitted claims The scope of patent protection determined by the book.

Claims (8)

1.一种移动终端文件查找的方法,其特征在于,所述方法包括:1. A method for mobile terminal file search, characterized in that, the method comprises: 获取移动终端文件的存储路径,所述存储路径指的是文件的绝对路径;Obtain the storage path of the mobile terminal file, the storage path refers to the absolute path of the file; 根据所述存储路径建立树型结构索引;Establishing a tree structure index according to the storage path; 接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息;Receiving mobile terminal file search request information, the search request information includes keyword information of the file to be searched; 在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径;Searching for the keyword information in the tree structure index to obtain the storage path of the file corresponding to the keyword information; 从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户;obtaining the file to be found from the storage path of the corresponding file, and displaying the obtained file to be found to the user; 所述将获取的所述待查找文件显示给用户包括:The displaying of the obtained files to be found to the user includes: 当获取的所述待查找文件有多个时,获取每个所述待查找文件的查找频率信息及所属分类信息;When there are multiple files to be searched, obtain the search frequency information and classification information of each file to be searched; 根据所述查找频率信息及所属分类信息,计算每个待查找文件的权值分数,并根据所述权值分数对所述待查找文件进行排序显示;calculating the weight score of each file to be searched according to the search frequency information and the classification information to which it belongs, and sorting and displaying the files to be searched according to the weight score; 其中,计算每个待查找文件的权值分数的公式为:Wherein, the formula for calculating the weight score of each file to be searched is: Q=q+kn*fn Q=q+k n *f n Q为计算的每个待查找文件权值分数,q为每个待查找文件对应的权值基本值、n表示第n个待查找文件,n为大于0的整数,kn为预先根据分类信息设置的重要性因值、fn为第n个待查找文件对应的查找频率。Q is the calculated weight score of each file to be found, q is the basic weight value corresponding to each file to be found, n represents the nth file to be found, n is an integer greater than 0, and k n is the pre-according to the classification information Set the importance factor value, f n is the search frequency corresponding to the nth file to be searched. 2.如权利要求1所述的方法,其特征在于,在获取移动终端文件的存储路径之后,所述方法还包括:2. The method according to claim 1, characterized in that, after obtaining the storage path of the mobile terminal file, the method further comprises: 将获取的所述存储路径写入新的文件夹中,并将所述新的文件夹存储在移动终端的根目录下。Writing the acquired storage path into a new folder, and storing the new folder under the root directory of the mobile terminal. 3.如权利要求2所述的方法,其特征在于,所述方法进一步包括下述步骤:3. The method of claim 2, further comprising the steps of: 根据更新指令更新所存储的存储路径,所述更新指令包括由用户输入的更新启动命令触发,或者根据配置的更新时限自动触发。The stored storage path is updated according to an update instruction, the update instruction being triggered by an update start command input by a user, or automatically triggered according to a configured update time limit. 4.如权利要求3所述的方法,其特征在于,在根据更新指令更新所存储的存储路径之前,所述方法还包括:4. The method according to claim 3, wherein before updating the stored storage path according to the update instruction, the method further comprises: 预先配置所述存储路径的更新时限。The update time limit of the storage path is configured in advance. 5.一种移动终端文件查找的装置,其特征在于,所述装置包括:5. A device for mobile terminal file search, characterized in that the device comprises: 存储路径获取单元,用于获取移动终端文件的存储路径,所述存储路径指的是文件的绝对路径;A storage path acquisition unit, configured to acquire a storage path of the mobile terminal file, the storage path refers to the absolute path of the file; 索引建立单元,用于根据所述存储路径建立树型结构索引;an index building unit, configured to create a tree structure index according to the storage path; 信息接收单元,用于接收移动终端文件查找请求信息,所述查找请求信息中包含待查找文件的关键词信息;The information receiving unit is used to receive the mobile terminal file search request information, the search request information includes the keyword information of the file to be searched; 查找单元,用于在所述树型结构索引中查找所述关键词信息,获得该关键词信息对应文件的存储路径;A search unit, configured to search for the keyword information in the tree structure index, and obtain the storage path of the file corresponding to the keyword information; 显示单元,用于从所述对应文件的存储路径获取所述待查找文件,并将获取的所述待查找文件显示给用户;a display unit, configured to obtain the file to be searched from the storage path of the corresponding file, and display the obtained file to be searched to the user; 所述显示单元包括:The display unit includes: 信息获取模块,用于当获取的所述待查找文件有多个时,获取每个所述待查找文件的查找频率信息及所属分类信息;An information acquisition module, configured to obtain the search frequency information and the classification information of each of the files to be searched when there are multiple files to be searched; 显示模块,用于根据所述查找频率信息及所属分类信息,计算每个待查找文件的权值分数,并根据所述权值分数对所述待查找文件进行排序显示;其中,计算每个待查找文件的权值分数的公式为:A display module, configured to calculate the weight score of each file to be searched according to the search frequency information and the classification information, and sort and display the files to be searched according to the weight score; wherein, calculating the weight score of each file to be found The formula for finding the weight score of a file is: Q=q+kn*fn Q=q+k n *f n Q为计算的每个待查找文件权值分数,q为每个待查找文件对应的权值基本值、n表示第n个待查找文件,n为大于0的整数,kn为预先根据分类信息设置的重要性因值、fn为第n个待查找文件对应的查找频率。Q is the calculated weight score of each file to be found, q is the basic weight value corresponding to each file to be found, n represents the nth file to be found, n is an integer greater than 0, and k n is the pre-according to the classification information Set the importance factor value, f n is the search frequency corresponding to the nth file to be searched. 6.如权利要求5所述的装置,其特征在于,所述装置还包括:6. The device of claim 5, further comprising: 存储单元,用于将获取的所述存储路径写入新的文件夹中,并将所述新的文件夹存储在移动终端的根目录下。The storage unit is configured to write the obtained storage path into a new folder, and store the new folder under the root directory of the mobile terminal. 7.如权利要求6所述的装置,其特征在于,所述装置还包括:7. The device of claim 6, further comprising: 更新单元,用于根据更新指令更新所存储的存储路径;所述更新指令包括由用户输入的更新启动命令触发,或者根据配置的更新时限自动触发。The update unit is configured to update the stored storage path according to an update instruction; the update instruction includes being triggered by an update start command input by a user, or automatically triggered according to a configured update time limit. 8.如权利要求7所述的装置,其特征在于,所述装置还包括:8. The device according to claim 7, further comprising: 配置单元,用于预先配置所述存储路径的更新时限。The configuration unit is configured to pre-configure the update time limit of the storage path.
CN201310601361.7A 2013-11-22 2013-11-22 The method and device that a kind of mobile terminal document is searched Active CN103605758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310601361.7A CN103605758B (en) 2013-11-22 2013-11-22 The method and device that a kind of mobile terminal document is searched

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310601361.7A CN103605758B (en) 2013-11-22 2013-11-22 The method and device that a kind of mobile terminal document is searched

Publications (2)

Publication Number Publication Date
CN103605758A CN103605758A (en) 2014-02-26
CN103605758B true CN103605758B (en) 2017-09-08

Family

ID=50123980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310601361.7A Active CN103605758B (en) 2013-11-22 2013-11-22 The method and device that a kind of mobile terminal document is searched

Country Status (1)

Country Link
CN (1) CN103605758B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427767A (en) * 2018-03-28 2018-08-21 广州市创新互联网教育研究院 A kind of correlating method of knowledget opic and resource file

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978369B (en) * 2014-04-14 2020-02-18 腾讯科技(深圳)有限公司 File searching method and device
CN104239494B (en) * 2014-09-09 2018-02-23 广州华多网络科技有限公司 A kind of installation path searching method and system, auxiliary client
CN105653617B (en) * 2015-12-22 2019-02-26 广州视源电子科技股份有限公司 Method and system for rapidly displaying files by multimedia file manager
CN107122949B (en) * 2016-02-25 2021-02-26 阿里巴巴集团控股有限公司 E-mail screening method and device
CN105808690A (en) * 2016-03-03 2016-07-27 深圳市创想天空科技股份有限公司 Directory displaying system and method
CN106202325A (en) * 2016-07-01 2016-12-07 北京金山安全软件有限公司 File processing method and device based on social software and mobile terminal
CN106528594A (en) * 2016-09-20 2017-03-22 海信集团有限公司 Downloaded file querying method and device
CN106528021A (en) * 2016-10-27 2017-03-22 三星电子(中国)研发中心 Screen content sharing method and apparatus
CN107291943B (en) * 2017-07-11 2020-09-22 苏州浪潮智能科技有限公司 A kind of picture search method and device
CN108038114B (en) * 2017-10-17 2022-03-01 Oppo广东移动通信有限公司 Path query method, terminal and computer readable storage medium
CN107967322B (en) * 2017-11-23 2021-09-21 努比亚技术有限公司 File classification display method, mobile terminal and computer readable storage medium
CN111221781B (en) * 2018-11-27 2023-05-02 杭州海康威视系统技术有限公司 A data search method, device, electronic equipment and system
CN112329281B (en) * 2019-07-31 2024-10-29 比亚迪股份有限公司 File error checking method and device, electronic equipment and storage medium
CN110471907A (en) * 2019-08-21 2019-11-19 小胡杨信息技术(武汉)有限公司 A kind of higher Computer Database data processing method of data-handling efficiency
CN112783838A (en) * 2019-11-07 2021-05-11 北京奇虎科技有限公司 Method and device for matching local code file with code server path
CN114398321A (en) * 2022-01-05 2022-04-26 北京百度网讯科技有限公司 Method and device for displaying folder and electronic equipment
CN115361378A (en) * 2022-08-19 2022-11-18 平安银行股份有限公司 Test environment file search method and its system, computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5412807A (en) * 1992-08-20 1995-05-02 Microsoft Corporation System and method for text searching using an n-ary search tree
CN101097578A (en) * 2007-06-07 2008-01-02 北京金山软件有限公司 A network resource retrieval method and system
CN101398844A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Resource file searching method and mobile terminal
CN101916164A (en) * 2010-08-11 2010-12-15 中兴通讯股份有限公司 Mobile terminal and file browsing method implemented by same
CN102982137A (en) * 2012-11-16 2013-03-20 北京百度网讯科技有限公司 Method and system and device for resource searching
CN103309864A (en) * 2012-03-07 2013-09-18 腾讯科技(深圳)有限公司 Method, device and system for displaying search result

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5412807A (en) * 1992-08-20 1995-05-02 Microsoft Corporation System and method for text searching using an n-ary search tree
CN101097578A (en) * 2007-06-07 2008-01-02 北京金山软件有限公司 A network resource retrieval method and system
CN101398844A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Resource file searching method and mobile terminal
CN101916164A (en) * 2010-08-11 2010-12-15 中兴通讯股份有限公司 Mobile terminal and file browsing method implemented by same
CN103309864A (en) * 2012-03-07 2013-09-18 腾讯科技(深圳)有限公司 Method, device and system for displaying search result
CN102982137A (en) * 2012-11-16 2013-03-20 北京百度网讯科技有限公司 Method and system and device for resource searching

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427767A (en) * 2018-03-28 2018-08-21 广州市创新互联网教育研究院 A kind of correlating method of knowledget opic and resource file
CN108427767B (en) * 2018-03-28 2020-09-29 广州市创新互联网教育研究院 Method for associating knowledge theme with resource file

Also Published As

Publication number Publication date
CN103605758A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
CN103605758B (en) The method and device that a kind of mobile terminal document is searched
CN103902632B (en) The method, apparatus and electronic equipment of file system are built in key assignments storage system
US9218350B2 (en) Searching and placeholders
US9697258B2 (en) Supporting enhanced content searches in an online content-management system
US8886598B1 (en) Tag-based synchronization
US8775426B2 (en) Interface to navigate and search a concept hierarchy
CN103282899B (en) The storage method of data, access method and device in file system
AU2021266178B2 (en) Custom metadata tag inheritance based on a filesystem directory tree or object storage bucket
EP2527965A1 (en) Mobile terminal and file browsing method implemented by mobile terminal
US20080033903A1 (en) Methods and apparatuses for using location information
KR101510973B1 (en) Methods for indexing and searching based on language locale
CN103973731B (en) The recycle bin management method and device of a kind of cloud storage
CN103257993A (en) File list generation method, system, and program, and file list generation device
CN107291949B (en) Information search method and device
CN102831224B (en) Generation method and device are suggested in a kind of method for building up in data directory library, search
CN103246718B (en) File access method, device and equipment
CN103745004B (en) A kind of desktop searching method based on cloud computing, Cloud Server and terminal
CN117112496A (en) Management method, electronic device and readable storage medium of local file system
CN108804625A (en) A kind of optimization method, device and the computer equipment of LSM trees
CN102831240A (en) Storage method and storage structure of extensible metadata documents
EP3213234A1 (en) Location-aware data access
US20140208057A1 (en) Storage card partition system and method
US20150169760A1 (en) Using Social Communities to Improve Search Results
CN117349236B (en) File reading method, device, equipment and storage medium
WO2025139940A1 (en) Patent image retrieval system, method and apparatus based on deep learning

Legal Events

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