Re: Reloading a searcher

2007-10-25 Thread Erick Erickson
What happens if you close the writer before instantiating a new searcher? I can't say for sure whether it matters, but it's worth a try.. Erick On 10/25/07, Guilherme Barile <[EMAIL PROTECTED]> wrote: > > Hello > I wrote a simple class to abstract searching on a text file > (generate by a

Reloading a searcher

2007-10-25 Thread Guilherme Barile
Hello I wrote a simple class to abstract searching on a text file (generate by a legacy system). class MyFile { private Searcher s; private long timestamp; } It creates a timer and checks every ten minutes if textfile.lastModified() is diferent from the number it cached on times