How can I merge .cfx and .cfs into a single cfs file?

2010-05-04 Thread 张志田
Hi all, I have an index task which will index thousands of records with lucene 3.0.1. My confusion is lucene will always create a .cfx and a .cfs file in the file system, sometimes more, while I thought it should create a single .cfs file if I optimize the index data. Is it by design? If yes, i

AW: How can I merge .cfx and .cfs into a single cfs file?

2010-05-05 Thread Uwe Goetzke
handles. Uwe -Ursprüngliche Nachricht- Von: 张志田 [mailto:zhitian.zh...@dianping.com] Gesendet: Mittwoch, 5. Mai 2010 08:24 An: java-user@lucene.apache.org Betreff: How can I merge .cfx and .cfs into a single cfs file? Hi all, I have an index task which will index thousands of records with luce

Re: How can I merge .cfx and .cfs into a single cfs file?

2010-05-05 Thread 张志田
be consistent? Thanks, Garry - Original Message - From: "Uwe Goetzke" To: Sent: Wednesday, May 05, 2010 3:57 PM Subject: AW: How can I merge .cfx and .cfs into a single cfs file? Index all into a directory and determine the size of all files in it. From http://lucene.apach

Re: How can I merge .cfx and .cfs into a single cfs file?

2010-05-05 Thread Michael McCandless
x. I understand the .cfx is used to store the term vectors etc, but why > does the index result not seem to be consistent? > > Thanks, > Garry > - Original Message - > From: "Uwe Goetzke" > To: > Sent: Wednesday, May 05, 2010 3:57 PM > Subject: AW:

Re: How can I merge .cfx and .cfs into a single cfs file?

2010-05-05 Thread 张志田
Thank you Mike. Garry - Original Message - From: "Michael McCandless" To: Sent: Wednesday, May 05, 2010 8:24 PM Subject: Re: How can I merge .cfx and .cfs into a single cfs file? Lucene considers an index with a single .cfx and a single .cfs as optimized. Also, note that