Use id accessor for building document index