(PUP-2741) remove search function from puppet 4

Merge this removal into Puppet-4 branch after having merged PR-2750 to master, and master to puppet-4.

This PR is really just the https://github.com/hlindberg/puppet/commit/150a0b204326eb5463289c0f250ec6a3621d5b06