Bugfixes in indexing similarity server and similarity update ccommand code