Replace Lucene while-loop with more Scala-like Stream.continually idiom.