Added support to switch index mode to http,kafka queue