Elasticsearch do site search, index and MySQL data table synchronization problem

Source: Internet
Author: User
Using Elasticsearch to do site search, background frame is laravel, so use this laravel package, "Elasticquent" (https://github.com/elasticquent/Elasticquent) ,

Problem:
If there is a artiles table in MySQL, and now there is a new article to join, then how does the Elasticsearch index automatically synchronize the data in the MySQL artiles table?

Reply content:

Using Elasticsearch to do site search, background frame is laravel, so use this laravel package, "Elasticquent" (https://github.com/elasticquent/Elasticquent) ,

Problem:
If there is a artiles table in MySQL, and now there is a new article to join, then how does the Elasticsearch index automatically synchronize the data in the MySQL artiles table?

and es.cn on the same content ....
Well, I'll stick around, too.

There are several ways to look at the choice:
1. Double write in the business system

2. Use tools such as ELASTICSEARCH-JDBC to do full and incremental synchronization

3. Use Ali's Canal to do database Binlog->kafka->es synchronization, need to develop, and rely on more, small companies choose to be cautious about it

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.