I use
IndexSegment -local /opt/data/segments/20040906175922
to index a segment. When the process finished, no index directory create in
/opt/data/segments/20040906175922 ,and I found a directory named
"/tmp/workingIndexDir/index" has been created.
I study the code of the main method in net.nutch.indexer.IndexSegment.
in these codes:
-----------------------------------------
for (int i = 0; i < args.length; i++) {
if (args[i] != null) {
if (args[i].equals("-max")) { // parse -max option
maxDocs = Integer.parseInt(args[++i]);
} else if (args[i].equals("-dir")) {
i++;
localWorkingDir = new File(args[i++]);
} else {
srcDir = new File(args[i++]);
}
}
}
------------------------------------------
if we use
IndexSegment -local /opt/data/segments/20040906175922 -dir /myworksingdir
then the srcDir will be "/myworksingdir",not
"/opt/data/segments/20040906175922 "
ansi
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers