add a configurable doc index