This topic has been discussed a number of times, I suggest you search the mail archives as that will get you very complete answers more quickly. See http://www.gossamer-threads.com/lists/lucene/java-user/
If that doesn't get you any help, let us know. Best Erick On 8/24/07, Kai Hu <[EMAIL PROTECTED]> wrote: > > Hi,all > > I want user could search record after he/she insert a record > immediately use lucene, > > When user insert a record ,I add the document into the index files. When > search I new an IndexSearcher instance everytime to search the new > records,but it is unefficient, because indexSearcher will cost much time > in read or sort documents. If I only use a single IndexSearcher , it > cannot search the newly committed changes . Is there any better way? > Help me ,thanks.... > > > > kai > > > >