Adding support for callable object on index configuration