LUCENE-5980: Don't let document length overflow.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10@1642623 13f79535-47bb-0310-9956-ffa450edef68
SOLR-6510: fix collapse on docvalues, empty index

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10@1642624 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-6042: fix CustomScoreQuery explain to properly factor boost

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10@1642625 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-6042: fix test bug

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10@1642626 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5948: RateLimiter now fully inits itself on init

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_10@1642627 13f79535-47bb-0310-9956-ffa450edef68