RE: How to update index dynamically

2007-04-12 Thread Tony Qian
You have to refresh your IndexSearcher periodically. Tony From: anson <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: How to update index dynamically Date: Mon, 09 Apr 2007 18:25:57 +0900 I have build a blog project under tomcat5.5 with Lucene2.0. And I want to

Re: How to update index dynamically

2007-04-10 Thread Otis Gospodnetic
Wow, you are right. I never realized that! - Original Message From: Daniel Noll <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, April 10, 2007 8:39:28 PM Subject: Re: How to update index dynamically Otis Gospodnetic wrote: > Anson, > > That'

Re: How to update index dynamically

2007-04-10 Thread Daniel Noll
Otis Gospodnetic wrote: Anson, That's not your real code, is it? Those $ characters in it look incorrect. Are you sure? $ is legal at the front of a variable in Java. :-) Daniel -- Daniel Noll Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, AustraliaPh: +61 2 9280 0699 Web: http

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 > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >Simpy -- http://www.simp

Re: How to update index dynamically

2007-04-09 Thread anson
Erik, thanks. U r right. Once excuting the search action, I will check whether this IndexReader still works on a current version of the index by IndexSearcher#isCurrent(). If not I will open a new IndexSearcher. And now it works well. But I want to know that if index update action offen happens

Re: How to update index dynamically

2007-04-09 Thread Otis Gospodnetic
Anson, That's not your real code, is it? Those $ characters in it look incorrect. Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - Search - Share - Original Message From: anson <[EMAIL PROTECTED]> To: java-user@lucene.apache

Re: How to update index dynamically

2007-04-09 Thread Erik Hatcher
After indexing, you have to open a new IndexSearcher to in order to see new documents. Erik On Apr 9, 2007, at 5:25 AM, anson wrote: 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: -