CN105069175A - Information retrieval method and server based on version control system - Google Patents

Information retrieval method and server based on version control system Download PDF

Info

Publication number
CN105069175A
CN105069175A CN201510599519.0A CN201510599519A CN105069175A CN 105069175 A CN105069175 A CN 105069175A CN 201510599519 A CN201510599519 A CN 201510599519A CN 105069175 A CN105069175 A CN 105069175A
Authority
CN
China
Prior art keywords
retrieval
index
result
outcome document
outcome
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
CN201510599519.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.)
Beijing Forever Technology Co Ltd
Original Assignee
Beijing Forever Technology 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 Beijing Forever Technology Co Ltd filed Critical Beijing Forever Technology Co Ltd
Priority to CN201510599519.0A priority Critical patent/CN105069175A/en
Publication of CN105069175A publication Critical patent/CN105069175A/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/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The embodiment of the invention provides an information retrieval method and a server based on a version control system. The method comprises the following steps: presetting indexes of contents in all achievement files to obtain index information; obtaining retrieval key information submitted by a user; determining that the contents of the achievement files contain the index of the retrieval key information according to the index information; generating a retrieval result return page according to the determined index, and returning the retrieval result return page to the user so that the user can position the achievement file with the retrieval key information in the content according to the retrieval result return page. The embodiment of the invention further provides a retrieval function for the content of the achievement file, and the user can position the achievement file with the retrieval key information in the content in a retrieval way, so that the complexity of the achievement file access process is reduced.

Description

A kind of information retrieval method based on version control system and server
Technical field
The present invention relates to technical field of information processing, be specifically related to a kind of information retrieval method based on version control system and server.
Background technology
Version control system is in code development, test or other knowledge creativity type courses of work, the instrument of conventional management performance file, the effective management to Outcome Documents such as software document, source code, references can be realized by version control system, prevent the loss of Outcome Document historical data, realize the concentrated Sharing Management of the Outcome Document to reflection knowledge production; Wherein, SVN (Subversion, the version control system of open source code) is the version control system comparatively commonly used.
At present, Outcome Document is mainly stored in the achievement warehouse that version control system provides, and version control system, with the Outcome Document in the frame mode management performance warehouse of directory tree, can give expression to the store path of Outcome Document in achievement warehouse by directory tree; When user needs to access a certain Outcome Document, can the directory tree store path of this Outcome Document of expressing, search out this Outcome Document, realize the access to this Outcome Document;
As the store path of the Outcome Document of filename 1, being expressed as in directory tree: warehouse title 1/ directory name 1/ filename 1; Then when the Outcome Document of Access Filename 1, first need access the file of warehouse title 1, then under the file of warehouse title 1, access the sub-folder of directory name 1, so in the sub-folder of directory name 1 Outcome Document of Access Filename 1.
Can find out, the existing mode based on version control system access Outcome Document, need user according to directory tree, successively access the file at Outcome Document place, just can search out the Outcome Document needing access, the access process of Outcome Document is comparatively complicated; And along with the passing of version control system service time, the structure of directory tree by becoming increasingly complex, the store path of Outcome Document will be more and more darker, this make the access of Outcome Document more complicated, bother.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of information retrieval method based on version control system and server, to locate Outcome Document by the mode of retrieval, for the complexity reducing achievement file access process provides possibility.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
Based on an information retrieval method for version control system, pre-set the index of content in each Outcome Document, obtain index information; Described method comprises:
Obtain the retrieval key message that user submits to;
According to described index information, determine the index in the content of Outcome Document with described retrieval key message;
According to determined index, generate result for retrieval back page, return described result for retrieval back page to user, so that user is according to result for retrieval back page, there is in locating content the Outcome Document of described retrieval key message.
Wherein, the index of content in each Outcome Document is set, obtains index information and comprise:
The directory tree in traversal achievement warehouse, reads the Outcome Document under each store path;
Full-text search is carried out to read each Outcome Document, according to the full-text search result of each Outcome Document, generates the index of content in each Outcome Document, obtain index information.
Wherein, described index record is fruitful the content of file and the corresponding relation of the store path of Outcome Document.
Wherein, described according to determined index, generate result for retrieval back page and comprise:
Obtain the title of Outcome Document corresponding to determined index, and there is in Outcome Document the synopsis of described retrieval key message;
With the title of obtained Outcome Document and synopsis, generate the result for retrieval of Outcome Document, the store path that result for retrieval links corresponding Outcome Document is set;
The result for retrieval of comprehensive each Outcome Document, obtains result for retrieval back page.
Wherein, described method also comprises:
If detect, user clicks the result for retrieval in result for retrieval back page, then determine the store path that clicked result for retrieval links, and by determined store path, opens the Outcome Document that clicked result for retrieval is corresponding.
Wherein, described according to described index information, determine that the index in the content of Outcome Document with described retrieval key message comprises:
The content recorded by each index is carried out consistance with described retrieval key message and is mated;
Determine the index that content is consistent with described retrieval key message.
Wherein, describedly full-text search carried out to read each Outcome Document comprise:
According to the file type of Outcome Document, open Outcome Document with the unfolding mode of correspondence;
Full-text search is carried out to opened Outcome Document;
The described index information that obtains comprises:
In comprehensive each Outcome Document, the index of content, obtains index set, and described indexed set is combined into obtained index information; Wherein, an Outcome Document is to there being at least one index.
The embodiment of the present invention also provides a kind of server, comprising:
Pre-setting module, for pre-setting the index of content in each Outcome Document, obtaining index information;
Key message acquisition module, for obtaining the retrieval key message that user submits to;
Index determination module, for according to described index information, determines the index in the content of Outcome Document with described retrieval key message;
Result for retrieval returns module, for according to determined index, generate result for retrieval back page, return described result for retrieval back page to user, so that user is according to result for retrieval back page, there is in locating content the Outcome Document of described retrieval key message.
Wherein, pre-set module described in comprise:
Traversal Unit, for traveling through the directory tree in achievement warehouse, reads the Outcome Document under each store path;
Index generation unit, for carrying out full-text search to read each Outcome Document, according to the full-text search result of each Outcome Document, generating the index of content in each Outcome Document, obtaining index information.
Wherein, described index record is fruitful the content of file and the corresponding relation of the store path of Outcome Document;
Described result for retrieval returns module and comprises:
Result acquisition module, for obtaining the title of Outcome Document corresponding to determined index, and has the synopsis of described retrieval key message in Outcome Document;
Result generates and arranges module, for the title of obtained Outcome Document and synopsis, generates the result for retrieval of Outcome Document, arranges the store path that result for retrieval links corresponding Outcome Document;
Result integration module, for the result for retrieval of comprehensive each Outcome Document, obtains result for retrieval back page;
Described server also comprises:
Module is opened in click, if for detecting that user clicks the result for retrieval in result for retrieval back page, then determine the store path that clicked result for retrieval links, by determined store path, open the Outcome Document that clicked result for retrieval is corresponding.
Based on technique scheme, the information retrieval method based on version control system that the embodiment of the present invention provides, server can pre-set the index of content in each Outcome Document, obtains index information; When user needs the Outcome Document in retrieval of content with retrieval key message, user can submit retrieval key message to server, server is after getting retrieval key message, can according to the described index information pre-set, determine the index in the content of Outcome Document with described retrieval key message, thus according to determined index, generate result for retrieval back page, return described result for retrieval back page to user; By result for retrieval back page, user can navigate in content the Outcome Document with described retrieval key message, searches out the Outcome Document needing access.Can find out, the information retrieval method based on version control system that the embodiment of the present invention provides, provide the search function of Outcome Document content, user navigates in content the Outcome Document with retrieval key message by the mode of retrieval, for easy the searching out of user needs the Outcome Document of access to provide possibility, the complexity of Outcome Document access process can be reduced.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of the information retrieval method based on version control system that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram that the index of content in Outcome Document is set that Fig. 2 provides for the embodiment of the present invention;
The method flow diagram read each Outcome Document being carried out to full-text search that Fig. 3 provides for the embodiment of the present invention;
The method flow diagram of the generation result for retrieval back page that Fig. 4 provides for the embodiment of the present invention;
Another process flow diagram of the information retrieval method based on version control system that Fig. 5 provides for the embodiment of the present invention;
The structured flowchart of the server that Fig. 6 provides for the embodiment of the present invention;
The structured flowchart pre-setting module that Fig. 7 provides for the embodiment of the present invention;
Fig. 8 returns the structured flowchart of module for result for retrieval that the embodiment of the present invention provides;
Another structured flowchart of the server that Fig. 9 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provide based in the information retrieval method of version control system, version control system is still with the Outcome Document in the frame mode management performance warehouse of directory tree, but the embodiment of the present invention with the addition of the function by retrieval location Outcome Document;
On this basis, the embodiment of the present invention need pre-set the index of content in each Outcome Document in achievement warehouse, and the index of content in comprehensive each Outcome Document, obtain index information; Thus when subsequent user retrieval location Outcome Document, the retrieval key message can submitted to according to the index search set up in advance and user has the Outcome Document of identical content, and by the result feedback searched to user;
In Outcome Document, the index of content can be the index of word in Outcome Document, or the index of word;
In the index situation of word, the embodiment of the present invention can carry out full-text search to Outcome Document, word in scanning Outcome Document, index (can be all set up index to each word in Outcome Document, also can be set up index to the partial words in Outcome Document) is set up to the word in Outcome Document; Due to for different language, word has different implications, and in such as English, word and word are actually unification, and in Chinese, word and word have very large difference, and therefore in actual applications, the visual difference for language of set-up mode of the index of word does concrete adjustment;
In the index situation of word, the embodiment of the present invention can carry out full-text search to Outcome Document, word in scanning Outcome Document, index (can be all set up index to each word in Outcome Document, also can be set up index to the part word in Outcome Document) is set up to the word in Outcome Document; Because word is basic semantic unit, set up index according to word, different semantic division can be realized, and can synonym be processed, in actual applications, preferably adopt the index of word to set up mode.
Pre-setting the index of content in each Outcome Document, when obtaining index information, the embodiment of the present invention can perform method as shown in Figure 1, and the method can be applicable in server, by the retrieval of server Realizing Achievement file; Obviously, pre-set the index of content in each Outcome Document, obtain the process of index information, also perform in the server;
Server herein can be the server of version control system, also can be different from the server of version control system, but there is the server of data interaction with the server of version control system;
The process flow diagram of the information retrieval method based on version control system that Fig. 1 provides for the embodiment of the present invention, with reference to Fig. 1, the method can comprise:
The retrieval key message that step S100, acquisition user submit to;
The embodiment of the present invention can provide search interface, so that user operation, realizes the input of user to retrieval key message;
Search interface provides the data interaction interface with server, the retrieval key message that user inputs can be uploaded onto the server, so that server gets the retrieval key message that user submits to; Search interface can be arranged on the user terminals such as computing machine;
Optionally, retrieving key message can be keyword or key word.
Step S110, according to described index information, determine the index in the content of Outcome Document with described retrieval key message;
Because early stage has pre-set the index of content in each Outcome Document, according to the index of content in each Outcome Document, the embodiment of the present invention can find the index that the retrieval key message submitted to user has identical content, thus navigates to the Outcome Document with the retrieval key message identical content submitted to user.
Step S120, according to determined index, generate result for retrieval back page, return described result for retrieval back page to user, so that user is according to result for retrieval back page, there is in locating content the Outcome Document of described retrieval key message.
The determined index with described retrieval key message may have multiple, and for each determined index, the embodiment of the present invention can get the content of the Outcome Document with described retrieval key message according to index, and the memory address at Outcome Document place; To there is the content of Outcome Document of described retrieval key message and the memory address of correspondence as a result for retrieval; Each result for retrieval comprehensive can generate result for retrieval back page;
By returning (as returned to search interface) result for retrieval back page to user, user can be made to know in the content of which Outcome Document there is described retrieval key message, thus the content of the Outcome Document shown by result for retrieval back page, search out the Outcome Document needing access, remove from according to directory tree, successively access the file at Outcome Document place, find the step of the Outcome Document needing access, for easy searching out needs the Outcome Document of access to provide possibility.
The information retrieval method based on version control system that the embodiment of the present invention provides, server can pre-set the index of content in each Outcome Document, obtains index information; When user needs the Outcome Document in retrieval of content with retrieval key message, user can submit retrieval key message to server, server is after getting retrieval key message, can according to the described index information pre-set, determine the index in the content of Outcome Document with described retrieval key message, thus according to determined index, generate result for retrieval back page, return described result for retrieval back page to user; By result for retrieval back page, user can navigate in content the Outcome Document with described retrieval key message, searches out the Outcome Document needing access.Can find out, the information retrieval method based on version control system that the embodiment of the present invention provides, provide the search function of Outcome Document content, user navigates in content the Outcome Document with retrieval key message by the mode of retrieval, for easy the searching out of user needs the Outcome Document of access to provide possibility, the complexity of Outcome Document access process can be reduced.
Optionally, version control system is still with the Outcome Document in the frame mode management performance warehouse of directory tree, and the embodiment of the present invention, by reading each Outcome Document under the store path represented by directory tree, realizes the foundation of the index of content in each Outcome Document;
Fig. 2 shows the method flow diagram arranging the index of content in Outcome Document that the embodiment of the present invention provides, and with reference to Fig. 2, the method can comprise:
The directory tree in step S200, traversal achievement warehouse, reads the Outcome Document under each store path;
Directory tree is a tree structure, and the leaf node of directory tree is a file or file, and the file of leaf node or file may be exactly an Outcome Document; Therefore the file of leaf node or store path corresponding to file, may be exactly the store path of Outcome Document in achievement warehouse;
By traveling through the directory tree in achievement warehouse, the embodiment of the present invention can determine that each store path with Outcome Document is (as the Outcome Document mark by carrying in the leaf node of directory tree, determine to have the store path that the leaf node of Outcome Document mark is corresponding, the leaf node carrying Outcome Document mark represents that correspondence is fruitful the leaf node of file), thus read the Outcome Document under each store path.
Step S210, full-text search is carried out to read each Outcome Document, according to the full-text search result of each Outcome Document, generate the index of content in each Outcome Document, obtain index information.
Optionally, global search technology can adopt Lucene (Lucene be one efficiently, the full-text search storehouse based on Java); Or full-text search engine, as Sphinx (full-text search engine based on SQL); Or C++ search engine, as Xapian (the full-text search program of writing with C++) etc.;
Optionally, in Outcome Document, the index of content can be the index of word, or the index of word;
After the index obtaining content in each Outcome Document, the embodiment of the present invention can the index of content in comprehensive each Outcome Document, and obtain index set, this index set can be considered obtained index information.
Optionally, when carrying out full-text search to Outcome Document, the embodiment of the present invention can, according to the file type of Outcome Document, select corresponding unfolding mode to open Outcome Document, to get the content in Outcome Document, realizes the full-text search to Outcome Document;
Fig. 3 shows the method flow diagram read each Outcome Document being carried out to full-text search that the embodiment of the present invention provides, and with reference to Fig. 3, the method can comprise:
Step S300, file type according to Outcome Document, open Outcome Document with the unfolding mode of correspondence;
Optionally, file type is as word, excel, source code file etc.
Step S310, full-text search is carried out to opened Outcome Document.
Full-text search mode can adopt Lucene, or full-text search engine, or C++ search engine etc.
Optionally, the recordable information of index comprises: the content of Outcome Document, and the corresponding relation of the store path of Outcome Document;
The embodiment of the present invention is according to index information, when determining the index in the content of Outcome Document with described retrieval key message, can by the content of the Outcome Document of index record each in index information, carry out content consistency with described retrieval key message to mate, thus determine the index that content is consistent with described retrieval key message;
Corresponding, after there is the index of described retrieval key message in the content determining Outcome Document, the embodiment of the present invention can the store path of Outcome Document indicated by determined index, get the title of Outcome Document corresponding to determined index, and there is in Outcome Document the synopsis (synopsis can be the paragraph in Outcome Document with described retrieval key message, or at least in short etc.) of described retrieval key message; Thus can by the title of Outcome Document and synopsis, generate the result for retrieval that Outcome Document is corresponding, and the store path that result for retrieval links corresponding Outcome Document is set, make follow-up when showing result for retrieval, the store path that user links by result for retrieval, navigates to the Outcome Document needing access; Optionally, return to the result for retrieval back page of user, comprehensively can be obtained by the result for retrieval of each Outcome Document (result for retrieval of the Outcome Document namely indicated by determined index);
Fig. 4 shows the method flow diagram of the generation result for retrieval back page that the embodiment of the present invention provides, and with reference to Fig. 4, the method can comprise:
Step S400, obtain the title of Outcome Document corresponding to determined index, and there is in Outcome Document the synopsis of described retrieval key message;
Step S410, with the title of obtained Outcome Document and synopsis, generate the result for retrieval of Outcome Document, the store path that result for retrieval links corresponding Outcome Document is set;
The result for retrieval of step S420, comprehensive each Outcome Document, obtains result for retrieval back page.
Preferably, Fig. 5 shows another process flow diagram of the information retrieval method based on version control system that the embodiment of the present invention provides, and method establishment shown in Fig. 5 is pre-setting the index of content in each Outcome Document, obtains on the basis of index information; Wherein, index record is fruitful the content of file and the corresponding relation of the store path of Outcome Document;
With reference to Fig. 5, the method can comprise:
The retrieval key message that step S500, acquisition user submit to;
Step S510, the content recorded by each index are carried out consistance with described retrieval key message and are mated;
Step S520, determine the index that content is consistent with described retrieval key message;
Step S530, obtain the title of Outcome Document corresponding to determined index, and there is in Outcome Document the synopsis of described retrieval key message;
Step S540, with the title of obtained Outcome Document and synopsis, generate the result for retrieval of Outcome Document, the store path that result for retrieval links corresponding Outcome Document is set;
The result for retrieval of step S550, comprehensive each Outcome Document, obtains result for retrieval back page, returns described result for retrieval back page to user, so that user is according to result for retrieval back page, has the Outcome Document of described retrieval key message in locating content.
Optionally, after returning result for retrieval back page to user, user can search out according to result for retrieval back page the Outcome Document needing access; Concrete, user, by returned result for retrieval back page, observes title and the synopsis with the Outcome Document of described retrieval key message; When user is interested in a certain result for retrieval in result for retrieval back page, user can click this result for retrieval, now, server can determine the store path that clicked result for retrieval links, and then by this store path, open the Outcome Document that clicked result for retrieval is corresponding, realize the access of user to Outcome Document;
Corresponding, after server returns described result for retrieval back page to user, if server detects that the result for retrieval that user clicks in result for retrieval back page (can be the click information of user terminal to server upload user, server is made the click of user to result for retrieval to be detected), then determine the store path that clicked result for retrieval links, by determined store path, open the Outcome Document that clicked result for retrieval is corresponding.
The information retrieval method based on version control system that the embodiment of the present invention provides, provide the search function of Outcome Document content, user navigates in content the Outcome Document with retrieval key message by the mode of retrieval, for easy the searching out of user needs the Outcome Document of access to provide possibility, the complexity of Outcome Document access process can be reduced.
Be introduced the server that the embodiment of the present invention provides below, server described below can corresponding reference mutual to the information retrieval method of above-described version control system.
The structured flowchart of the server that Fig. 6 provides for the embodiment of the present invention, with reference to Fig. 6, this server can comprise:
Pre-setting module 100, for pre-setting the index of content in each Outcome Document, obtaining index information;
Key message acquisition module 200, for obtaining the retrieval key message that user submits to;
Index determination module 300, for according to described index information, determines the index in the content of Outcome Document with described retrieval key message;
Result for retrieval returns module 400, for according to determined index, generate result for retrieval back page, return described result for retrieval back page to user, so that user is according to result for retrieval back page, there is in locating content the Outcome Document of described retrieval key message.
Optionally, Fig. 7 shows a kind of alternate configurations pre-setting module 100 that the embodiment of the present invention provides, and with reference to Fig. 7, pre-setting module 100 can comprise:
Traversal Unit 110, for traveling through the directory tree in achievement warehouse, reads the Outcome Document under each store path;
Index generation unit 120, for carrying out full-text search to read each Outcome Document, according to the full-text search result of each Outcome Document, generating the index of content in each Outcome Document, obtaining index information.
Optionally, index can record the content of Outcome Document, and the corresponding relation of the store path of Outcome Document; The result for retrieval that Fig. 8 shows the embodiment of the present invention to be provided returns a kind of alternate configurations of module 400, and with reference to Fig. 8, result for retrieval returns module 400 and can comprise:
Result acquisition module 410, for obtaining the title of Outcome Document corresponding to determined index, and has the synopsis of described retrieval key message in Outcome Document;
Result generates and arranges module 420, for the title of obtained Outcome Document and synopsis, generates the result for retrieval of Outcome Document, arranges the store path that result for retrieval links corresponding Outcome Document;
Result integration module 430, for the result for retrieval of comprehensive each Outcome Document, obtains result for retrieval back page.
Optionally, return on the basis of module 400 at result for retrieval shown in Fig. 8, Fig. 9 shows another alternate configurations of the server that the embodiment of the present invention provides, and shown in composition graphs 6 and Fig. 9, this server can comprise:
Module 500 is opened in click, if for detecting that user clicks the result for retrieval in result for retrieval back page, then determine the store path that clicked result for retrieval links, by determined store path, open the Outcome Document that clicked result for retrieval is corresponding.
Optionally, index generation unit 120, when carrying out full-text search to read each Outcome Document, specifically can be used for, and according to the file type of Outcome Document, opens Outcome Document with the unfolding mode of correspondence; Full-text search is carried out to opened Outcome Document.
Index generation unit 120, can the index of content in comprehensive each Outcome Document after the index generating content in each Outcome Document, obtains index information;
Corresponding, index generation unit 120 can be used for specifically obtaining index information aspect, and in comprehensive each Outcome Document, the index of content, obtains index set, and described indexed set is combined into obtained index information; Wherein, an Outcome Document is to there being at least one index.
Optionally, index determination module 300 specifically can be used for, and the content recorded by each index is carried out consistance with described retrieval key message and mated; Determine the index that content is consistent with described retrieval key message.
The server that the embodiment of the present invention provides can be the server of version control system, also can be different from version control system server, but there is the server of data interaction with version control system server; The server that the embodiment of the present invention provides provides the search function of Outcome Document content, user navigates in content the Outcome Document with retrieval key message by the mode of retrieval, for easy the searching out of user needs the Outcome Document of access to provide possibility, the complexity of Outcome Document access process can be reduced.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. based on an information retrieval method for version control system, it is characterized in that, pre-set the index of content in each Outcome Document, obtain index information; Described method comprises:
Obtain the retrieval key message that user submits to;
According to described index information, determine the index in the content of Outcome Document with described retrieval key message;
According to determined index, generate result for retrieval back page, return described result for retrieval back page to user, so that user is according to result for retrieval back page, there is in locating content the Outcome Document of described retrieval key message.
2. the information retrieval method based on version control system according to claim 1, is characterized in that, arranges the index of content in each Outcome Document, obtains index information and comprises:
The directory tree in traversal achievement warehouse, reads the Outcome Document under each store path;
Full-text search is carried out to read each Outcome Document, according to the full-text search result of each Outcome Document, generates the index of content in each Outcome Document, obtain index information.
3. the information retrieval method based on version control system according to claim 1 and 2, is characterized in that, described index record is fruitful the content of file and the corresponding relation of the store path of Outcome Document.
4. the information retrieval method based on version control system according to claim 3, is characterized in that, described according to determined index, generates result for retrieval back page and comprises:
Obtain the title of Outcome Document corresponding to determined index, and there is in Outcome Document the synopsis of described retrieval key message;
With the title of obtained Outcome Document and synopsis, generate the result for retrieval of Outcome Document, the store path that result for retrieval links corresponding Outcome Document is set;
The result for retrieval of comprehensive each Outcome Document, obtains result for retrieval back page.
5. the information retrieval method based on version control system according to claim 4, is characterized in that, also comprise:
If detect, user clicks the result for retrieval in result for retrieval back page, then determine the store path that clicked result for retrieval links, and by determined store path, opens the Outcome Document that clicked result for retrieval is corresponding.
6. the information retrieval method based on version control system according to claim 3, is characterized in that, described according to described index information, determines that the index in the content of Outcome Document with described retrieval key message comprises:
The content recorded by each index is carried out consistance with described retrieval key message and is mated;
Determine the index that content is consistent with described retrieval key message.
7. the information retrieval method based on version control system according to claim 2, is characterized in that, describedly carries out full-text search to read each Outcome Document and comprises:
According to the file type of Outcome Document, open Outcome Document with the unfolding mode of correspondence;
Full-text search is carried out to opened Outcome Document;
The described index information that obtains comprises:
In comprehensive each Outcome Document, the index of content, obtains index set, and described indexed set is combined into obtained index information; Wherein, an Outcome Document is to there being at least one index.
8. a server, is characterized in that, comprising:
Pre-setting module, for pre-setting the index of content in each Outcome Document, obtaining index information;
Key message acquisition module, for obtaining the retrieval key message that user submits to;
Index determination module, for according to described index information, determines the index in the content of Outcome Document with described retrieval key message;
Result for retrieval returns module, for according to determined index, generate result for retrieval back page, return described result for retrieval back page to user, so that user is according to result for retrieval back page, there is in locating content the Outcome Document of described retrieval key message.
9. server according to claim 8, is characterized in that, described in pre-set module and comprise:
Traversal Unit, for traveling through the directory tree in achievement warehouse, reads the Outcome Document under each store path;
Index generation unit, for carrying out full-text search to read each Outcome Document, according to the full-text search result of each Outcome Document, generating the index of content in each Outcome Document, obtaining index information.
10. server according to claim 8 or claim 9, is characterized in that, described index record is fruitful the content of file and the corresponding relation of the store path of Outcome Document;
Described result for retrieval returns module and comprises:
Result acquisition module, for obtaining the title of Outcome Document corresponding to determined index, and has the synopsis of described retrieval key message in Outcome Document;
Result generates and arranges module, for the title of obtained Outcome Document and synopsis, generates the result for retrieval of Outcome Document, arranges the store path that result for retrieval links corresponding Outcome Document;
Result integration module, for the result for retrieval of comprehensive each Outcome Document, obtains result for retrieval back page;
Described server also comprises:
Module is opened in click, if for detecting that user clicks the result for retrieval in result for retrieval back page, then determine the store path that clicked result for retrieval links, by determined store path, open the Outcome Document that clicked result for retrieval is corresponding.
CN201510599519.0A 2015-09-18 2015-09-18 Information retrieval method and server based on version control system Pending CN105069175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510599519.0A CN105069175A (en) 2015-09-18 2015-09-18 Information retrieval method and server based on version control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510599519.0A CN105069175A (en) 2015-09-18 2015-09-18 Information retrieval method and server based on version control system

Publications (1)

Publication Number Publication Date
CN105069175A true CN105069175A (en) 2015-11-18

Family

ID=54498544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510599519.0A Pending CN105069175A (en) 2015-09-18 2015-09-18 Information retrieval method and server based on version control system

Country Status (1)

Country Link
CN (1) CN105069175A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468785A (en) * 2015-12-24 2016-04-06 张梅云 Computer file management method
CN106021483A (en) * 2016-05-18 2016-10-12 广东源恒软件科技有限公司 Evidentiary material automatic association method and system
CN106407450A (en) * 2016-09-30 2017-02-15 网易(杭州)网络有限公司 File searching method and apparatus
CN109766120A (en) * 2018-12-17 2019-05-17 南京航空航天大学 A kind of mobile APP change file localization method based on user comment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154241A (en) * 2007-10-11 2008-04-02 北京金山软件有限公司 Data searching method and data searching system
US20080215545A1 (en) * 2007-03-03 2008-09-04 Industrial Technology Research Institute Data file management and search method and system based on file attributes
CN101408876A (en) * 2007-10-09 2009-04-15 中兴通讯股份有限公司 Method and system for searching full text of electric document

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080215545A1 (en) * 2007-03-03 2008-09-04 Industrial Technology Research Institute Data file management and search method and system based on file attributes
CN101408876A (en) * 2007-10-09 2009-04-15 中兴通讯股份有限公司 Method and system for searching full text of electric document
CN101154241A (en) * 2007-10-11 2008-04-02 北京金山软件有限公司 Data searching method and data searching system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468785A (en) * 2015-12-24 2016-04-06 张梅云 Computer file management method
CN106021483A (en) * 2016-05-18 2016-10-12 广东源恒软件科技有限公司 Evidentiary material automatic association method and system
CN106021483B (en) * 2016-05-18 2019-07-12 广东源恒软件科技有限公司 A kind of automatic correlation method and system of testimonial material
CN106407450A (en) * 2016-09-30 2017-02-15 网易(杭州)网络有限公司 File searching method and apparatus
CN109766120A (en) * 2018-12-17 2019-05-17 南京航空航天大学 A kind of mobile APP change file localization method based on user comment

Similar Documents

Publication Publication Date Title
US8250053B2 (en) Intelligent enhancement of a search result snippet
US8082258B2 (en) Updating an inverted index in a real time fashion
US9418128B2 (en) Linking documents with entities, actions and applications
US20170255652A1 (en) Method for dynamically matching images with content items based on keywords in response to search queries
CA2790421C (en) Indexing and searching employing virtual documents
CN105493075A (en) Retrieval of attribute values based upon identified entities
KR20050026902A (en) Annotation management in a pen-based computing system
JP2011516989A (en) Search result ranking using edit distance and document information
US7657513B2 (en) Adaptive help system and user interface
US10496686B2 (en) Method and system for searching and identifying content items in response to a search query using a matched keyword whitelist
US9965495B2 (en) Method and apparatus for saving search query as metadata with an image
US20130086071A1 (en) Augmenting search with association information
CN104699841A (en) Method and device for providing list summary information of search results
CN107870915B (en) Indication of search results
US20110320478A1 (en) User management of electronic documents
US11748429B2 (en) Indexing native application data
EP3485394B1 (en) Contextual based image search results
US20170351706A1 (en) Method and system for matching images with content using whitelists and blacklists in response to a search query
CN105069175A (en) Information retrieval method and server based on version control system
US20100082594A1 (en) Building a topic based webpage based on algorithmic and community interactions
US20180349500A1 (en) Search engine results for low-frequency queries
KR101674249B1 (en) Context-based item bookmarking
CN105243073A (en) Bookmark access method and device and terminal
US20140280050A1 (en) Term searching based on context
CN105630837B (en) Media record searching method and device

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

Application publication date: 20151118

RJ01 Rejection of invention patent application after publication