add search, some more index operations, refresh_index command, fixes for generator