added terms lookup support

Allowing lookup of terms value via other documents of different index/type