Search: start again when end of document is reached