add entity to doc index