Update search example to use `take` to limit results [ci skip]

Closes #515.