split ddoc definition and index building