Calling `reset()` on an object causes warnings starting in PHP 8.2.
This commit replaces one instance with ArrayIterator object and
getIterator() method following a recommendation in the deprecation
notice RFC.
We have the backend suggestion system done, but not the UI.
I can tell that this is going to require lots of tweaking to get just
right. I suspect it might be a good idea to explore some possible
tweakable settings we can add to allow people to tweak the engine to
better suit their individual setups.
Next up:
- Updating the index
- Adding words to the index in the first place
- Saving the index if changes were made
- Tighter integration into the existing search system to avoid changes
to other modules