support configuration of index and bag fields