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 Chris Lu <ch...@gmail.com> on 2008/05/08 00:53:19 UTC

how to change the segment file names

Currently, segment file names all start with _0, and increase with each new
segment created. But seems there is no easy way to change the segment file
names.

This causes trouble when copying one index to another index's directory, if
the .cfs files have the same name.

How to change the segmant file names after it's built?
Or, how to set a different starting counter for the segment file names?

Thanks!

-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes
DBSight customer, a shopping comparison site, (anonymous per request) got
2.6 Million Euro funding!

Re: how to change the segment file names

Posted by Chris Hostetter <ho...@fucit.org>.
: Currently, segment file names all start with _0, and increase with each new
: segment created. But seems there is no easy way to change the segment file
: names.
: 
: This causes trouble when copying one index to another index's directory, if
: the .cfs files have the same name.

This isn't something that's really supported in Lucene.  A Lucene index is 
a directory -- you should treat the entire directory as special, and not 
add your own files (or files from another Lucene index) in to it.


-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org