Index Size in bytes

2013-12-18 Thread Siraj Haider
How can I get the size of the whole index in bytes? regards -Siraj (212) 306-0154 This electronic mail message and any attachments may contain information which is privileged, sensitive and/or otherwise exempt from disclosure under applicable law. The

Re: Index Size in bytes

2013-12-18 Thread Michael McCandless
Use Directory.listAll to get all files, then visit each one and call Directory.fileLength, and sum those up? Note that this gives you total size of all commit points, which may be over-counting on Windows in cases where IndexWriter has removed old commit points but IndexReaders still have the