How to use "point-in-time" feature

2007-07-10 Thread anson
ference on making index, searching between Lucene2.0 and Lucene2.2) Best regards Anson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Should the IndexSearcher be closed after very search completed

2007-07-09 Thread anson
lose(); >> >this.indexSearcher=new IndexSearcher >> >(getIndexDirectory()); >> >ir=indexSearcher.getIndexReader(); >> >if(ir.hasDeletions()){ >> >if (this.indexWriter != null) { >> >

Re: Should the IndexSearcher be closed after very search completed

2007-07-09 Thread anson
; > } > } > } > return this.indexSearcher; > } >} > > >Best regards >Anson > >- >To unsubscribe, e-mail: [EMAIL PRO

Should the IndexSearcher be closed after very search completed

2007-07-09 Thread anson
) { this.indexWriter.optimize(); } } } return this.indexSearcher; } } Best regards Anson - To

Re: How to update index dynamically

2007-04-09 Thread anson
Hi Otis Thanks for your reply. Yes, I just means it's a variable. I guss people can read it. Pls forgive my lazy. >Anson, > >That's not your real code, is it? Those $ characters in it look incorrect. > >Otis > . . . . . . . . . . . . . . . . . . . . . . .

Re: How to update index dynamically

2007-04-09 Thread anson
happens, the IndexSearcher also need create many times, what influence well be caused on my blog system. Have u know something about it. Best regards. >After indexing, you have to open a new IndexSearcher to in order to see new > documents. > > Erik > > >On Apr 9, 2007, at

How to update index dynamically

2007-04-09 Thread anson
I have build a blog project under tomcat5.5 with Lucene2.0. And I want to search my blog by full text, but there is somthing wrong: -- The project flow: (1) On tomcat start I wrote a listener to create a index file if the index is never created.(It's