test for bytesref stubstring function
use substring(BytesRef) in SubstrFunction
Merge pull request #920 from crate/dobe-bytesrefsubstr

test for bytesref stubstring function
fix concurrency deadlocks
limit the number of threads used for collecting
keep stacktrace on IndexShardMissingException