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]
lose();
>> >this.indexSearcher=new IndexSearcher
>> >(getIndexDirectory());
>> >ir=indexSearcher.getIndexReader();
>> >if(ir.hasDeletions()){
>> >if (this.indexWriter != null) {
>> >
;
> }
> }
> }
> return this.indexSearcher;
> }
>}
>
>
>Best regards
>Anson
>
>-
>To unsubscribe, e-mail: [EMAIL PRO
) {
this.indexWriter.optimize();
}
}
}
return this.indexSearcher;
}
}
Best regards
Anson
-
To
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
> . . . . . . . . . . . . . . . . . . . . . . .
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
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