I don't think this is implemented [yet] today. You'd have to implement the Directory, IndexInput and IndexOutput classes, to make this work.
Do you have a hard 2GB limit on index files? Setting maxMergeDocs/Size (via LogByteSizeMergePolicy) lets you approximately limit the size... Mike On Thu, Jan 7, 2010 at 3:32 AM, Dvora <barak.ya...@gmail.com> wrote: > > Hi all, > > According to the FAQ, "An even more complex and optimal solution: > Write a version of FSDirectory that, when a file exceeds 2GB, creates a > subdirectory and represents the file as a series of files." > > Is that solution implemented already? If not, can you guide me please how > can I achieve that? Is this solution requires changes in the Reader as well? > > Thanks. > > > -- > View this message in context: > http://old.nabble.com/Is-there-a-way-to-limit-the-size-of-an-index--tp27056573p27056573.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org