Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Commit data to disk ...

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


dragon-fly999 at hotmail

Jan 3, 2012, 5:35 AM

Post #1 of 3 (115 views)
Permalink
Commit data to disk ...

Hi, I'm using Lucene 2.0 and was wondering how to flush/commit index data to disk. It doesn't look like there is a flush() or commit() method in the 2.0 IndexWriter. Is there a way to flush the data without calling close()? Thank you.


erickerickson at gmail

Jan 5, 2012, 5:32 AM

Post #2 of 3 (111 views)
Permalink
Re: Commit data to disk ... [In reply to]

Lucene 2.0? I don't even know how to find the docs any more, I really
suggest you upgrade to something more recent.

In the 2.9 both IndexReader and IndexWriter have commit() methods.

Best
Erick

On Tue, Jan 3, 2012 at 8:35 AM, Dragon Fly <dragon-fly999 [at] hotmail> wrote:
>
> Hi, I'm using Lucene 2.0 and was wondering how to flush/commit index data to disk.  It doesn't look like there is a flush() or commit() method in the 2.0 IndexWriter.  Is there a way to flush the data without calling close()? Thank you.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


dragon-fly999 at hotmail

Jan 5, 2012, 11:44 AM

Post #3 of 3 (103 views)
Permalink
RE: Commit data to disk ... [In reply to]

I think I'll have to upgrade then, thanks.

> Date: Thu, 5 Jan 2012 08:32:48 -0500
> Subject: Re: Commit data to disk ...
> From: erickerickson [at] gmail
> To: java-user [at] lucene
>
> Lucene 2.0? I don't even know how to find the docs any more, I really
> suggest you upgrade to something more recent.
>
> In the 2.9 both IndexReader and IndexWriter have commit() methods.
>
> Best
> Erick
>
> On Tue, Jan 3, 2012 at 8:35 AM, Dragon Fly <dragon-fly999 [at] hotmail> wrote:
> >
> > Hi, I'm using Lucene 2.0 and was wondering how to flush/commit index data to disk. It doesn't look like there is a flush() or commit() method in the 2.0 IndexWriter. Is there a way to flush the data without calling close()? Thank you.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.