Thanks Robert for pointing out the difference. On Sun, Jan 11, 2015 at 10:29 PM, Robert Muir <rcm...@gmail.com> wrote:
> files are either per-segment or per-commit. > > the first only returns per-segment files. this means it won't include > any per-commit files: > * segments_N itself > * generational .liv for deletes > * generational .fnm/.dvd/etc for docvalues updates. > Understood. These files belong to a commit and not any segment. I didn't think of this earlier. > > the second includes per-commit files, too. it doesnt include the > segments_N itself because your code passes 'false' for that. > > On Sun, Jan 11, 2015 at 10:49 AM, Varun Thacker > <varunthacker1...@gmail.com> wrote: > > I wanted to know whats the difference betwen the two ways that I am > getting > > a list of all segment files belonging to a segment? > > > > method1 never returns .liv files. > > > > https://gist.github.com/vthacker/98065232c3d2da579700 > > > > -- > > > > > > Regards, > > Varun Thacker > > http://www.vthacker.in/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Regards, Varun Thacker http://www.vthacker.in/