Rewrite of rebuildTermSearchKey

* added command line control over batch size, start row, etc
* use row id for batching
* added progress reporting

Change-Id: I4d2b9fcaa9d848a96540e51fdc385355e0e466d0
Merge "Rewrite of rebuildTermSearchKey"