: Thanks Chris. So, assuming that we rebuild the index, delete the old data and
: then execute a commit,
: will the snap scripts take care of reconciling all the data ? Internally, is
: there an update timestamp notion
: used to figure out which unique id records have changed and then synchronize
: them by executing delete/insert ops ?

Ummm... i'm not sure i understand you're question, if you've got a
uniqueKey field, then it doesn't matter what kind of timestamps you have,
Solr will automaticaly delete the old records as you add new records with
the same id.  if you don't have a uniqueKey field, and you want to just
reindex your corpus at moment X and then say "anything older then
timestamp X should be deleted" when you are done, then you can just do a
delete by query using a range query on the date X ... having a
timestamp field that records the moment when something was indexed is
actually very easy, just inlcude a date field with the value of "NOW"
(this will be even easier once i get arround to commiting SOLR-82).

bear in mind, it doesn't have to be a date field ... you could also
record a simple "build number" that you incriment each time you "rebuild"



-Hoss

Reply via email to