SERVER-14964 collect debug stats for find and update if log level is greater than zero
SERVER-15287 Can't use index key pattern plugin fields to provide sort

(cherry picked from commit ad1dafb013342faae7e998586a0c35b70ba75636)
Merge remote-tracking branch 'upstream/v2.6' into v2.6