[TEST] Fixes docs tests
https://github.com/elastic/elasticsearch/commit/587409e893858dac5ca2dd3a78584bacbb424708 introduced a bug where an example of the format of a request which contained placeholder values was attempted to be tested. This change adds `NOTCONSOLE` to that snippet as the immediately following snippet tests a concrete example.
https://github.com/elastic/elasticsearch/commit/220212dd6990567a199185b6d7beea50d2f92f82 introduced a bug because the test substitution was looking for `otherhost` where the snippet contained `oldhost`. This change fixes the substitution