solr: Suppress thread interrupted exceptions while auto-committing

Test Plan: Staged rollout

Reviewers: cpoersch, dcollins, ksrivisa

Reviewed By: cpoersch

CC: mjustice

Differential Revision: https://all.phab.dev.bloomberg.com/D127600
Add exception to log message
solr: Modify position increment behavior of GenericTextQueryBuilder and PhraseQueryBuilder

Test Plan: A good unit test is the phrase 'Bank of England said' which appears in the test docs.

Reviewers: cpoersch, dcollins

Reviewed By: cpoersch

CC: raiyenga, mjustice

Differential Revision: https://all.phab.dev.bloomberg.com/D126868
solr: SnapPuller download trace to include bytes-downloaded and bytes-downloaded-per-second

Summary: Noticed this trace and opportunity for including speed and directory when some shards post-bounce seemed a bit slow to recover.

Test Plan: -

Reviewers: raiyenga

Reviewed By: raiyenga

Differential Revision: https://all.phab.dev.bloomberg.com/D128262
solr: LBHttpSolrServer - lazily allocate skipped-zombie-servers list

Summary: -

Test Plan: -

Reviewers: raiyenga

Reviewed By: raiyenga

Differential Revision: https://all.phab.dev.bloomberg.com/D130146
solr: Add ComplexPhraseQuery support for lucene xml queries (DRQS  55880653)

Test Plan: tested some on dev, will write more unit tests

Reviewers: ksrivisa, cpoersch, raiyenga

Reviewed By: ksrivisa

CC: dcollins, raiyenga

Differential Revision: https://all.phab.dev.bloomberg.com/D126290
Differential Revision: https://all.phab.dev.bloomberg.com/D140057
solr: Fix issues with GenericTextQueryBuilder wildcard logic and add wildcard escaping capability.

Test Plan: will test on dev followed by rollout behind a breg

Reviewers: ksrivisa, raiyenga

Reviewed By: raiyenga

CC: cpoersch, dcollins

Differential Revision: https://all.phab.dev.bloomberg.com/D133690
solr: make ShardHandlerFactory maxConnections configurable

Summary: -

Test Plan: -

Reviewers: raiyenga, mjustice, ksrivisa, dcollins

Reviewed By: raiyenga

Differential Revision: https://all.phab.dev.bloomberg.com/D135214
LUCENE-5911: Add MemoryIndex.freeze() to allow for thread-safe searching

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1628155 13f79535-47bb-0310-9956-ffa450edef68
solr: select?replicaAffinity.hostPriorities=hostA=1,hostB=2,hostC=2,hostD,hostE=3 prioritisation support

Summary: -

Test Plan: -

Reviewers: raiyenga, dcollins, mjustice, ksrivisa

Reviewed By: raiyenga

Differential Revision: https://all.phab.dev.bloomberg.com/D137693
Differential Revision: https://all.phab.dev.bloomberg.com/D138931
solr: add logging to help find root cause of writeResponse NPE

Summary: -

Test Plan: -

Reviewers: raiyenga, dcollins, mjustice, ksrivisa

Reviewed By: raiyenga

Differential Revision: https://all.phab.dev.bloomberg.com/D137291
solr: Allow positionIncrement <= 0 for GenericTextQueryBuilder and PhraseQueryBuilder

Test Plan: -

Reviewers: ksrivisa, raiyenga

Reviewed By: raiyenga

CC: cpoersch, dcollins

Differential Revision: https://all.phab.dev.bloomberg.com/D136046
Pawel's fixes for intervals:

 - Intervals scorer in TermFreqScorer
 - Don't return null intervals iterator in ConstantScoreQuery
 - Replace return null to IntervalIterator.NO_MORE_INTERVALS
 - Throw UnsupportedOperationException when cannot collect intervals
bbsolr-4.8.1: cherry-pick of intervals fixes from pawel

Summary: Intervals scorer in TermFreqScorer and MatchAllScorer add support for intervals

Test Plan: Go out in next bbsolr release, or baleene build.

Reviewers: raiyenga, cpoersch, mjustice

Differential Revision: https://all.phab.dev.bloomberg.com/D146074
solr: add createNodeSet.shuffle=(true|false) support, add createNodeSet support for ADDREPLICA

Summary: cherry-picked trunk patch (https://all.phab.dev.bloomberg.com/D140422) and resolved a couple of conflicts

Test Plan: -

Differential Revision: https://all.phab.dev.bloomberg.com/D146930
solr: tweak SearchHandler getDefaultComponents initial capacity

Summary: Trivial change but it could help avoid merge conflicts further down the line. No idea were the 8 came from.

Test Plan: -

Reviewers: dcollins, raiyenga

Reviewed By: dcollins

Differential Revision: https://all.phab.dev.bloomberg.com/D154236
solr: make overseer delays more visible within logs

Summary: -

Test Plan: -

Reviewers: raiyenga, dcollins, mjustice, ksrivisa

Reviewed By: dcollins

Differential Revision: https://all.phab.dev.bloomberg.com/D154964
Differential Revision: https://all.phab.dev.bloomberg.com/D169098
solr: add CoreAdminHandler trace to assist debugging

Summary: DELETE REPLICA on some machines mysteriously failed to delete the instance directory, adding trace to assist further debugging if/when it happens again.

Test Plan: -

Reviewers: raiyenga, dcollins, mjustice, ksrivisa

Reviewed By: mjustice

Differential Revision: https://all.phab.dev.bloomberg.com/D160052
solr: tweak some thread names

Summary: Append core name to RecoveryThread. Name the onReconnect thread as such, with timestamp suffix for chronological ordering.

Test Plan: -

Reviewers: dcollins, raiyenga, ksrivisa, mjustice

Reviewed By: dcollins

Differential Revision: https://all.phab.dev.bloomberg.com/D169376
bbsolr-4.8.1-news:Using interval query to do span searches

Summary:
NearFirstQuery,NearQuery and ComplexPhraseNearQuery are added to execute span type of queries with interval query implementation
ComplexPhraseNearQuery is preferred over the GenericTextQuery for the span terms in case they result in multiple terms as GenericTextQuery would boil down to PhraseQuery which is not working well with Intervals yet..
Known limitations: 1.Analyser chain is not applied. Even if this is applied MatchAllDocs would not work under Interval as of now.

Test Plan: unit tested. Works fine with prefix,(multi)wildcarded queries. test files are included

Reviewers: mjustice, cpoersch, raiyenga

Reviewed By: mjustice

CC: dcollins

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