Add Sunspot.commit where necessary