Docs: Mention that that p/c queries and filters do not work in the delete-by-query api.
MLT Query: fix percent_terms_to_match

The parameter `percent_terms_to_match` (percentage of terms that must match in
the generated query) was wrongly set to the top level boolean query. This
would lead to zero or all results type of situations. This commit ensures that
the parameter is indeed applied to the query of generated terms.

Closes #7754
[CORE] Add ThreadPool.terminate to streamline shutdown

Shutting down threadpools and executor services is done in very similar
fashion across the codebase. This commit streamlines the process by
adding a terminate method to ThreadPool.
[TEST] Reenable threadleak filters with 5 sec. lingering
[TEST] add regular scroll REST test

Closes #7860
Add a listener thread pool
Today, when executing an action (mainly when using the Java API), a listener threaded flag can be set to true in order to execute the listener on a different thread pool. Today, this thread pool is the generic thread pool, which is cached. This can create problems for Java clients (mainly) around potential thread explosion.
Introduce a new thread pool called listener, that is fixed sized and defaults to the half the cores maxed at 10, and use it where listeners are executed.
relates to #5152
closes #7837
[TEST] improved regular scroll REST test

The intermediate document that gets indexed has now a non existing id, and we make sure it doesn't get returned.
[TRANSPORT] never send requests after transport service is stopped

With local transport or any transport that doesn't necessarily send
notification if connections are closed we might miss a node
disconnection and the request handler hangs forever / until the timeout
kicks in. This window only exists during shutdown and is likely
unproblematic in practice but tests might run into this problem when
local transport is used.
Aggs - support for arrays of numeric values in include/exclude clauses

Closes #7714
[TEST] improved regular scroll REST test

Added sort clause by field and checked docs returned each time
Update getting-started.asciidoc

zip and tar is archive, deb and rpm is package.

Closes #7749
Update indices.get_mapping.json
Docs: In the code there is the `d` option.

Documenting a behaviour that is present in the code and works.

Closes #7794
Docs: bad text wrapping

On the page http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html

even on a huge monitor the text is being wrapped the next way
```
mapping:
ipod, i-pod, i pod => ipod, i-pod, i pod
mapping:
ipod, i-pod, i pod => ipod
```

So one can think that "mapping:" is not in comment and is a part of syntax. But the lines are less than 80 chars, so perhaps the problem is in the page layout and there may be some other pages in the reference where the text is also being wrapped in an undesirable way.

Closes #7739
Update stemmer-tokenfilter.asciidoc

Change the `minimal_english` link to a publicly accessible URL
Tests: always run Lucene's CheckIndex when shards are closed in tests and fail the test if corruption is detected

Today we only run 10% of the time, and the test doesn't fail when
corruption is detected.

I think it's better to always run and fail the test, so we can catch
any possible resiliency bugs in Lucene/Elasticsearch causing corruption.

For known tests that create corrupted indices, it's easy to set
MockFSDirectoryService.CHECK_INDEX_ON_CLOSE to false...

Closes #7730
don't CheckIndex for this test case