add native.index/get-settings function

Mirrors rest version's get-settings function