spaceKey is now added into document data before preprocessing