added scripts for manipulating indices and templates.
tweaks to index. more cpus. refactor redis stream.

minor changes to similar search