Added indexed script support
Added indexed search template support