CN102902768B - File content searching and displaying method and system - Google Patents
File content searching and displaying method and system Download PDFInfo
- Publication number
- CN102902768B CN102902768B CN201210362735.XA CN201210362735A CN102902768B CN 102902768 B CN102902768 B CN 102902768B CN 201210362735 A CN201210362735 A CN 201210362735A CN 102902768 B CN102902768 B CN 102902768B
- Authority
- CN
- China
- Prior art keywords
- file
- character string
- chained list
- designated character
- document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of file content searching and displaying method and system, and the method comprises the following steps: receiving the search condition that user is inputted, described search condition includes: file directory, designated character string;Under described file directory, recursive search meets the file of described search condition;Retrieve described designated character string when often searching a file in this document, generate the information record chained list corresponding with this document;Described information record chained list includes in this document containing all page numbers of described designated character string, the record of line number;Perform open file operation when receiving the order checking file of user's input, be automatically positioned corresponding page number and line number by the information record chained list corresponding with this document and be highlighted designated character string.The method and system of the present invention achieve the quick location of file content, it is possible to the string content under a key retrieval specified file catalogue, solve the waste problem of user time, enhance Consumer's Experience.
Description
Technical field
The present invention relates to file search field, particularly relate to a kind of file content searching and displaying method and
Plant file content search display system.
Background technology
At present, search and the display of traditional file content are carried out separately, and the most first scan for then
Show again.That is: when file content is searched for, user input search condition and carry out preliminary search, will
The All Files comprising designated character string all is enumerated out, and file content search terminates.Now, if user
Think to check the file content corresponding to designated character string further, then need to open the file searched, and at this
The most once searching in file, this is the display of file content.
It is to say, traditional file content searching and displaying method, need altogether to carry out twice search behaviour
Work could realize the real purpose of user, so wastes the time of user, brings bad to user
Experience.
Summary of the invention
Based on this, it is necessary to for the problem wasting user time in above-mentioned traditional method, it is provided that a kind of file
Content search display packing and system.
For achieving the above object, the present invention adopts the following technical scheme that:
A kind of file content searching and displaying method, comprises the following steps:
Receiving the search condition that user is inputted, described search condition includes: file directory, designated character string;
Under described file directory, recursive search meets the file of described search condition;
Retrieve described designated character string when often searching a file in this document, generate relative with this document
The information record chained list answered;Described information record chained list includes the institute in this document containing described designated character string
There is the record of page number, line number;
When receive user input the order checking file time perform open file operation, by with this document
Corresponding information record chained list is automatically positioned corresponding page number and line number and is highlighted designated character string.
A kind of file content search display system, including:
Receiver module, for receiving the search condition that user is inputted, described search condition includes: file mesh
Record, designated character string;
Search module, meets the file of described search condition for recursive search under described file directory;
Chained list generation module, retrieves described designated character string during for often searching a file in this document,
Generate the information record chained list corresponding with this document;Described information record chained list includes in this document containing
State all page numbers of designated character string, the record of line number;
Perform module, for performing open file operation when receiving the order checking file of user's input,
It is automatically positioned corresponding page number and line number by the information record chained list corresponding with this document and is highlighted
Designated character string.
By above scheme it can be seen that the file content searching and displaying method of the present invention and system, first pass through
Generate the information record chained list corresponding with this document when searching a file, record each search condition
The position of middle appointment character string;Then when user needs to check certain Search Results, according to information record chain
Table is automatically positioned page number and the line number of correspondence, it is achieved thereby that the quick location of file content, really realizes
String content under one key retrieval specified file catalogue, solves and needs twice search institute in traditional method
The waste problem of the user time brought, enhances Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the present invention a kind of file content searching and displaying method;
Fig. 2 is file type API organizational structure schematic diagram;
Fig. 3 is the structural representation of information record chained list;
Fig. 4 is the structural representation of a kind of file content of present invention search display system.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment, technical scheme is further described.
Shown in Figure 1, a kind of file content searching and displaying method, comprise the steps:
Step S101, receives the search condition that user is inputted, and described search condition includes: file directory (dir),
Designated character string (str).
As a preferable embodiment, the input user selects interface, it is also possible to arrange described search bar
Part includes another one condition: file type set (fset).Traditional file content searching method, can only
Support the content search of limited format file, there may be when in use and can not support all document contents
The problem of search.The present invention then can select the set using plural file type as searching
Rope condition, therefore efficiently solves the problems referred to above, and can the effective certain form of file of filter operation (example
As currently only selected to scan in the file of DOC, XLS type), it is truly realized and selects according to user
Select the purpose supporting various formatted file content search.
It should be noted that above-mentioned file type set is in addition to being arranged to plural file type, also
It is to could be arranged to select a single file type (as individually selected to carry out in the file of DOC type
Search, or individually select to scan in the file of XLS type) it is used as search condition.
In the present invention, the process of all types of file contents search location is identical.For convenience, below in search
Condition select the file of file type set DOC type and XLS type illustrate as a example by fset.
Step S102, under described file directory dir, recursive search meets file (the i.e. institute of described search condition
The file having type to be fset), subsequently into step S103.The process of above-mentioned recursive search is known technology,
It will not go into details herein.
Step S103, when often searching a file, retrieves described designated character string in this document, generates
The information record chained list corresponding with this document.Repeat this step, until file directory dir recursive search
Complete, the most just enter step S104.It should be understood that described information record chained list includes in this document
All page numbers containing described designated character string, the record of line number.
As a preferable embodiment, the process of described generation information record chained list specifically may include that
Step S1031, develops a set of special API the most in advance to every kind of file type under operating system.Each literary composition
The special API of part type can self-developing, file type API organizational structure schematic diagram is shown in Figure 2,
I.e. for every kind of file type, such as common DOC type, XLS type, type PDF, ett type etc.
Equal corresponding a set of special API.By the special API that each file type is corresponding, the interior of the type file can be realized
Hold search and location.
It addition, above-mentioned exploitation special API must at least have a following function:
(1) designated character string can be retrieved from specified file, and return the information record chained list comprising this character string.
Described information record chained list includes that several nodes, each node all record and comprises described designated character string
Page number, line number, this information record list structure is shown in Figure 3.
(2) specified file can be opened according to the page number specified and line number, navigate to this page number and line number highlighted
Display designated character string.
Step S1032, after exploitation completes each special API and when searching a file, identification searches
The file type of file, calls the special API corresponding with this document type and generates described information record chained list.
Step S104, when receiving the order checking file of user's input, performs open file operation (i.e.
User is wanted the File Open checked), it is automatically positioned by the information record chained list corresponding with this document
Corresponding page number and line number are also highlighted designated character string.
As a preferable embodiment, the above-mentioned automatic positioning function present invention is special still through develop in advance
Realize with API.The most above-mentioned page number being automatically positioned correspondence and line number be highlighted designated character string
Process specifically may include that each nodes records in the information record chained list according to described correspondence comprise institute
State the page number of designated character string, line number, call the special API corresponding with the file type of opened file
It is automatically positioned the page number corresponding to each node and line number and is highlighted designated character string.
It addition, corresponding with above-mentioned a kind of file content searching and displaying method, the present invention also provides for a kind of literary composition
Part content search display system, as shown in Figure 4, including:
Receiver module 101, for receiving the search condition that user is inputted, described search condition includes: file
Catalogue, designated character string;
Search module 102, meets the file of described search condition for recursive search under described file directory;
Chained list generation module 103, retrieves described designated character during for often searching a file in this document
String, generates the information record chained list corresponding with this document;Described information record chained list includes containing in this document
There are all page numbers of described designated character string, the record of line number;
Perform module 104, open file behaviour for the execution when receiving the order checking file of user's input
Make, be automatically positioned corresponding page number and line number highlighted by the information record chained list corresponding with this document
Display designated character string.
As a preferable embodiment, described search condition can also include: file type set.This
The set using plural file type can be selected in bright simultaneously as search condition, the most currently select
Select DOC type, XLS type file in scan for simultaneously, so can effectively filter operation
Certain form of file, real realization selects to support the search of various formatted file content according to user.
As a preferable embodiment, described chained list generation module 103 may include that
Special API development module, for every kind of file type under operating system developed the most in advance a set of specially
Use API;
Special API calling module, for when searching a file, identifies the files classes searching file
Type, calls the special API corresponding with this document type and generates described information record chained list.
As a preferable embodiment, described execution module 104 can include location and display module, uses
The page comprising described designated character string of each nodes records in the information record chained list according to described correspondence
Number, line number, call the special API corresponding with the file type of opened file to be automatically positioned each node
Corresponding page number and line number are also highlighted designated character string.
Other technical characteristic of a kind of file content search display system of the present invention and above-mentioned a kind of file content
Searching and displaying method is identical, and it will not go into details herein.
By above scheme it can be seen that the file content searching and displaying method of the present invention and system, the most logical
Cross the information record chained list that the generation when searching a file is corresponding with this document, record each search bar
Part is specified the position of character string;Then when user needs to check certain Search Results, according to information record
Chained list is automatically positioned page number and the line number of correspondence, it is achieved thereby that the quick location of file content, really real
Show the string content under a key retrieval specified file catalogue, solved and traditional method needs twice search
The waste problem of the user time brought, enhances Consumer's Experience.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed,
But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area
Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and
Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended
Claim is as the criterion.
Claims (6)
1. a file content searching and displaying method, it is characterised in that comprise the following steps:
Receiving the search condition that user is inputted, described search condition includes: file directory, designated character string;
Under described file directory, recursive search meets the file of described search condition;
Retrieve described designated character string when often searching a file in this document, generate relative with this document
The information record chained list answered;Described information record chained list includes the institute in this document containing described designated character string
There is the record of page number, line number;The process of described generation information record chained list specifically includes:
Every kind of file type under operating system is developed a set of special API the most in advance;
When searching a file, identify the file type searching file, call and this document type phase
Corresponding special API generates described information record chained list;
When receive user input the order checking file time perform open file operation, by with this document
Corresponding information record chained list is automatically positioned corresponding page number and line number and is highlighted designated character string.
File content searching and displaying method the most according to claim 1, it is characterised in that described search
Condition also includes: file type set.
File content searching and displaying method the most according to claim 1, it is characterised in that described automatically
Navigate to the page number of correspondence and line number and be highlighted the process of designated character string and specifically include: according to described right
In the information record chained list answered each nodes records comprise the page number of described designated character string, line number, call
The special API corresponding with the file type of opened file be automatically positioned the page number corresponding to each node and
Line number is also highlighted designated character string.
4. a file content search display system, it is characterised in that including:
Receiver module, for receiving the search condition that user is inputted, described search condition includes: file mesh
Record, designated character string;
Search module, meets the file of described search condition for recursive search under described file directory;
Chained list generation module, retrieves described designated character string during for often searching a file in this document,
Generate the information record chained list corresponding with this document;Described information record chained list includes in this document containing
State all page numbers of designated character string, the record of line number;Described chained list generation module includes:
Special API development module, for every kind of file type under operating system developed the most in advance a set of specially
Use API;
Special API calling module, for when searching a file, identifies the files classes searching file
Type, calls the special API corresponding with this document type and generates described information record chained list;
Perform module, for performing open file operation when receiving the order checking file of user's input,
It is automatically positioned corresponding page number and line number by the information record chained list corresponding with this document and is highlighted
Designated character string.
File content the most according to claim 4 search display system, it is characterised in that described search
Condition also includes: file type set.
File content the most according to claim 4 search display system, it is characterised in that described execution
Module includes location and display module, for according to each nodes records in the information record chained list of described correspondence
Comprise the page number of described designated character string, line number, call corresponding with the file type of opened file
Special API is automatically positioned the page number corresponding to each node and line number and is highlighted designated character string.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210362735.XA CN102902768B (en) | 2012-09-24 | 2012-09-24 | File content searching and displaying method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210362735.XA CN102902768B (en) | 2012-09-24 | 2012-09-24 | File content searching and displaying method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102902768A CN102902768A (en) | 2013-01-30 |
CN102902768B true CN102902768B (en) | 2016-09-28 |
Family
ID=47575000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210362735.XA Expired - Fee Related CN102902768B (en) | 2012-09-24 | 2012-09-24 | File content searching and displaying method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102902768B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468591A (en) * | 2014-08-01 | 2016-04-06 | 中兴通讯股份有限公司 | Content searching method, device and terminal |
CN105808535A (en) * | 2014-12-29 | 2016-07-27 | 上海淳洲电子科技有限公司 | An ini file reading method |
CN106326224B (en) * | 2015-06-16 | 2019-12-27 | 珠海金山办公软件有限公司 | File searching method and device |
CN107562835B (en) * | 2017-08-23 | 2020-03-27 | Oppo广东移动通信有限公司 | File searching method and device, mobile terminal and computer readable storage medium |
CN108460155A (en) * | 2018-03-28 | 2018-08-28 | 深信服科技股份有限公司 | A kind of file identification method, device, equipment and storage medium |
CN111177098B (en) * | 2019-12-27 | 2023-09-22 | 中信百信银行股份有限公司 | Method and system for checking system log context |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758248A (en) * | 2004-10-05 | 2006-04-12 | 微软公司 | Systems, methods, and interfaces for providing personalized search and information access |
CN101093545A (en) * | 2006-06-22 | 2007-12-26 | 王宏源 | Method for carrying out highlighted marking searching words on snapshot pictures of ancient books in document retrieval system for ancient books |
-
2012
- 2012-09-24 CN CN201210362735.XA patent/CN102902768B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758248A (en) * | 2004-10-05 | 2006-04-12 | 微软公司 | Systems, methods, and interfaces for providing personalized search and information access |
CN101093545A (en) * | 2006-06-22 | 2007-12-26 | 王宏源 | Method for carrying out highlighted marking searching words on snapshot pictures of ancient books in document retrieval system for ancient books |
Non-Patent Citations (1)
Title |
---|
《在Windows7下实现全文搜索pdf文件的方法》;烈火学院;《http://www.veryhuo.com/a/view/44185.html》;20120106;图1、图3及图3的上方两段文字 * |
Also Published As
Publication number | Publication date |
---|---|
CN102902768A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102902768B (en) | File content searching and displaying method and system | |
KR101501865B1 (en) | Tokenized search suggestions | |
US8140534B2 (en) | System and method for sorting attachments in an integrated information management application | |
CN103246638A (en) | Information pasting method and device | |
JP4911438B2 (en) | Operation monitoring device | |
WO2010076168A1 (en) | Computer desktop organization via magnet icons | |
CN102306080A (en) | Touch electronic device and icon moving method | |
CN105224674B (en) | A kind of mobile device-based intelligent search method and system | |
CN102929926A (en) | Word-taking search method and device based on browsed contents | |
CN101221504B (en) | Test script scheduling executing system | |
CN102790727A (en) | Method and system for dynamically pushing personal labels of users | |
CN102737022A (en) | Method and device for acquiring and searching relevant knowledge information | |
CN103914488A (en) | Document collection, identification, association, search and display system | |
CN103530386B (en) | The edit methods and browser of browsing device net page | |
KR101287371B1 (en) | Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same | |
CN102937948B (en) | A kind of image, text and data edit methods of mobile terminal | |
CN103914487A (en) | Document collection, identification and association system | |
CN103218118A (en) | File processing method and system under multi-level directory and mobile terminal | |
CN103123651A (en) | Method of rapidly searching multiple same-kind paper, device and mobile equipment | |
CN103049168B (en) | A kind of disposal route of address list data, device and equipment | |
CN103905445A (en) | Table data display method and device | |
CN106919593A (en) | A kind of method and apparatus of search | |
CN102945113A (en) | Method for replacing character by input method and client | |
CN105184550B (en) | Manage method, server and the system of waiting data | |
CN105955586A (en) | Method and apparatus for displaying definition of keyword in terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233 Patentee after: VTRON GROUP Co.,Ltd. Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No. Patentee before: VTRON TECHNOLOGIES Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160928 Termination date: 20210924 |