How to keep Lucene index synchronized with Mysql database?

Posted by ????? on Stack Overflow See other posts from Stack Overflow or by ?????
Published on 2012-08-23T03:05:52Z Indexed on 2012/09/03 9:38 UTC
Read the original article Hit count: 162

Filed under:
|
|

I am trying to utilize Lucene to develop full text search in my application, which need to build index based on my mysql database. I was wondering is how to keep these index synchronized with db? I came up with to ways: 1) add extra code in business logic tightly to update the search index . 2) running a separated task to rebuild the index periodically.

do you have any other approaches? and what do you think is the best way? Any comments would be appreciate, thanks in advance!

© Stack Overflow or respective owner

Related posts about java

Related posts about mysql