Re: How many documents in each Lucene segment?

2012-10-16 Thread Lance Norskog
CheckIndex prints these stats. java -cp lucene-core-WHATEVER.jar org.apache.lucene.index.CheckIndex - Original Message - | From: "Shawn Heisey" | To: solr-user@lucene.apache.org | Sent: Monday, October 15, 2012 9:46:33 PM | Subject: Re: How many documents in each Lucene segmen

Re: How many documents in each Lucene segment?

2012-10-15 Thread Shawn Heisey
On 10/15/2012 8:06 PM, Michael Ryan wrote: Easiest way I know of without parsing any of the index files is to take the size of the fdx file in bytes and divide by 8. This will give you the exact number of documents before 4.0, and a close approximation in 4.0. Though, the fdx file might not be

RE: How many documents in each Lucene segment?

2012-10-15 Thread Michael Ryan
Easiest way I know of without parsing any of the index files is to take the size of the fdx file in bytes and divide by 8. This will give you the exact number of documents before 4.0, and a close approximation in 4.0. Though, the fdx file might not be on disk if you haven't committed. -Michael