[TEST] Try to speed up REST tests by reducing max number of replicas and shards
[TEST] Use a pooling connection manager for REST tests
Docs: Grammar correction

Closes #8702
[TEST] Don't fail test if dummy doc is not found

Relates to #8706
[TEST] Speed up recoveries if tests.nighly=true
[TEST] Use private random instance to build test cluster config
[TEST] make sure number of shard is low in network corruption tests
Add java documentation for aggregations

Buckets:
--------

* terms
* range
* global
* filter
* filters
* missing
* nested
* reverse nested
* children
* significant terms
* date range
* ip range
* range
* histogram
* date histogram
* geo distance
* geo hash grid

Metrics:
--------

* min
* max
* sum
* avg
* stats
* extended stats
* value count
* percentiles
* percentile rank
* cardinality
* geo bounds
* top hits
* scripted metric
[TEST] Mute CircuitBreakerServiceTests.testMemoryBreaker

Relates to #8710
[TEST] wait for all shards to be allocated before IndexStatsTests runs
Docs: Fixed bad link to top-hits agg
[TEST] Move NoMergePolicyProvider into it's own class
[TEST] Ensure that all flushes happen on PeerRecovery tests
Fixing typo

Closes #8713
Remove java facet documentation in master

As we did in reference guide, we need to remove facet java code in master branch.
java: QueryBuilders cleanup (add and deprecate)

Some QueryBuilders are missing or have a different naming than the other ones.

This patch is applied to branch 1.x and master (elasticsearch 1.5 and 2.0):

Added
-----

* `templateQuery(...)`
* `commonTermsQuery(...)`
* `queryStringQuery(...)`
* `simpleQueryStringQuery(...)`

Deprecated
----------

* `commonTerms(...)`
* `queryString(...)`
* `simpleQueryString(...)`
[TEST] Ensure we have a mapping for all types on open/close
Remove unused member / argument on Store
bin/elasticsearch: add help, fix endless loop

This change adds command line help for all options to the es start script.
Both '-h' and '--help' options are accepted.

Also, an endless busy loop in the long options parser was fixed: running the
script with a long opt parameter w/o value (e.g. "elasticsearch --buuuurrrnn")
the long option parser would end up in an endless busy loop.

Signed-off-by: Thilo Fromm <github@thilo-fromm.de>
Added `inner_hits` feature that allows to include nested hits.

Inner hits allows to embed nested inner objects, children documents or the parent document that contributed to the matching of the returned search hit as inner hits, which would otherwise be hidden.

Closes #8153
Closes #3022
Closes #3152