Aggregations: apply 'from' if there is one shard result.
Core: apply 'from' if there is one shard result.
[TEST] speed up HighlightSearchTests a bit

Randomize rewrite methods instead of trying them all when highlighting multi term queries with postings highlighter
Rely on search type randomization and remove all the explicit setSearchType calls as they are not needed anymore
Remove explicit `.from`, `.size` and `.explain`, not needed and might slow tests down (especially explain)
Core: Protects against: 'from + size > scoreDocs.length' in case only single shard response
Core: reuse Lucene's TermsEnum for faster _uid/version lookup during

Reusing Lucene's TermsEnum for _uid/version lookups gives a small
indexing (updates) speedup and brings us a closer to not having
to spend RAM on bloom filters.

Closes #6212
[TEST] Ensure cluster size reflected in the cluster state

We perform some management operations that require the cluster to be
consistent with respect to the number of nodes in the cluster state
/ visible to the master in order to rely on the ack mechanism. This
only applies to the test infrastructure when nodes are not explicitly
started / stopped as well as while tearing down the cluster and wiping
indices after the tests.
[TEST] size should start from 1, top_hits aggregation doesn't support size <= 0
[TOOLS] Added simple S3 Download tool based on boto
[TEST] Added sort duel between a single shard index and a multi shard index.
[BUILD] Java version line was missleading

calling `java -version` might not print the java version that
is actually used to run maven. This commit prints a more accurate version
Geo: Issue with polygons near date line

If a polygon is constructed which overlaps the date line but has a hole which lies entirely one to one side of the date line, JTS error saying that the hole is not within the bounds of the polygon because the code which splits the polygon either side of the date line does not add the hole to the correct component of the final set of polygons.  The fix ensures this selection happens correctly.

Closes #6179
Object and Type parsing: Fix include_in_all in type

include_in_all can also be set on type level (root object).
This fixes a regression introduced  in #6093

closes #6304
[BUILD] Check for nocommit in source files before building release
[BUILD] Promote artifacts from strings to their own type
[DOCS] Clarify that only_expunge_deletes doesn't override expunge_deletes_allowed
[TEST] make sure that the -Dtests.rest.blacklist parameter works on windows too

Some reserved characters need to be replaced in the test section names, which gets parsed as a path although it isn't a filename
[TEST] added wait for relocationg shards to cat.shards REST test

Adding the second index might cause relocation of existing shards depending on the number of nodes available, let's wait for relocation to be finished before going ahead and checking the cat shards outpu
[DOCS] Add imap river and security plugin to docs
[DOCS] Add community supported MSI installer to docs
[DOCS] Fielddata cat API added in 1.2.0