CN109359087B - Instant file indexing and searching method, device and system - Google Patents

Instant file indexing and searching method, device and system Download PDF

Info

Publication number
CN109359087B
CN109359087B CN201810864220.7A CN201810864220A CN109359087B CN 109359087 B CN109359087 B CN 109359087B CN 201810864220 A CN201810864220 A CN 201810864220A CN 109359087 B CN109359087 B CN 109359087B
Authority
CN
China
Prior art keywords
search
file
server
backup
index information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810864220.7A
Other languages
Chinese (zh)
Other versions
CN109359087A (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 Mulang Cloud Data Co ltd
Original Assignee
Shenzhen Mulang Cloud 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 Mulang Cloud Data Co ltd filed Critical Shenzhen Mulang Cloud 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

Images

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 application discloses a method, a device and a system for indexing and searching instant files, wherein the method comprises the following steps: a search server receives a file search request; the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete searching, and the backup servers store file index information of the virtual machines; the search server receives and summarizes the search results of the backup servers; and the search server returns the search result to a display interface and displays the search result to the user. The method can realize the functions of instant file indexing and searching.

Description

Instant file indexing and searching method, device and system
Technical Field
The present application relates to the field of computer internet technologies, and in particular, to a method, an apparatus, and a system for instant file indexing and searching functions.
Background
At present, when an existing virtual machine backup system is used to search and search files, a commonly adopted scheme is that when browsing and searching are needed, a mount point is created on a disk of a backup device, and then the disk of a virtual machine is mounted to the mount point. And then, executing a file traversal command, listing the directory structure and the hierarchy of the disk file system of the virtual machine and the corresponding file, and displaying in a Windows tree-like manner. When the files need to be browsed, clicking layer by layer to select the files, and searching layer by layer at a low speed.
Disclosure of Invention
The application provides a method, a device and a system for indexing and searching an instant file to solve the problems.
In a first aspect, an embodiment of the present application provides an instant file indexing and searching method, where the method includes: a search server receives a file search request; the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete searching, and the backup servers store file index information of the virtual machines; the search server receives and summarizes the search results of the backup servers; and the search server returns the search result to a display interface and displays the search result to the user.
In a second aspect, an embodiment of the present application provides an instant file indexing and searching apparatus, where the apparatus includes: the receiving module is used for receiving a file searching request by the searching server; the receiving module is further used for receiving and summarizing the search results of the backup servers by the search server; the sending module is used for sending the file searching request to all backup servers by the searching server to indicate a searching engine on each backup server to complete searching, and the backup servers store file index information of the virtual machines; the processing module is used for the search server to send the file search request to all backup servers and indicate search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines; and the search server returns the search result to a display interface and displays the search result to a user.
In a third aspect, an embodiment of the present application provides a method for instant file indexing and searching, where the method includes: the search server receives a file search request; the search server sends the file search request to all backup servers; all the backup servers receive the file search request and indicate search engines on all the backup servers to complete the search of the backup server; the search engine sends the search result to all backup servers; all backup servers send the search results to the search server; the search server receives the search results and summarizes the search results; and the search server returns the search result to a display interface and displays the search result to the user.
In a fourth aspect, an embodiment of the present application provides an instant file indexing and searching system, including: the system comprises a search server and backup servers, wherein the search server is used for receiving file search requests and sending the file search requests to all the backup servers; the backup server is used for receiving the file search request and indicating a search engine on each backup server to complete the search of the backup server, the search engine sends the search result to all the backup servers, and all the backup servers are also used for sending the search result to the search server; the search server is also used for receiving the search results and gathering the search results, and the search server returns the search results to a display interface and displays the search results to a user.
Compared with the prior art, according to the instant file indexing and searching method, device and system, the search server receives the file search request, the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete searching, the backup servers store file index information of virtual machines, the search server receives and summarizes the search results of all the backup servers, the search server returns the search results to the display interface, the search results are displayed to a user, the instant file indexing and searching functions are achieved, and file searching experience of the user is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an application environment diagram of an instant file indexing and searching method according to an embodiment of the present invention.
Fig. 2 is a flowchart of an instant file indexing and searching method according to a first embodiment of the present invention.
Fig. 3 is a flowchart of an instant file indexing and searching method according to a second embodiment of the present invention.
Fig. 4 is a flowchart of an instant file indexing and searching method according to a third embodiment of the present invention.
FIG. 5 is a timing diagram illustrating a third embodiment of the present invention.
Fig. 6 is a flowchart of an instant file indexing and searching method according to a fourth embodiment of the present invention.
Fig. 7 is a flowchart of an instant file indexing and searching method according to a fifth embodiment of the present invention.
Fig. 8 is a flowchart of an instant file indexing and searching method according to a sixth embodiment of the present invention.
Fig. 9 is a block diagram illustrating an instant file indexing and searching apparatus according to a seventh embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a system of an instant file indexing and searching method according to an eighth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, when a virtual machine backup system realizes file searching and searching, the inventor finds that: (1) searching layer by layer, and the speed is slow; (2) when the file directory is deep and the number of files is large, the files required to be found are not easy to find; (3) when the backup versions are many, the corresponding files are difficult to find; (4) a global search across all virtual machines cannot be performed. Therefore, the inventor proposes an instant file indexing and searching method in the embodiment of the invention. Embodiments in the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a diagram illustrating an application environment of an instant file indexing and searching method provided by an embodiment of the present invention, and referring to fig. 2, a system 100 provided by the present invention may include a client 110, a search server 120, and a backup server cluster 130.
The backup server cluster 130 in the present system 100 can perform virtual machine backup, virtual machine file indexing, and search functions, and send the search results to the search server 120 via a search engine.
The customer service end 110 receives a file search request of a user, and sends the file search request to the search server 120, wherein the file search request may contain a file path keyword and the like.
The search server 120 receives a file search request from the client 110, responds to the file search request, and sends the file search request to the backup server farm 130.
The backup server group 130 instructs the search engine to search in the index database according to the keyword corresponding to the file search request, and obtains the search result.
The search engine generates the obtained search result to the backup service cluster 130, and the backup server cluster 130 receives the search result and transmits the search result to the search server 120.
The search server 120 aggregates the received search results and displays the search results to the user on a display interface.
The main idea of the present invention is to receive a file search request of a user terminal 110 through a search server 120, where the search server 120 sends the file search request to a backup server cluster 130 to instruct a search engine on the backup server cluster 130 to complete a search, the backup server cluster 130 stores file index information of a virtual machine, the search server 120 receives and summarizes search results of each backup server, and the search server cluster 130 returns the search results to a display interface and displays the search results to a user.
First embodiment
Referring to fig. 2, fig. 2 is a flowchart illustrating an instant file indexing and searching method according to a first embodiment of the present application. The embodiment is an instant file indexing and searching method executed by a search server, which comprises the following steps:
step S110: the search server receives a file search request.
A user initiates a file search request through a customer service terminal, and a search server receives the file search request from a client terminal.
Step S120: and the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines.
The search server receives a file search request and then sends the file search request to all backup servers, each server of all the backup servers can complete the same file backup, file indexing and search execution functions, the backup servers store file index information of the virtual machine, and the file index information is file index information in a historical database. The file index information may be a list of files from the root directory to all subdirectories, and/or file attributes. The file attribute may be a name of the virtual machine with the number of times the version was backed up, a backup time, a file path, a file size, read-write permissions, a file creation time, and/or a file modification time.
And after receiving the file search request sent by the search server, the search engine on each backup server respectively completes the file search on the server to obtain a search result. And the search engine positioned on each backup server sends the obtained search result to the corresponding backup server, and the backup server sends the search result to the search server.
The search result may be a list of files from the root directory where the file is searched to all the subdirectories, and/or a file attribute.
Step S130: and the search server receives and summarizes the search results of the backup servers.
After the search results are obtained in step S120, the search server receives the search results sent from each backup server, and summarizes the obtained search results.
Step S140: and the search server returns the search result to a display interface and displays the search result to the user.
After the search service receives and combines the search results of each backup server in step S130, the search service returns the results obtained by the search to a display interface, i.e., a client display interface, and displays the search results to the user.
According to the instant file indexing and searching method provided by the embodiment, a file searching request is received through a searching server, the searching server sends the file searching request to all backup servers to indicate a searching engine on each backup server to complete searching, file indexing information of a virtual machine is stored in each backup server, the searching server receives and summarizes searching results of each backup server, the searching server returns the searching results to a display interface, the searching results are displayed to a user, instant file indexing and searching are achieved, and file searching experience of the user is improved.
Second embodiment
Referring to fig. 3, fig. 3 is a flowchart illustrating an instant document indexing and searching method according to a second embodiment of the present application. The embodiment is an instant file indexing and searching method executed by a search server, which comprises the following steps:
step S210: and each backup server respectively traverses the disk file of the virtual machine to obtain file index information.
The backup server needs to build an index database before the search service receives a file search request. And each backup server respectively traverses the disk file system of the virtual machine to acquire file index information of the disk file system of the virtual machine, namely a file list from a root directory where files are located to all subdirectories and/or file attributes. The file attribute may be a name of the virtual machine with the number of times the version was backed up, a backup time, a file path, a file size, read-write permissions, a file creation time, and/or a file modification time.
Step S220: and recording the file index information of each backup server into an index database of each backup server.
After the file index information is obtained in step S210, each backup server records the obtained file index information into the index database of each backup server, and when there is a file search requirement, the index database may be searched for the index information corresponding to the file.
Step S230: the search server receives a file search request.
Step S240: and the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines.
Step S250: and the search server receives and summarizes the search results of the backup servers.
Step S260: and the search server returns the search result to a display interface and displays the search result to the user.
The specific processes from step S230 to step S260 may refer to step S110 to step S140 in the first embodiment, and are not described herein again.
In the instant file indexing and searching method provided by this embodiment, file index information is obtained by traversing a disk file of a virtual machine by each backup server, the file index information of each backup server is recorded in an index database of each backup server, a search server receives a file search request, the search server sends the file search request to all backup servers to instruct search engines on each backup server to complete a search, the backup servers store the file index information of the virtual machine, the search server receives and summarizes search results of each backup server, and the search server returns the search results to a display interface.
Third embodiment
Referring to fig. 4, fig. 4 is a flowchart illustrating an instant file indexing and searching method according to a third embodiment of the present application. The embodiment is an instant file indexing and searching method executed by a search server, which comprises the following steps:
step S310: and the backup server executes system analysis partition on the virtual machine disk file according to the file system characteristics and the disk partition parameters, identifies a file system corresponding to the partition, and obtains a partition list.
When the index database is established, different file systems have different characteristics, and certain differences exist when the partition is analyzed, so that the backup server analyzes the partition for the virtual machine disk file execution system according to the file system characteristics and the disk partition parameters to obtain a UUID (universal Unique Identifier) corresponding to the partition, identifies the file system corresponding to the partition, and obtains a partition list. The following examples will be specifically described.
Suppose that for the xth server, after the z-th backup of the kth virtual machine is executed, the disk file of the kth virtual machine is obtained, and the name here is: and vd. And for vd, according to the file system characteristics and the disk partition parameters, the file system is executed to analyze the partitions to obtain UUIDs corresponding to the partitions, and partition lists are obtained after the file systems corresponding to the partitions are identified.
Step S320: and mounting the partitions to disk mounting points according to the characteristics of the file system and the partition sequence relation.
For file systems of different operating systems, the partitions are mounted to the disk mounting point according to the sequential relationship of the partition list obtained in step S310. The following respectively takes file systems under the Windows operating system and the Linux system as examples to describe the process from the mount partition to the disk mount point.
For a Windows system, traversing all partitions, identifying the partition corresponding to the disk C, then finding out a registry file, analyzing the registry file, and identifying UUIDs corresponding to the disk C and the disk D according to the partition mapping record corresponding to the registry. And then mounting all the corresponding partitions one by one to secondary disk mounting points such as a C disk, a D disk and the like of the created disk mounting point.
For a Linux system, partitions need to be traversed, a root partition is found, a file system mapping table corresponding to the/etc/fstab is read, the partition table is analyzed, and a partition mount point entry (such as/etc,/mnt), a disk partition UUID corresponding to the entry and a file system type (such as ext3, ext4, xfs, ntfs and the like) are obtained. Then, the partitions are mounted sequentially from the root "/" directory.
After the partition mounting is completed, all the files and directory structures inside the virtual machine of the z-th backup can be traversed from the disk mounting point. All files and directory structures inside the virtual machine may include a list of files from the root directory to all subdirectories, as well as file attributes.
Step S330: and scanning a file system at the disk mounting point, acquiring file index information, and recording the file index information to the index database.
After the mount partition is completed in step S320, the file system is scanned at the disk mount point, file index information is obtained, that is, the file lists and/or file attributes from the root directory to all the subdirectories are obtained, and the file lists and/or file attributes from the root directory to all the subdirectories are recorded in the index database.
Step S340: the search server receives a file search request.
Step S350: and the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines.
Step S360: and the search server receives and summarizes the search results of the backup servers.
Step S370: and the search server returns the search result to a display interface and displays the search result to the user.
The specific processes of step S340 to step S370 may refer to step S230 to step S260 in the second embodiment, which are not described herein again.
This embodiment will be described in further detail with reference to fig. 5.
A user inputs a keyword of a file to be searched on a search function entry interface, and a search server receives a file search request from the search function entry interface and displays the search request. The search server sends the search result to all backup servers N1,N2,...,NmSending the file search request, and sending the file search request to all backup servers N1,N2,...,NmAnd receiving the file search request, and indicating a search engine on each backup server to complete the search of the backup server through a search service, wherein the search engine searches in an index database according to the key words corresponding to the file search request, and each search engine completes the search of the backup server to obtain a search result. Each search engine sends the search result to the corresponding backup server, each backup server sends the search result searched by each search engine to the search server through the search service, each search server receives the search result sent by each search engine and summarizes the search result, and the search server returns the search result to a display interface and displays the search result to a user.
In the file index information acquisition process in the index database, system analysis partition is executed on the disk file of the virtual machine according to the file system characteristics and the disk partition parameters, and a file system corresponding to the partition is identified to obtain an analyzed partition list. And mounting the partitions to disk mounting points according to the characteristics of the file system and the partition sequence relation. After the partition mount is completed, all files and directory structures can be obtained from the disk mount point, and the directory structures can include file lists from a root directory to all subdirectories and file attributes.
In the instant file index provided by this embodiment, the backup server executes a system parsing partition on the virtual machine disk file according to the file system characteristics and the disk partition parameters, identifying the file system corresponding to the partition to obtain a partition list, mounting the partition to a disk mounting point according to the characteristics of the file system and the partition sequence relation, scanning the file system at the disk mounting point to obtain file index information, recording the file index information to the index database, receiving a file search request by a search server, the search server sends the file search request to all backup servers, instructs the search engine on each backup server to complete the search, the backup server stores file index information of the virtual machine, the search server receives and summarizes search results of the backup servers, and the search server returns the search results to a display interface.
Fourth embodiment
Referring to fig. 6, fig. 6 is a flowchart illustrating an instant file indexing and searching method according to a fourth embodiment of the present application. The embodiment is an instant file indexing and searching method executed by a search server, which comprises the following steps:
step S410: the search server receives a file search request.
The specific process of step S410 may refer to step S110 in the first embodiment, and is not described herein again.
Step S420: and the backup server distributes the file search request to search engines on the backup servers.
When a search server receives a file search request, the search server sends the file search request to the backup servers, and the backup servers distribute the file search request received from the search server to search engines on the respective backup servers.
Step S430: and the search engine searches in the index database according to the keywords to obtain a search result corresponding to the keywords.
After receiving the search request in step S420, the search engine searches the index database according to the keyword corresponding to the search request, where the index database includes the file list and file attribute information from the root directory to all the subdirectories, and the search engine obtains the search result corresponding to the keyword, that is, the attribute information of the searched file, including the name of the virtual machine with the number of times of the backup version, the backup time, the file path, the file size, the read-write permission, the file creation time, and/or the file modification time, from the index database.
Step S440: and the search server receives and summarizes the search results of the backup servers.
Step S450: and the search server returns the search result to a display interface and displays the search result to the user.
The specific processes of step S440 to step S450 may refer to step S130 to step S140 in the first embodiment, which are not described herein again.
In the instant file indexing and searching method provided by this embodiment, a file index request is received by a search server, the backup server distributes the file search request to search engines on respective backup servers, the search engines search in the index database according to the keywords to obtain search results corresponding to the keywords, the search servers receive and summarize the search results of the respective backup servers, and the search servers return the search results to a display interface and display the search results to a user.
Fifth embodiment
Referring to fig. 7, fig. 7 is a flowchart illustrating an instant file indexing and searching method according to a fifth embodiment of the present application. The embodiment is an instant file indexing and searching method executed by a search server, which comprises the following steps:
step S510: the search server receives a file search request.
The specific process of step S510 may refer to step S110 in the first embodiment, and is not described herein again.
Step S520: and the search server sends the file search request to a cache service through Ajax communication.
After the search server receives the file search request in step S510, the search server asynchronously sends the file search request to a cache service through Ajax communication, where the cache service is a history database, and history file search information is stored in the history database, and whether a record corresponding to the file search request exists is searched in the cache service.
Step S530: and if the cache service has the record corresponding to the file search request, packaging the record corresponding to the file search request into a Json format, returning the file search request to a search function interface through the Ajax communication, and displaying the analyzed Json format data by analyzing the Json format data.
If the cache service has a record corresponding to the file search request, that is, the history database has a record corresponding to the file search request, indicating that the history database has file index information of the searched file. Packaging file index information corresponding to the file search request into a Json format, returning the file search request to a search function interface through the Ajax communication, analyzing Json format data, namely analyzing Json format data containing the file index information corresponding to the file search request, and displaying the analyzed Json format data to a user, namely displaying the file index information of the searched file.
Step S540: and if the cache service does not have records corresponding to the file search request, the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines.
If the cache service does not have a record corresponding to the file search request, that is, the history database does not have a record corresponding to the file search request, it indicates that the history database does not have file index information of the searched file. The search server sends the file search request to all backup servers to instruct the search engines on the backup servers to complete the search in the index database, and the backup servers store the file index information of the virtual machines.
Step S550: and the search server receives and summarizes the search results of the backup servers.
Step S560: and the search server returns the search result to a display interface and displays the search result to the user.
The specific process from step S550 to step S560 may refer to step S130 to step S140 in the first embodiment, and is not described herein again.
In the instant file indexing and searching method provided by this embodiment, a search server receives a file search request, the search server sends the file search request to a cache service through Ajax communication, if there is a record corresponding to the file search request, the cache service packages the record corresponding to the file search request into a Json format, returns the file search request to a search function interface through Ajax communication, displays the search request to a user, and displays the analyzed Json format data by analyzing the Json format data, if there is no record corresponding to the file search request, the search server sends the file search request to all backup servers, and indicates a search engine on each backup server to complete a search, and the backup servers store file index information of a virtual machine, the search server receives and summarizes the search results of the backup servers, returns the search results to a display interface and displays the search results to a user.
Sixth embodiment
Referring to fig. 8, fig. 8 is a flowchart illustrating an instant file indexing and searching method according to a sixth embodiment of the present application. The embodiment is an instant file indexing and searching method executed by a system, which comprises the following steps:
step S610: the search server receives a file search request.
Step S620: and the search server sends the file search request to all backup servers.
Step S630: and all the backup servers receive the file search request and indicate the search engines on all the backup servers to complete the search of the backup servers.
Step S640: and the search engine sends the search result to all the backup servers.
Step S650: and all backup servers send the search result to the search server.
Step S660: and the search server receives the search results and summarizes the search results.
Step S670: and the search server returns the search result to a display interface and displays the search result to the user.
Seventh embodiment
Referring to fig. 9, fig. 9 is a schematic diagram illustrating an apparatus intent of an instant file indexing and searching method according to a seventh embodiment of the present application. The instant file indexing and searching apparatus 700 may include: a receiving module 710, a sending module 720, a processing module 730, and a display module 740.
The receiving module 710 is configured to receive a file search request by a search server;
a sending module 720, configured to send the file search request to all backup servers by the search server, and instruct search engines on the backup servers to complete the search, where the backup servers store file index information of the virtual machines;
the processing module 730, configured to send the file search request to all backup servers by the search server, and instruct search engines on the backup servers to complete the search, where the backup servers store file index information of the virtual machines;
the display module 740, the search server returns the search result to the display interface, and displays the search result to the user;
the receiving module 710 is further configured to receive and summarize search results of the backup servers by the search server.
For the detailed process of implementing each function of each functional module of the device 700 of the instant file indexing and searching method in this embodiment, please refer to the detailed contents described in the embodiments shown in fig. 2 to fig. 8, which will not be described herein again.
Eighth embodiment
Referring to fig. 10, fig. 10 is a schematic structural diagram illustrating a system of an instant file indexing and searching method according to an eighth embodiment of the present application. The system 800 provided by the embodiment includes: search server 810 and backup server 820. Wherein,
the search server 810 is configured to receive a file search request and send the file search request to all backup servers 820;
the backup servers 820 are configured to receive the file search request, instruct search engines on the backup servers 820 to complete the search of the backup server, send search results to all the backup servers 820 by the search engine, and send the search results to the search server 810 by all the backup servers 820;
the search server 810 is further configured to receive the search results, summarize the search results, and the search server 810 returns the search results to a display interface and displays the search results to a user.
In the system of the instant file indexing and searching method provided by this embodiment, the search server is configured to receive a file search request and send the file search request to all backup servers, the backup servers are configured to receive the file search request and instruct search engines on the backup servers to complete a search of the backup server, the search engines send search results to all backup servers, all backup servers are further configured to send the search results to the search server, the search server is further configured to receive the search results and summarize the search results, and the search server returns the search results to a display interface and displays the search results to a user.
It should be noted that the functions of each device in the system according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A method of instant file indexing and searching, comprising:
each backup server respectively traverses the disk file of the virtual machine to obtain file index information;
recording the file index information of each backup server into an index database of each backup server;
a search server receives a file search request;
the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete searching, and the backup servers store file index information of the virtual machines;
the search server receives and summarizes the search results of the backup servers;
and the search server returns the search result to a display interface and displays the search result to the user.
2. The method of claim 1, wherein the step of each backup server separately traversing the disk file of the virtual machine to obtain the file index information, and the step of recording the file index information of each backup server into the index database of each backup server comprises:
the backup server executes system analysis partition on the virtual machine disk file according to the file system characteristics and the disk partition parameters, identifies a file system corresponding to the partition, and obtains a partition list;
mounting the partitions to disk mounting points according to the characteristics of the file system and the partition sequence relation;
and scanning a file system at the disk mounting point, acquiring file index information, and recording the file index information to the index database.
3. The method of claim 1, wherein the file index information includes a list of files from a root directory to all subdirectories, and/or file attributes.
4. The method of claim 3, wherein the file attributes comprise a virtual machine name with backup version number, backup time, file path, file size, read-write permissions, file creation time, and/or file modification time.
5. The method of claim 1, wherein the file search request contains a key for a file path, the search server sends the file search request to all backup servers to instruct a search engine on each backup server to complete a search, and the backup servers store file index information for virtual machines, comprising:
the backup server distributes the file search request to search engines on the backup servers;
and the search engine searches in the index database according to the keywords to obtain a search result corresponding to the keywords.
6. The method of claim 1, wherein after the search server receives the file search request and before the search server sends the file search request to all backup servers, indicating that the search engine on each backup server completes the search, the backup servers storing file index information for the virtual machines, comprising:
the search server sends the file search request to a cache service through Ajax communication;
if the cache service has records corresponding to the file search request, packaging the records corresponding to the file search request into a Json format, returning the file search request to a search function interface through Ajax communication, and displaying the analyzed Json format data by analyzing the Json format data;
and if the cache service does not have records corresponding to the file search request, the search server sends the file search request to all backup servers to indicate search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines.
7. An instant file indexing and searching apparatus, comprising:
the receiving module is used for receiving a file searching request by the searching server;
the receiving module is further used for receiving and summarizing the search results of the backup servers by the search server;
the sending module is used for sending the file searching request to all backup servers by the searching server to indicate search engines on all the backup servers to complete searching, and the backup servers store file index information of the virtual machines;
the processing module is used for the search server to send the file search request to all backup servers and indicating search engines on all the backup servers to complete the search, and the backup servers store file index information of the virtual machines;
the processing module is further used for enabling each backup server to respectively traverse the disk file of the virtual machine to obtain file index information; recording the file index information of each backup server into an index database of each backup server;
and the search server returns the search result to a display interface and displays the search result to a user.
8. An instant file indexing and searching method, comprising:
each backup server respectively traverses the disk file of the virtual machine to obtain file index information;
the backup server records the file index information of each backup server into an index database of each backup server;
a search server receives a file search request;
the search server sends the file search request to all backup servers;
all the backup servers receive the file search request and indicate search engines on all the backup servers to complete the search of the backup server;
the search engine sends the search result to all backup servers;
all backup servers send the search results to the search server;
the search server receives the search results and summarizes the search results;
and the search server returns the search result to a display interface and displays the search result to the user.
9. An instant file indexing and searching system, comprising: a search server and a backup server,
the backup server is used for respectively traversing the disk files of the virtual machine to obtain file index information;
the backup server is used for recording the file index information of each backup server into the index database of each backup server;
the search server is used for receiving a file search request and sending the file search request to all backup servers;
the backup server is used for receiving the file search request and indicating a search engine on each backup server to complete the search of the backup server, the search engine sends the search result to all the backup servers, and all the backup servers are also used for sending the search result to the search server;
the search server is also used for receiving the search results and gathering the search results, and the search server returns the search results to a display interface and displays the search results to a 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
CN2018106232053 2018-06-15
CN201810623205 2018-06-15

Publications (2)

Publication Number Publication Date
CN109359087A CN109359087A (en) 2019-02-19
CN109359087B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860486B (en) * 2021-02-03 2024-01-12 深圳市木浪云科技有限公司 Method and device for creating data copy
CN114924914B (en) * 2022-05-31 2023-04-25 广州鼎甲计算机科技有限公司 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

Also Published As

Publication number Publication date
CN109359087A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
US20170076002A1 (en) Personalized search
US8504565B2 (en) Full text search capabilities integrated into distributed file systems— incrementally indexing files
US9026512B2 (en) Data object search and retrieval
US8762360B2 (en) Integrating applications within search results
US20130326572A1 (en) Distributed file system consistency mechanism extension for enabling internet video broadcasting
US20160149832A1 (en) Method and apparatus for increasing subresource loading speed
CA2790421C (en) Indexing and searching employing virtual documents
US20080120276A1 (en) Systems and Methods Using Query Patterns to Disambiguate Query Intent
US20110060717A1 (en) Systems and methods for improving web site user experience
US20100036840A1 (en) Presentation of Search Results
WO2007134130A2 (en) Systems and methods for generating statistics from search engine query logs
EP2427834A1 (en) Method and system for search engine indexing and searching using the index
RU2733482C2 (en) Method and system for updating search index database
WO2014193452A1 (en) Centralized management of link data for multiple applications, computers and resources, through operating systems and networked storage services
US20160140230A1 (en) Implicit Collaborative Searching Based on Search History Database
US11232166B2 (en) Networked page access and addressing based on partial categorization indexing
CN109815240B (en) Method, apparatus, device and storage medium for managing index
JP5514486B2 (en) Web page relevance extraction method, apparatus, and program
CN110889023A (en) Distributed multifunctional search engine of elastic search
US10095788B2 (en) Context-sensitive deeplinks
US20150339387A1 (en) Method of and system for furnishing a user of a client device with a network resource
US20130325916A1 (en) Full text search capabilities integrated into distributed file systems - Incrementally Indexing Files
CN109359087B (en) Instant file indexing and searching method, device and system
CN111125156B (en) Data query method and device and electronic equipment
WO2014059851A1 (en) Search server and search method

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