PHOENIX-933 Local index support to Phoenix

Isn't this change already in master (hopefully)?