Make search building index only once by add code at LoginAction

By ZhiYu Yang
04 Oct 2014