[kibana] remove debug code
[courier/fetch/segmented] infer the totalSize from the flattened search source