This isn't something you can disable in Lucene, currently. In general, how Lucene represents the index as files is "private" to it -- it's free to change from release to release.
That said, we are thinking of moving away from doc stores, with LUCENE-2324. Now that both stored fields & term vectors can be bulk-copied during merging, the optimization does not buy us as much as it did before. Can you explain in more detail what you are doing w/ Lucene that requires the doc stores to not be shared? EG for splitting an index, there is the multi-pass index splitter (in contrib/misc). Mike On Wed, May 12, 2010 at 5:33 AM, Ivan Vasilev <ivasi...@sirma.bg> wrote: > Hi Guys, > > Can anybody tell me how to avoid sharing of docStore files (term vectors & > stored fields)? I mean to avoid creation of cfx files. > > This is important for us because we support some operations like splitting > index, updating index fields (via running optimization that has some > differences compare to normal optimization). > > With Lucene 2.4.X we used constructor of IndexWriter that used "autoCommit" > parameter. We set it to "true" and this forced each flush to be done in a > new .cfs file. > Is there now some way to do it? > > Cheers, > Ivan > > --------------------------------------------------------------------- > 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