Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method of data update, database trigger and SE (search engine)

A search engine and data update technology, which is applied in the search field, can solve the problem that the data cannot be kept consistent in time, and achieve the effect of saving time and improving efficiency

Inactive Publication Date: 2014-02-05
HUAWEI TECH CO LTD
View PDF7 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The invention provides a method for updating data, a database trigger and a search engine to solve the problem that the index data in the search engine and the data of the business subsystem cannot be kept consistent in time

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
  • Method of data update, database trigger and SE (search engine)
  • Method of data update, database trigger and SE (search engine)
  • Method of data update, database trigger and SE (search engine)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] This embodiment provides a method for updating data. The method for updating data is applicable to a search system, and a search engine in the search system can query index data according to the index. The execution subject of the method for updating data in this embodiment is a database trigger.

[0055] Such as figure 1 Shown is a schematic flow chart of the method for updating data according to this embodiment.

[0056] Step 101, when the business data in the business table is updated, an update log is created.

[0057] Wherein, the business table includes the unique identifier of each business data and at least one attribute of each business data, and the update log includes the unique identifier and update type of the updated business data. The update type may be a data addition type, a data deletion type or a data modification type. Specifically, the type of data increase indicates the increase of business data in the business table, and the increase of busines...

Embodiment 2

[0064] This embodiment further explains the steps of triggering the search engine to update the service data in the index data according to the update log in the first embodiment.

[0065] Specifically, in this embodiment, the operation of triggering the search engine to update the index data according to the update log includes:

[0066] If the update type is the data addition type, trigger the search engine to obtain the added business data from the business table based on the unique identifier of the updated business data, and generate an index, index data, and attributes of the index data based on the added business data, so that the search engine can use the The index searches for index data, and the attributes of the index data are the same as those of the updated business data;

[0067] If the update type is the data deletion type, trigger the search engine to delete the index data according to the unique identifier of the updated business data;

[0068] If the update ...

Embodiment 3

[0078] This embodiment provides a method for updating data. The method for updating data is applicable to a search system, and a search engine in the search system can query index data according to the index. The execution subject of the method for updating data in this embodiment is a search engine, specifically, a crawler in the search engine.

[0079] Such as figure 2 Shown is a schematic flow chart of the method for updating data according to this embodiment.

[0080] Step 201, obtain update logs.

[0081] Wherein, the update log is generated when the business data in the business table is updated, the business table includes the unique identifier of each business data and at least one attribute of each business data, and the update log includes the unique identifier and update type of the business data. The update type may be a data addition type, a data deletion type or a data modification type. Specifically, the data addition type indicates that the data in the busi...

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 provides a method of data update, a database trigger and an SE (search engine). The method comprises the following steps: when the attribute of the business data in a business table is updated, establishing an updating log, and triggering the SE to update index data according to the updating log, wherein the business table comprises the unique identification of each business data and at least one attribute of each business data; the updating log comprises the unique identification of the updated business data and updating type; the index data and the updated business data have the same unique identification; the SE is used for searching the index data. According to the method of data update, the database trigger and the SE, disclosed by the invention, the attribute of the search data and the attribute of the business data in the business table can be consistent as much as possible through establishing the updating log and triggering the SE to timely update the index data according to the updating log.

Description

technical field [0001] The invention relates to search technology, in particular to a method for updating data, a database trigger and a search engine. Background technique [0002] Search is an indispensable function in an IT (Information Technology, information technology) system, which can greatly improve the data search speed of an application system. What is commonly used now is the global search function in the IT system, which can search the data of each subsystem in the global scope. At present, a search engine is usually used as a carrier of the search function. Specifically, the search engine first crawls the data of the business subsystem, then segments the data, creates an inverted index, and finds the corresponding data entry by querying the inverted index during the search phase, thereby providing a fast search function. [0003] In practice, the data in the business subsystem will be updated at any time. If the update of the index data in the search engine l...

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
IPC IPC(8): G06F17/30
CPCG06F16/2358G06F16/2365
Inventor 赵卓真
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products