CN109359087A - Instant file index and searching method, apparatus and system - Google Patents

Instant file index and searching method, apparatus and system Download PDF

Info

Publication number
CN109359087A
CN109359087A CN201810864220.7A CN201810864220A CN109359087A CN 109359087 A CN109359087 A CN 109359087A CN 201810864220 A CN201810864220 A CN 201810864220A CN 109359087 A CN109359087 A CN 109359087A
Authority
CN
China
Prior art keywords
search
file
server
backup
described search
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.)
Granted
Application number
CN201810864220.7A
Other languages
Chinese (zh)
Other versions
CN109359087B (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 Mulangyun Data Co Ltd
Original Assignee
Shenzhen Mulangyun Data 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 Shenzhen Mulangyun Data Co Ltd filed Critical Shenzhen Mulangyun Data Co Ltd
Publication of CN109359087A publication Critical patent/CN109359087A/en
Application granted granted Critical
Publication of CN109359087B publication Critical patent/CN109359087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application discloses the method, apparatus and system of a kind of instant file index and search, this method comprises: search server receives file search request;Described search server sends the file search request to all backup servers, indicates that the search engine on each backup server completes search, the backup server is stored with the file index information of virtual machine;Described search server receives and summarizes the search result of each backup server;Described search server, which returns to described search result, shows interface, and shows described search result to user.The function of instant file index and search may be implemented by this method.

Description

Instant file index and searching method, apparatus and system
Technical field
This application involves computer internet technical fields, more particularly, to a kind of instant file index and search Functional method, apparatus and system.
Background technique
Currently, existing virtual machine standby system, when realizing file search and search, the scheme generallyd use is to need When browsing and searching for, a mount point is created on the disk of alternate device, then mount virtual machine disk to this mount point. Then file traversal order is being executed, is listing the bibliographic structure and level and corresponding file of magnetic disk of virtual machine file system, And it is shown in similar Windows tree-shaped mode.It when needing to browse file, successively clicks, selecting file, and successively looks into It looks for, speed is slow.
Summary of the invention
Present applicant proposes a kind of instant file indexes and searching method, device and system to solve the above problems.
In a first aspect, the embodiment of the present application provides a kind of instant file index and searching method, this method comprises: search Server receives file search request;Described search server sends the file search request to all backup servers, refers to Show that the search engine on each backup server completes search, the backup server is stored with the file index information of virtual machine; Described search server receives and summarizes the search result of each backup server;Described search server returns described search result Described search result is shown back to displaying interface, and to user.
Second aspect, it includes: to connect that the embodiment of the present application, which provides a kind of instant file index and searcher, described device, Module is received, receives file search request for search server;The receiving module is also used to, and described search server receives simultaneously Summarize the search result of each backup server;Sending module sends institute to all backup servers for described search server File search request is stated, indicates that the search engine on each backup server completes search, the backup server is stored with virtually The file index information of machine;Processing module sends the file search to all backup servers for described search server Request indicates that the search engine on each backup server completes search, and the backup server is stored with the file rope of virtual machine Fuse breath;Display module, described search server by described search result return to show interface, and to user show described in search Hitch fruit.
The third aspect, the embodiment of the present application provide the method for a kind of instant file index and search, which comprises Described search server receives file search request;Described search server sends the file search to all backup servers Request;All backup servers receive the file search request, indicate that the search engine on each backup server is complete The search of cost backup server;Search result is sent to all backup servers by described search engine;It is described all Described search result is sent to described search server by backup server;Described search server receive described search as a result, And described search result is summarized;Described search result is returned to and shows interface by described search server, and is shown to user Described search result.
Fourth aspect, the embodiment of the present application provide a kind of instant file index and search system, comprising: search server And backup server, described search server send the file for receiving file search request, to all backup servers Searching request;The backup server indicates that the search on each backup server is drawn for receiving the file search request The search for completing this backup server is held up, search result is sent to all backup servers by described search engine, described All backup servers are also used to described search result being sent to described search server;Described search server is also used to connect Receive described search as a result, and described search result is summarized, described search server by described search result return to show boundary Face, and described search result is shown to user.
Compared with the existing technology, instant file index and searching method, apparatus and system provided by the present application, search service Device receives file search request, and described search server sends the file search request to all backup servers, and instruction is each Search engine on backup server completes search, and the backup server is stored with the file index information of virtual machine, described Search server receives and summarizes the search result of each backup server, and described search server returns to described search result It shows interface, and shows described search as a result, realizing the function of instant file index and search to user, improve user and search The experience of rope file.
These aspects or other aspects of the application can more straightforward in the following description.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the applied environment figure of instant file index and searching method provided in an embodiment of the present invention.
Fig. 2 is the flow chart of instant file index and searching method that first embodiment of the invention provides.
Fig. 3 is the flow chart of instant file index and searching method that second embodiment of the invention provides.
Fig. 4 is the flow chart of instant file index and searching method that third embodiment of the invention provides.
Fig. 5 is the timing diagram of third embodiment of the invention.
Fig. 6 is the flow chart of instant file index and searching method that fourth embodiment of the invention provides.
Fig. 7 is the flow chart of instant file index and searching method that fifth embodiment of the invention provides.
Fig. 8 is the flow chart of instant file index and searching method that sixth embodiment of the invention provides.
Fig. 9 is the structural block diagram of instant file index and searcher that seventh embodiment of the invention provides.
Figure 10 is the structural schematic diagram of the system of instant file index and searching method that eighth embodiment of the invention provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Currently, inventor's discovery: (1) successively searching in virtual machine standby system when realizing file search and search, Speed is slow;(2) when file directory depth, when file is more, it is not easy to find the file for needing to look for;(3) when there are many version of backup, It is difficult to find corresponding file;(4) global search across all virtual machines can not be executed.Therefore, this hair is inventors herein proposed Instant file index and searching method in bright embodiment.Each embodiment in the application is specifically described below in conjunction with attached drawing.
Fig. 1 show the instant file index of offer provided in an embodiment of the present invention and the applied environment figure of searching method, Referring to figure 2., system 100 provided by the invention may include client 110, search server 120, backup server cluster 130。
Backup server cluster 130 can complete virtual machine backup, virtual machine file index in this system 100, and hold Row function of search, and search result is sent to search server 120 by search engine.
Customer side 110 receives the file search request of user, and file search request is sent to search server 120, the file search request may include file path keyword etc..
Described search server 120 receives the file search request of user from client 110, asks to the file search It asks progress corresponding, file search request is sent to backup server group 130.
The backup server group 130 asks according to file search request, instruction search engine is received according to searched file Corresponding keyword is sought, is scanned in index data base, the result searched for.
Described search engine gives obtained search result to the backup services group device 130, the backup services Device group 130 receives described search as a result, and described search result is sent to search server 120.
Described search server 120 summarizes the search result received, and shows and search to user in display interface Hitch fruit.
Main thought of the invention is that the file search request of user terminal 110 is received by search server 120, described to search Rope server 120 sends the file search request to backup server group 130, indicates the search on backup server group 130 Engine completes search, and the backup server group 130 is stored with the file index information of virtual machine, described search server 120 The search result of each backup server is received and summarizes, described search result is returned to displaying by described search server zone 130 Interface, and described search result is shown to user.
First embodiment
Referring to Fig. 2, the process of the instant file index and searching method provided Fig. 2 shows the application first embodiment Schematic diagram.The present embodiment is instant file index and searching method performed by search server, comprising the following steps:
Step S110: search server receives file search request.
User initiates file search request by customer side, and search server receives the file search from client and asks It asks.
Step S120: described search server sends the file search request to all backup servers, indicates each standby Search engine on part server completes search, and the backup server is stored with the file index information of virtual machine.
After described search server receives file search request, all backup services are sent by file search request Device, every server of all backup servers can complete same file backup, file index and execute search Function, and the backup server is stored with the file index information of virtual machine, the file index information is historical data base In file index information.The file index information can be root to all subdirectory listed files, and/or file category Property.The file attribute can be virtual machine name with backup version number, BACKUP TIME, file path, file size, Access limit, file creation time, and/or filemodetime.
After receiving the file search request of described search server transmission, the search on every backup server is drawn The file search being respectively completed on this TV station this TV station server is held up, search result is obtained.Search on each backup server Engine will obtain search result and be sent to the corresponding backup server, and described search result is sent to institute by backup server State search server.
Listed files, and/or file of the root to all subdirectories where described search result can be search file Attribute.
Step S130: described search server receives and summarizes the search result of each backup server.
After obtaining search result in the step s 120, described search server, which receives, comes from each backup server The search result of transmission, and obtained search result is summarized.
Step S140: described search result is returned to and shows interface by described search server, and described in showing to user Search result.
In step s 130 described search service its receive and understand in each backup server search result after, it is described to search Rope services it and result that search obtains is returned to displaying interface, i.e. client display interface, shows described search knot to user Fruit.
Instant file index and searching method provided in this embodiment receive file search request by search server, Described search server sends the file search request to all backup servers, indicates that the search on each backup server is drawn Completion search is held up, the backup server is stored with the file index information of virtual machine, and described search server receives and summarizes The search result of each backup server, described search server, which returns to described search result, shows interface, and aobvious to user Show described search as a result, realizing instant file index and search, improves the experience of user's search file.
Second embodiment
Referring to Fig. 3, Fig. 3 shows the instant file index of the application second embodiment offer and the process of searching method Schematic diagram.The present embodiment is instant file index and searching method performed by search server, comprising the following steps:
Step S210: each backup server traverses magnetic disk of virtual machine file respectively and obtains file index information.
Before in search service, it receives file search request, backup server needs to establish index data base.Each backup Server traverses magnetic disk of virtual machine file system respectively, obtains the file index information of the magnetic disk of virtual machine file system, i.e., Listed files, and/or file attribute of the root to all subdirectories where file.The file attribute can be with standby The virtual machine name of part version number, BACKUP TIME, file path, file size, access limit, file creation time, and/or Filemodetime.
Step S220: the file index information of every backup server is recorded to the index of every backup server In database.
After obtaining file index information in step S210, each backup server is by the obtained file index information It is recorded in the index data base of every backup server, it, can be in index data base when there is file search demand The corresponding index information of locating file.
Step S230: search server receives file search request.
Step S240: described search server sends the file search request to all backup servers, indicates each standby Search engine on part server completes search, and the backup server is stored with the file index information of virtual machine.
Step S250: described search server receives and summarizes the search result of each backup server.
Step S260: described search result is returned to and shows interface by described search server, and described in showing to user Search result.
The detailed process of step S230 to step S260 are referred to the step S110 in first embodiment to step S140, which is not described herein again.
Instant file index and searching method provided in this embodiment, traverse virtual machine magnetic by each backup server respectively Disk file obtains file index information, and every backup server is recorded in the file index information of every backup server Index data base in, search server receives file search request, and described search server sends to all backup servers The file search request indicates that the search engine on each backup server completes search, and the backup server is stored with void The file index information of quasi- machine, described search server receive and summarize the search result of each backup server, described search clothes Described search result is returned to and shows interface by business device.
3rd embodiment
Referring to Fig. 4, Fig. 4 shows the instant file index of the application 3rd embodiment offer and the process of searching method Schematic diagram.The present embodiment is instant file index and searching method performed by search server, comprising the following steps:
Step S310: the backup server is according to file system features and disk partition parameter to the magnetic disk of virtual machine File executes system analysis subregion, and identifies the corresponding file system of subregion, obtains partition list.
When establishing index data base, different file system has different characteristics, and when executing parsing subregion, exists Certain difference, therefore, the backup server is according to file system features and disk partition parameter to the magnetic disk of virtual machine File execute system analysis subregion obtain the corresponding UUID of subregion (Universally Unique Identifier, it is general only One identification code), and identify the corresponding file system of subregion, obtain partition list.Citing is illustrated below.
Assuming that after executing the z times backup of kth platform virtual machine, obtaining the z times virtual machine for xth platform server Disk file is named here are as follows: vd.For vd according to file system features and disk partition parameter, file system parsing is executed After subregion obtains the corresponding UUID of subregion and identifies the corresponding file system of subregion, partition list is obtained.
Step S320: according to the characteristics of file system and subregion ordinal relation carry subregion is to disk mount point.
For the file system of different operating system, the ordinal relation according to partition list obtained in step S310 is hung Subregion is carried to disk mount point.Illustrate to hang by taking the file system under Windows operating system and linux system as an example separately below Process of the load subregion to disk mount point.
For Windows system, all subregions are traversed, the corresponding subregion of C disk is identified, then finds out registry file, And registry file is parsed, it needs to identify C disk, corresponding UUID of D disk etc. according to the corresponding subregion map record of registration table.So Afterwards, one by one all corresponding subregions of carry to creation after a disk mount point C disk, the second levels disk mount point such as D disk.
For linux system, subregion is needed to be traversed for, finds out root partition, the corresponding file system of reading/etc/fstab is reflected Firing table parses partition table, obtains subregion mount point entrance (such as :/etc ,/mnt), the corresponding disk partition UUID of entrance and file System type (such as ext3, ext4, xfs, ntfs etc.).Then, from root "/" catalogue gradually carry subregion.
After completing subregion carry, the virtual machine internal of the z times backup can be traversed out from the disk mount point All Files and bibliographic structure.The All Files and bibliographic structure of the virtual machine internal may include root to all sons The listed files and file attribute of catalogue.
Step S330: in the disk carry spot scan file system, obtaining file index information, and by the file rope The index data base is recorded in fuse breath.
After completing carry subregion in step s 320, in the disk carry spot scan file system, file rope is obtained Fuse breath, the i.e. listed files and/or file attribute of acquisition root to all subdirectories, and by the root to all sons The listed files and/or file attribute record of catalogue are to the index data base.
Step S340: search server receives file search request.
Step S350: described search server sends the file search request to all backup servers, indicates each standby Search engine on part server completes search, and the backup server is stored with the file index information of virtual machine.
Step S360: described search server receives and summarizes the search result of each backup server.
Step S370: described search result is returned to and shows interface by described search server, and described in showing to user Search result.
The detailed process of step S340 to step S370 are referred to the step S230 in second embodiment to step S260, which is not described herein again.
The present embodiment is further described in detail below in conjunction with Fig. 5.
User inputs the document keyword to be searched in function of search Entry Interface, and search server is from function of search entrance Interface receives file search request, and shows that described search is requested.Described search server is to all backup server N1, N2..., NmSend the file search request, all backup server N1, N2..., NmThe file search is received to ask It asks, indicates that the search engine on each backup server completes the search of this backup server, described search by search service Engine requests corresponding keyword to scan in index data base according to file search, and each search engine completes this backup clothes The search of business device, obtains search result.Search result is sent to the corresponding backup server by each search engine, each to back up The search result that each search engine searches is sent to described search server, each search service by search service by server Device receives the search result that each search engine is sent, and described search result is summarized, and described search server is by described search As a result it returns to and shows interface, and show described search result to user.
File index information acquisition process in index data base passes through according to file system features and disk partition parameter System analysis subregion is executed to magnetic disk of virtual machine file, and identifies the corresponding file system of subregion, obtains the subregion parsed List.According to the characteristics of file system and subregion ordinal relation carry subregion is to disk mount point.After completing subregion carry, from The disk mount point can be obtained by All Files and bibliographic structure, and the bibliographic structure may include root to all sons The listed files and file attribute of catalogue.
Instant file index provided in this embodiment and, by the backup server according to file system features and disk Partitioned parameters execute system analysis subregion to the magnetic disk of virtual machine file, and identify the corresponding file system of subregion, obtain Partition list, according to the characteristics of file system and subregion ordinal relation carry subregion is to disk mount point, in the disk carry Spot scan file system obtains file index information, and the index data base is recorded in the file index information, searches for Server receives file search request, and described search server sends the file search request to all backup servers, refers to Showing that the search engine on each backup server completes search, the backup server is stored with the file index information of virtual machine, Described search server receives and summarizes the search result of each backup server, and described search server returns described search result Back to displaying interface.
Fourth embodiment
Referring to Fig. 6, Fig. 6 shows the instant file index of the application fourth embodiment offer and the process of searching method Schematic diagram.The present embodiment is instant file index and searching method performed by search server, comprising the following steps:
Step S410: search server receives file search request.
The detailed process of step S410 is referred to the step S110 in first embodiment, and which is not described herein again.
Step S420: the search being distributed on each backup server is requested in the file search by the backup server Engine.
When search server receives file search request, file search request is sent to by described search server The backup server, the backup services will be distributed to each backup from the received file search request of described search server Search engine on server.
Step S430: described search engine scans in the index data base according to the keyword, obtains institute State the corresponding search result of keyword.
Described search engine is after step S420 receives searching request, according to the corresponding keyword of searching request, in institute It states in index data base and scans for, listed files and file comprising root to all subdirectories in the index data base Attribute information, described search engine obtain the corresponding search result of the keyword in the index data base, that is, are searched for The attribute information of file, virtual machine name, BACKUP TIME, file path, file size, reading comprising having backup version number Write permission, file creation time, and/or filemodetime.
Step S440: described search server receives and summarizes the search result of each backup server.
Step S450: described search result is returned to and shows interface by described search server, and described in showing to user Search result.
The detailed process of step S440 to step S450 are referred to the step S130 in first embodiment to step S140, which is not described herein again.
Instant file index and searching method provided in this embodiment receive file index request by search server, The search engine being distributed on each backup server, described search engine are requested in the file search by the backup server It according to the keyword, is scanned in the index data base, obtains the corresponding search result of the keyword, it is described to search Rope server receives and summarizes the search result of each backup server, and described search result is returned to exhibition by described search server Show interface, and shows described search result to user.
5th embodiment
Referring to Fig. 7, Fig. 7 shows the instant file index of the 5th embodiment of the application offer and the process of searching method Schematic diagram.The present embodiment is instant file index and searching method performed by search server, comprising the following steps:
Step S510: search server receives file search request.
The detailed process of step S510 is referred to the step S110 in first embodiment, and which is not described herein again.
Step S520: described search server is communicated by Ajax and sends buffer service for file search request.
After search server receives file search request in step S510, described search server is communicated different by Ajax File search request is sent buffer service by step, the buffer service, that is, historical data base, stores in historical data base History file searches for information, searches whether that there are the file searches to request corresponding record in the buffer service.
Step S530: the buffer service requests corresponding record if there is the file search, by the file search It requests corresponding record to be packaged into Json format, file search request is returned to by function of search by Ajax communication Interface, and by parsing the Json formatted data, show the Json formatted data of the parsing.
The buffer service requests corresponding record if there is the file search, i.e., there are the texts in historical data base The corresponding record of part searching request shows that there are the file index informations of institute's search file in historical data base.It so will be described File search requests corresponding file index information to be packaged into Json format, is communicated by the Ajax and asks the file search It asks and returns to function of search interface, and parse the Json formatted data, is i.e. parsing is requested corresponding comprising the file search The Json formatted data of file index information shows the Json formatted data of the parsing to user, that is, shows institute's search file File index information.
Step S540: if the buffer service requests corresponding record, described search service without the file search Device sends the file search request to all backup servers, indicates that the search engine on each backup server completes search, The backup server is stored with the file index information of virtual machine.
If the buffer service requests corresponding record without the file search, i.e., institute is not present in historical data base It states file search and requests corresponding record, show the file index information that institute's search file is not present in historical data base.So Described search server sends the file search request to all backup servers, indicates that the search on each backup server is drawn It holds up and completes search in index data base, the backup server is stored with the file index information of virtual machine.
Step S550: described search server receives and summarizes the search result of each backup server.
Step S560: described search result is returned to and shows interface by described search server, and described in showing to user Search result.
The detailed process of step S550 to step S560 are referred to the step S130 in first embodiment to step S140, which is not described herein again.
Instant file index and searching method provided in this embodiment receive file search request by search server, Described search server is communicated by Ajax and sends buffer service for file search request, the buffer service if there is Corresponding record is requested in the file search, and the corresponding record of file search request is packaged into Json format, passes through institute It states Ajax communication and file search request is returned into function of search interface, show described search request to user, and pass through The Json formatted data is parsed, shows the Json formatted data of the parsing, if the buffer service is without the file The corresponding record of searching request, described search server send the file search request to all backup servers, and instruction is each Search engine on backup server completes search, and the backup server is stored with the file index information of virtual machine, described Search server receives and summarizes the search result of each backup server, and described search server returns to described search result It shows interface, and shows described search result to user.
Sixth embodiment
Referring to Fig. 8, Fig. 8 shows the instant file index of the application sixth embodiment offer and the process of searching method Schematic diagram.The present embodiment is instant file index and searching method performed by system, comprising the following steps:
Step S610: search server receives file search request.
Step S620: described search server sends the file search request to all backup servers.
Step S630: all backup servers receive the file search request, indicate on each backup server Search engine complete the search of this backup server.
Step S640: search result is sent to all backup servers by described search engine.
Step S650: described search result is sent to described search server by all backup servers.
Step S660: described search server receives described search as a result, and summarizing described search result.
Step S670: described search result is returned to and shows interface by described search server, and described in showing to user Search result.
7th embodiment
Referring to Fig. 9, Fig. 9 shows the instant file index of the 7th embodiment of the application offer and the device of searching method The structural schematic diagram of intention.The instant file index and searcher 700 may include: receiving module 710, sending module 720, processing module 730, display module 740.
Wherein, receiving module 710 receive file search request for search server;
Sending module 720 sends the file search request to all backup servers for described search server, refers to Show that the search engine on each backup server completes search, the backup server is stored with the file index information of virtual machine;
Processing module 730 sends the file search request to all backup servers for described search server, refers to Show that the search engine on each backup server completes search, the backup server is stored with the file index information of virtual machine;
Display module 740, described search server, which returns to described search result, shows interface, and shows institute to user State search result;
The receiving module 710 is also used to, and described search server receives and summarizes the search result of each backup server.
Tool of the present embodiment to the respective function of each Implement of Function Module of the device 700 of instant file index and searching method Body process refers to particular content described in above-mentioned Fig. 2 to embodiment illustrated in fig. 8, and details are not described herein again.
8th embodiment
Referring to Fig. 10, Figure 10 shows the instant file index of the application the 8th embodiment offer and searching method is The structural schematic diagram of system.System 800 provided in this embodiment includes: search server 810 and backup server 820.Wherein,
Described search server 810 sends the file to all backup servers 820 for receiving file search request Searching request;
The backup server 820 indicates on each backup server 820 for receiving the file search request Search engine completes the search of this backup server, and search result is sent to all backup servers by described search engine 820, all backup servers 820 are also used to described search result being sent to described search server 810;
Described search server 810 is also used to receive described search as a result, and summarizing described search result, described search Server 810, which returns to described search result, shows interface, and shows described search result to user.
The system of instant file index and searching method provided in this embodiment, by described search server for receiving File search request sends the file search request to all backup servers, and the backup server is described for receiving File search request, indicates that the search engine on each backup server completes the search of this backup server, described search is drawn It holds up and search result is sent to all backup servers, all backup servers are also used to send out described search result Give described search server, described search server be also used to receive described search as a result, and described search result is summarized, Described search server, which returns to described search result, shows interface, and shows described search result to user.
It should be noted that the function of each equipment can be according in above method embodiment in the system of the embodiment of the present invention Method specific implementation, specific implementation process are referred to the associated description of above method embodiment, and this will not be repeated here.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including institute State in process, method, article or the device of element that there is also other identical elements.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above are modified or are modified It is right according to the technical essence of the invention for the equivalent embodiment of equivalent variations, but without departing from the technical solutions of the present invention Any simple modification, equivalent change and modification made by above embodiments, all of which are still within the scope of the technical scheme of the invention.

Claims (10)

1. a kind of method of instant file index and search characterized by comprising
Search server receives file search request;
Described search server sends the file search request to all backup servers, indicates searching on each backup server Index holds up completion search, and the backup server is stored with the file index information of virtual machine;
Described search server receives and summarizes the search result of each backup server;
Described search server, which returns to described search result, shows interface, and shows described search result to user.
2. the method as described in claim 1, which is characterized in that before described search server receives file search request, also Include:
Each backup server traverses magnetic disk of virtual machine file respectively and obtains file index information;
The file index information of every backup server is recorded in the index data base of every backup server.
3. method according to claim 2, which is characterized in that each backup server traverses magnetic disk of virtual machine file respectively File index information is obtained, the file index information of every backup server is recorded to the index of every backup server In database, comprising:
The backup server executes system to the magnetic disk of virtual machine file according to file system features and disk partition parameter Subregion is parsed, and identifies the corresponding file system of subregion, obtains partition list;
According to the characteristics of file system and subregion ordinal relation carry subregion is to disk mount point;
In the disk carry spot scan file system, file index information is obtained, and the file index information is recorded The index data base.
4. method according to claim 2, which is characterized in that the file index information includes root to all subdirectories Listed files, and/or file attribute.
5. method as claimed in claim 4, which is characterized in that the file attribute includes virtual with backup version number Machine name, BACKUP TIME, file path, file size, access limit, file creation time, and/or filemodetime.
6. the method as described in claim 1, which is characterized in that the file search request includes the keyword of file path, Described search server sends the file search request to all backup servers, indicates that the search on each backup server is drawn Completion search is held up, the backup server is stored with the file index information of virtual machine, comprising:
The search engine being distributed on each backup server is requested in the file search by the backup server;
Described search engine scans in the index data base according to the keyword, and it is corresponding to obtain the keyword Search result.
7. the method as described in claim 1, which is characterized in that described search server receives after file search is requested and institute It states search server and sends the file search request to all backup servers, indicate the search engine on each backup server Search is completed, the backup server is stored with before the file index information of virtual machine, comprising:
Described search server is communicated by Ajax and sends buffer service for file search request;
The buffer service requests corresponding record if there is the file search, and corresponding record is requested in the file search It is packaged into Json format, file search request is returned to by function of search interface by Ajax communication, and pass through solution The Json formatted data is analysed, shows the Json formatted data of the parsing;
If the buffer service requests corresponding record without the file search, described search server takes to all backups Business device sends the file search request, indicates that the search engine on each backup server completes search, the backup server It is stored with the file index information of virtual machine.
8. a kind of instant file index and searcher characterized by comprising
Receiving module receives file search request for search server;
The receiving module is also used to, and described search server receives and summarizes the search result of each backup server;
Sending module sends the file search request to all backup servers for described search server, indicates each standby Search engine on part server completes search, and the backup server is stored with the file index information of virtual machine;
Processing module sends the file search request to all backup servers for described search server, indicates each standby Search engine on part server completes search, and the backup server is stored with the file index information of virtual machine;
Display module, described search server, which returns to described search result, shows interface, and shows described search to user As a result.
9. a kind of instant file index and searching method characterized by comprising
Search server receives file search request;
Described search server sends the file search request to all backup servers;
All backup servers receive the file search request, indicate that the search engine on each backup server is completed The search of this backup server;
Search result is sent to all backup servers by described search engine;
Described search result is sent to described search server by all backup servers;
Described search server receives described search as a result, and summarizing described search result;
Described search server, which returns to described search result, shows interface, and shows described search result to user.
10. a kind of instant file index and search system characterized by comprising search server and backup server,
Described search server sends the file search request for receiving file search request, to all backup servers;
The backup server indicates that the search engine on each backup server is completed for receiving the file search request The search of this backup server, search result is sent to all backup servers by described search engine, described all standby Part server is also used to described search result being sent to described search server;
Described search server is also used to receive described search as a result, and summarizing described search result, described search server Described search result is returned to and shows interface, and shows described search result to user.
CN201810864220.7A 2018-06-15 2018-08-01 Instant file indexing and searching method, device and system Active CN109359087B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810623205 2018-06-15
CN2018106232053 2018-06-15

Publications (2)

Publication Number Publication Date
CN109359087A true CN109359087A (en) 2019-02-19
CN109359087B CN109359087B (en) 2020-11-17

Family

ID=65349774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810864220.7A Active CN109359087B (en) 2018-06-15 2018-08-01 Instant file indexing and searching method, device and system

Country Status (1)

Country Link
CN (1) CN109359087B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860486A (en) * 2021-02-03 2021-05-28 深圳市木浪云数据有限公司 Method and device for creating data copy
CN114924914A (en) * 2022-05-31 2022-08-19 广州鼎甲计算机科技有限公司 Disk partition table information backup and recovery method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201114128Y (en) * 2007-09-12 2008-09-10 福建富士通信息软件有限公司 Enterprise search engine device
CN101388031A (en) * 2003-04-25 2009-03-18 汤姆森环球资源公司 Distributed search methods, architectures, systems, and software
CN101667179A (en) * 2008-09-03 2010-03-10 华为技术有限公司 Mobile search method and system, and method for synchronizing search capability of search server
CN107545007A (en) * 2016-06-26 2018-01-05 国网天津市电力公司 Electric power big data quick-searching engine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388031A (en) * 2003-04-25 2009-03-18 汤姆森环球资源公司 Distributed search methods, architectures, systems, and software
CN201114128Y (en) * 2007-09-12 2008-09-10 福建富士通信息软件有限公司 Enterprise search engine device
CN101667179A (en) * 2008-09-03 2010-03-10 华为技术有限公司 Mobile search method and system, and method for synchronizing search capability of search server
CN107545007A (en) * 2016-06-26 2018-01-05 国网天津市电力公司 Electric power big data quick-searching engine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860486A (en) * 2021-02-03 2021-05-28 深圳市木浪云数据有限公司 Method and device for creating data copy
CN112860486B (en) * 2021-02-03 2024-01-12 深圳市木浪云科技有限公司 Method and device for creating data copy
CN114924914A (en) * 2022-05-31 2022-08-19 广州鼎甲计算机科技有限公司 Disk partition table information backup and recovery method and system

Also Published As

Publication number Publication date
CN109359087B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
US9300755B2 (en) System and method for determining information reliability
US6311194B1 (en) System and method for creating a semantic web and its applications in browsing, searching, profiling, personalization and advertising
US20160149832A1 (en) Method and apparatus for increasing subresource loading speed
KR102375224B1 (en) Search based on combining user relationship data
US8635203B2 (en) Systems and methods using query patterns to disambiguate query intent
US7577644B2 (en) Augmented search with error detection and replacement
US8762360B2 (en) Integrating applications within search results
US6842748B1 (en) Usage based strength between related information in an information retrieval system
US8234266B2 (en) Mobile SiteMaps
US9519726B2 (en) Surfacing applications based on browsing activity
US9223895B2 (en) System and method for contextual commands in a search results page
CN104580540B (en) The implementation method and device of website visiting
US20030131000A1 (en) Group-based search engine system
US20120215765A1 (en) Systems and Methods for Generating Statistics from Search Engine Query Logs
US9996630B2 (en) System and/or method for linking network content
US20100161592A1 (en) Query Intent Determination Using Social Tagging
WO2016044914A1 (en) Method for search disambiguation using hashtags having context data associated therewith
CN105760380A (en) Database query method, device and system
WO2009031759A1 (en) Method and system for generating search collection of query
US20130013408A1 (en) Method and Arrangement for Network Searching
CN110546633A (en) Named entity based category tag addition for documents
CN103577426B (en) For providing the method, apparatus and system of the additional application information that search is suggested
CN109359087A (en) Instant file index and searching method, apparatus and system
WO2014059851A1 (en) Search server and search method
WO2001055909A1 (en) System and method for bookmark management and analysis

Legal Events

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