Made storing a field as attribute in the index configurable