I'm a complete newbie with Solr, so bear with me. :)
In my current project, I have a very simple database - there is only one table containing 4 fields: id, name, subject, msg.
As I understand it, every time a new record is added (or deleted), I need to add this record to the index, performing basically two operations: inserting the record into the database and adding it to the index.
Is this a standard procedure, or is there a way to redirect Solr to automatically reindex the database table, either at a certain interval, or if there are updates?
In addition, since the table is so simple, does it make sense to store this information in the database? Why not just keep it in the Solr index, given that I want the entries to be searchable by name, subject, and msg?
My setup is Java, Hibernate, MySQL, and Solrj.
source share