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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com