adding routing to document indexes