SOLR-5934: LBHttpSolrServer exception handling improvement and small test improvements.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583214 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5934: Revert 4x commit.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583218 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5936: don't use deprecated solr.IntField field type in Solr example tests (dynamic field '*_pi', using solr.IntField via the 'pint' field type, was removed from the main example schema)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583226 13f79535-47bb-0310-9956-ffa450edef68
Merged revision(s) 1583302 from lucene/dev/trunk:
LUCENE-5560: Cleanup charset handling for Java 7

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583315 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5934: Commit again to 4x - different JIRA caused the failes - LBHttpSolrServer exception handling improvement and small test improvements.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583369 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5544: disregard leftover events after rollback has finished

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583440 13f79535-47bb-0310-9956-ffa450edef68
Merged revision(s) 1583449 from lucene/dev/trunk:
LUCENE-5560: Followup: Cleanup charset handling for Java 7

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583455 13f79535-47bb-0310-9956-ffa450edef68
Merged revision(s) 1583476 from lucene/dev/trunk:
LUCENE-5560: Replace com.google.common.base.Charsets by Java7 StandardCharsets

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583477 13f79535-47bb-0310-9956-ffa450edef68
Merged revision(s) 1583488 from lucene/dev/trunk:
LUCENE-5560: Remove useless exception block

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583489 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5937: Modernize the DIH example config sets

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583501 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5773: CollapsingQParserPlugin should make elevated documents the group head

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583507 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5558: Add TruncateTokenFilter

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583527 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5559: Add missing checks to TokenFilters with numeric arguments

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583531 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5908: Merging commit from trunk (r1583532)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1583536 13f79535-47bb-0310-9956-ffa450edef68
Enhance Lucene's XML based query builder classes, provide a Solr factory to access them.
Refactor to using TermBuilder
lucene-solr: xml-parser: cleanup, bug fixes, add tests

Summary:
 - Maintain backwards compatibility with Lucene, in general, we should be fine.
with 'namespace' clashes between Solr and Lucene builders, as Solr could potentially.
override every one of the Lucene builders and enhance it.
 - Whitespace cleanup, copyright notices.
 - Add `TermFilter` to `CorePlusQueriesParser`
 - Fix token stream API usage, should call end before close. See
[[http://lucene.apache.org/core/4_7_0/core/org/apache/lucene/analysis/TokenStream.html|documentation]]
for workflow (fixes test failures).
 - Ensure positionIncrement is sane (fixes test failures).
 - Add PhraseQuery test, add a test for Term sub-elements.

This is based off branch_4x with XML parser changes (with TermFreq* support).

Test Plan: Test suite runs fine

Reviewers: cpoersch, dcollins, mjustice

Reviewed By: cpoersch

Differential Revision: https://all.phab.dev.bloomberg.com/D65355