I really don’t know what’s the difference between both and so I don’t know what I need to refresh my indexes on-the-fly whenever a change has been made to the database. That’s what I want: to keep my search function up to date to the last change. Anybody can help me?
If it helps, I am using MySQL for persistence and PHP for using the API.
The principal is that main is the parent index and delta the child. These two works together.
Main creates the huge index and Delta just a little index with only new records. With the MySql table you need to create you take care about the last id indexed by the main index.
The delta does a lookup in that MySql table to see from where it needs to get the new records (if id is bigger than last, its a new document). With command line you can run indexer to merge main+delta and delta will clear his index (remove documents who are added to the main index) so it keeps fast and small.
The main delta schema can handle (almost realtime) INSERT, UPDATE and DELETE