PHOENIX-933 Local index support to Phoenix

Excellent. Would you mind updating this pull request? I think it's ready to get committed, no?