Index updating method and apparatus
An index update and index technology, applied in the index field, can solve the problems of wasting advertising platform costs, occupying double disk space, occupying advertising platform server resources, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 