Author: j16sdiz
Date: 2008-12-21 10:06:37 +0000 (Sun, 21 Dec 2008)
New Revision: 24697
Modified:
trunk/plugins/XMLLibrarian/XMLLibrarian.java
Log:
ugh.
Modified: trunk/plugins/XMLLibrarian/XMLLibrarian.java
===================================================================
--- trunk/plugins/XMLLibrarian/XMLLibrarian.java 2008-12-21 09:42:24 UTC
(rev 24696)
+++ trunk/plugins/XMLLibrarian/XMLLibrarian.java 2008-12-21 10:06:37 UTC
(rev 24697)
@@ -573,18 +573,19 @@
DEFAULT_INDEX_SITE = indexuri;
String[] searchWords = search.split("[^\\p{L}\\{N}]+");
// Return results in order.
- LinkedHashSet<URIWrapper> hs;
+ LinkedHashSet<URIWrapper> hs = null;
/*
* search for each string in the search list
* only the common results to all words are returned as
final result
*
*/
try{
- for(String searchWord : searchWords[i]) {
+ for (String s : searchWords) {
+ searchWord = s;
if (searchWord.length() < 3)
continue; //
xmlspider don't include words length < 3, have to fix this
- Vector<URIWrapper> keyuris =
getIndex(searchWords[i]);
+ Vector<URIWrapper> keyuris =
getIndex(searchWord);
if (hs == null)
hs = new
LinkedHashSet<URIWrapper>(keyuris);
else
@@ -700,12 +701,11 @@
saxParser.parse(is, new LibrarianHandler(new
Vector<URIWrapper>()));
is.close();
} catch (Throwable err) {
- err.printStackTrace ();}
+ err.printStackTrace();
} finally {
res.asBucket().free();
}
-
return prefix_match;
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs