fixed a bug where the search shard key was not set properly