Redefined design of elastic search