PHOENIX-933 Local index support to Phoenix

Already done in master.