Update deprecated syntax.
Merge pull request #234 from juliandunn/search-iterator-syntax

Update deprecated syntax.