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

Elasticsearch search engine index construction method and device

A search engine and construction method technology, applied in the computer field, can solve problems such as low synchronization efficiency, complex processing, and inability to guarantee integrity, and achieve the effect of ensuring data consistency, solving low efficiency, and solving real-time data synchronization

Active Publication Date: 2021-11-19
HUNAN HUINONG TECH
View PDF10 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This solution has complex processing and low synchronization efficiency when crossing multiple business data sources. In addition, the timing execution mechanism cannot be guaranteed in real time, and data changes between two synchronization time points cannot be reflected in the index in time
[0003] Another common processing method is to synchronize by listening to database log change messages (such as MySql's binlog log). This solution can indeed solve the lack of real-time performance, but a single document in the retrieval system often spans multiple Multiple database instances and tables in the business field, such as the product information of a typical e-commerce system, not only have the basic attributes of the product, but also include information such as its category, seller, evaluation, sales volume, etc., and these information will be stored in the corresponding entity domain In the business database, the database change log of a single table greatly increases the complexity of data processing, and it is impossible to simply determine the range of index documents it affects, such as:
[0004] Only some fields in most monitoring tables need to be included in the index. Changes to fields that are not included in the index will also trigger database change logs. How to deal with the screening and identification of this part of the change log? The validity of the document is affected. One-to-many or many-to-many associated database change logs will generate multiple data change records in multiple associated tables. These change records are continuously generated, and the listener cannot know the status of a certain thing. Whether all the logs have been obtained, the integrity cannot be guaranteed
Even if the obtained records are complete and mapped to index documents, different business scenarios will correspond to different operations, and these operations are difficult to handle uniformly

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
  • Elasticsearch search engine index construction method and device
  • Elasticsearch search engine index construction method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The following will clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0036] see figure 1 , the present invention provides an Elasticsearch search engine index construction method, which relies on the data processing capability of the database and transfers to the cluster processing capability of Flink, which can effectively reduce the burden on the database, and at the same time make full use of the cluster processing and expansion capabilities of Flink, which can It is more convenient to undertake larger-scale index batch construction tasks.

[0037] The business change listens to t...

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 an Elasticsearch search engine index construction method and device. The method comprises the steps that an Flink cluster is used to export full index target data from a database at regular time, and a new index database is created; near-real-time index services monitor a business data change message notification, read latest data from the database, update the latest data to an existing index database, detect whether batch index construction is carried out or not, and update batch index data to the new index database; and alias switching is carried out on Elasticsearch indexes, and an index target is pointed to the new index database. Compared with the prior art, the Elasticsearch search engine index construction method provided by the invention has the advantages that the data synchronization efficiency is improved, and the data consistency in and after the index batch processing construction process is ensured.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for constructing an Elasticsearch search engine index. Background technique [0002] The index of Elasticsearch is usually based on the Logstash synchronization technology, and adopts the index synchronization scheme of regularly executing SQL statements. This solution has complex processing and low synchronization efficiency when crossing multiple business data sources. In addition, the timing execution mechanism cannot be guaranteed in real time, and data changes between two synchronization time points cannot be reflected in the index in time. [0003] Another common processing method is to synchronize by listening to database log change messages (such as MySql's binlog log). This solution can indeed solve the lack of real-time performance, but a single document in the retrieval system often spans multiple Multiple database instances and tables in the bus...

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 Applications(China)
IPC IPC(8): G06F16/22G06F16/23G06F16/242G06F16/27
CPCG06F16/2228G06F16/2433G06F16/23G06F16/27Y02D10/00
Inventor 申斌凡广文
Owner HUNAN HUINONG TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More