You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Pradeep Kumar K <pr...@robosoftin.com> on 2002/04/08 01:56:53 UTC

why "segments" files?

Hi all

In my code
IndexWriter inwr =new Indexwriter(new index(),null,create);
where  index.java is the directory.



when create =true

IndexWriter inwr =new IndexWriter(new index(),null,create);
I found that a file named "segments" is created.

when create=false
IndexWriter inwr =new IndexWriter(new index(),null,create);

I found that it is trying to read the file named "segments" even if
there are other files which I added.

Can anybody tell me how this naming of files is carried out in lucene.

I was fully confused how this "segments" file is getting created. From
lucene source code(index/segmentInfos.java) I found that it is hard
coded as "segments".
Any body knows the idea behind this?

hope any body from developer side clear my doubt.

Pradeep




--------------------------------------------------------------
Robosoft Technologies, Mangalore, India



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>