Unlock instant, AI-driven research and patent intelligence for your innovation.

Index update method and device

An index update and index technology, applied in the field of indexing, can solve the problems of occupying advertising platform server resources, wasting advertising platform costs, and occupying double disk space.

Active Publication Date: 2019-03-08
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above-mentioned existing index update technology has the following disadvantages: it is necessary to set a main directory and a backup directory for storing index information in each server, as well as a main memory space and a backup memory space, so as to realize the update of the index information of each server, which not only occupies a single Double the disk space of the server, and when the advertising platform has multiple servers, it will occupy a large amount of server resources of the advertising platform, wasting a lot of cost of the advertising platform

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Index update method and device
  • Index update method and device
  • Index update method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] refer to figure 1 , which shows a schematic flowchart of an index update method in an embodiment of the present invention, which may specifically include:

[0030] Step 110, for each index segment of the index, search for each server node where each index segment is located.

[0031] Wherein, the index may be a commodity index and / or an advertisement index in e-commerce, and of course may also be an index in other fields.

[0032] The index may be provided by a distributed server cluster, and each server node in the distributed server cluster provides an index service for a certain index segment of the index. Preferably, each server node can store the entire index or store an index segment of the index. In addition, each index segment of the index can be fixed or variable, and can be set by the control server in the distributed server cluster according to the actual situation. Therefore, each server node where each index segment is located, Correspondence can be fixe...

Embodiment 2

[0049] refer to figure 2 , which shows a schematic flowchart of another index update method according to an embodiment of the present invention, which may specifically include:

[0050] Step 210, for each index segment of the index, search for each server node where each index segment is located.

[0051] Step 220, for each server node where each index segment is located, according to the total visits to each server where the index segment is located, and the load capacity of each updated server node and the load capacity of each non-updated server node, each At least one server node is selected from each unupdated server node; the number of the at least one server node is less than the number of server nodes where the index segments are located.

[0052] In practical application, for each retrieval request received by the control server, for each request, it actually needs to retrieve corresponding results in the entire index. Then in a distributed server cluster, for a re...

Embodiment 3

[0077] refer to image 3 , which shows a schematic structural diagram of an index updating device according to an embodiment of the present invention, which may specifically include:

[0078] The server node search module 310 is adapted to, for each index segment of the index, search for each server node where each index segment is located.

[0079] The server node selection module 320 is suitable for each server node where each index segment is located, selects at least one server node from each unupdated server node each time, and suspends the index service; the number of at least one server node is less than the index segment The number of server nodes where the segment resides.

[0080] The index update module 330 is adapted to update the index in at least one server node, and restore the index service after the update is completed.

[0081] In practical applications, the index updating apparatus in the embodiment of the present invention may be set in the control server...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an index updating method and apparatus. The method comprises: for each index segment of an index, all server nodes where each index segment is located are searched; for all server nodes where each index segment is located, at least one server node is selected from all server nodes that are not updated each time and an index service is suspended, wherein the number of the at least one server node is less than the number of the server nodes where the index segments are located; and the index in the at least one server node is updated and the index service is restored after updating completion. According to the invention, on the premise that the index service demand is satisfied, index updating of a distributed server cluster providing an index service can be completed in batches rapidly without the need to occupy double storage space of a single server node, thereby substantially saving the storage resources and costs of the distributed server cluster, like reducing the storage space of the server node of the distributed server cluster.

Description

technical field [0001] The present invention relates to the technical field of indexing, in particular to an index updating method and device. Background technique [0002] The current web search service technology has been applied in many aspects, such as in an advertising platform. [0003] For the advertising platform, each advertiser will register an advertising account on the advertising platform, and then the advertiser can log in to the advertising platform in its client, upload the edited advertising content data to the advertising platform, and Select one or more search terms for each advertisement content data. Then the advertisement platform server will construct an advertisement index for the advertisement content data of these advertisement accounts and other data in the network. Since the data in the network is constantly updated and changed, the advertising platform server needs to generate a new advertisement index in a timely manner according to the data c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/10
Inventor 孙鹏
Owner BEIJING QIHOO TECH CO LTD