Add a rewind function to SearchResultSet
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 13 Apr 2016 19:21:54 +0000 (12:21 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 13 Apr 2016 21:15:31 +0000 (14:15 -0700)
commit15483b22d7d504e3c22cfc832296d52f5c6ad340
tree7036cb309cecf0e11b1b05fb18ce02c7bc2c8f93
parent46b25eb3a3bb751f827b13b039b1809631826b42
Add a rewind function to SearchResultSet

This is implemented in CirrusSearch so the result set can be looped
through multiple times. In general having a rewind function on any
iterator is probably a good idea, so pushing it into the upstream
interface.

Change-Id: Iaac9c11d8742288610011a2a0f6282944d35d5f3
includes/search/SearchNearMatchResultSet.php
includes/search/SearchResultSet.php
includes/search/SqlSearchResultSet.php