You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by pk...@apache.org on 2005/10/11 21:01:39 UTC
svn commit: r312936 -
/lucene/nutch/branches/branch-0.7/src/java/org/apache/nutch/searcher/NutchBean.java
Author: pkosiorowski
Date: Tue Oct 11 12:01:35 2005
New Revision: 312936
URL: http://svn.apache.org/viewcvs?rev=312936&view=rev
Log:
NutchBean code cleanup. Contributed by Stefan Groschupf.
Modified:
lucene/nutch/branches/branch-0.7/src/java/org/apache/nutch/searcher/NutchBean.java
Modified: lucene/nutch/branches/branch-0.7/src/java/org/apache/nutch/searcher/NutchBean.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/branch-0.7/src/java/org/apache/nutch/searcher/NutchBean.java?rev=312936&r1=312935&r2=312936&view=diff
==============================================================================
--- lucene/nutch/branches/branch-0.7/src/java/org/apache/nutch/searcher/NutchBean.java (original)
+++ lucene/nutch/branches/branch-0.7/src/java/org/apache/nutch/searcher/NutchBean.java Tue Oct 11 12:01:35 2005
@@ -93,7 +93,7 @@
Vector vDirs=new Vector();
File [] directories = segmentsDir.listFiles();
- for(int i = 0; i < segmentsDir.listFiles().length; i++) {
+ for(int i = 0; i < directories.length; i++) {
File indexdone = new File(directories[i], IndexSegment.DONE_NAME);
if(indexdone.exists() && indexdone.isFile()) {
vDirs.add(directories[i]);