PHOENIX-933 Local index support to Phoenix

Updated pull request after resolving conflicts and handling James review comments.
done.