document bucket type determination