add logging for max document frequency