Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) hopefully fixed a stupid bug (my fault of course) that sometimes messed up the marking of search words in the snippets (see http://www.yacy-forum.de/viewtopic.php?p=37329#37329)

low012c59a7ce5c21f
diff --git a/source/de/anomic/plasma/plasmaSnippetCache.java b/source/de/anomic/plasma/plasmaSnippetCache.java
index e3db13d9f..6ecb260d7 100644
--- a/source/de/anomic/plasma/plasmaSnippetCache.java
+++ b/source/de/anomic/plasma/plasmaSnippetCache.java
@@ -183,7 +183,7 @@ public class plasmaSnippetCache {
// cut off prefix if it contains of non-characters or non-numbers
while(w[j].matches("\\A[^\\p{L}\\p{N}].+")) {
- prefix = w[j].substring(0,1) + prefix;
+ prefix = prefix + w[j].substring(0,1);
w[j] = w[j].substring(1);
}