function init() {
			if (!oInitPromise) {
				oInitPromise = new Promise(function(resolve, reject) {

					oWorker = new window.Worker(WORKER.URL);

					// listen for confirmation from worker
					oWorker.addEventListener('message', function(oEvent) {
						var oData = oEvent.data;
						resolve(oData && oData[WORKER.RESPONSE_FIELDS.DONE] === true);
					}, false);

					// instruct the worker to fetch the index data
					oWorker.postMessage({
						"cmd": WORKER.COMMANDS.INIT,
						"bIsMsieBrowser": !!Device.browser.msie
					});
				});
			}

			return oInitPromise;
		}
function init() {
			if (!oInitPromise) {
				oInitPromise = new Promise(function(resolve, reject) {

					oWorker = new window.Worker(WORKER.URL);

					// listen for confirmation from worker
					oWorker.addEventListener('message', function(oEvent) {
						var oData = oEvent.data;
						resolve(oData && oData[WORKER.RESPONSE_FIELDS.DONE] === true);
					}, false);

					// instruct the worker to fetch the index data
					oWorker.postMessage({
						"cmd": WORKER.COMMANDS.INIT,
						"bIsMsieBrowser": !!Device.browser.msie
					});
				});
			}

			return oInitPromise;
		}
function init ( ) { if ( ! oInitPromise ) { oInitPromise = new Promise ( function ( resolve , reject ) { oWorker = new window . Worker ( WORKER . URL ) ; // listen for confirmation from worker oWorker . addEventListener ( 'message' , function ( oEvent ) { var oData = oEvent . data ; resolve ( oData && oData [ WORKER . RESPONSE_FIELDS . DONE ] === true ) ; } , false ) ; // instruct the worker to fetch the index data oWorker . postMessage ( { "cmd" : WORKER . COMMANDS . INIT , "bIsMsieBrowser" : ! ! Device . browser . msie } ) ; } ) ; } return oInitPromise ; }
Initializes the setup for client-search

@returns {*}
Initializes the setup for client - search
Initializes the index data