Skip to content

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

fist step+attempt so solve the snippet marking problem. See: http://www.yacy-forum.de/viewtopic.php?p=22855#22855

orbiter7df572756a0d
diff --git a/htroot/xml/snippet.java b/htroot/xml/snippet.java
index 98fb0fc22..b43e1ee32 100644
--- a/htroot/xml/snippet.java
+++ b/htroot/xml/snippet.java
@@ -42,7 +42,8 @@ public class snippet {
plasmaSnippetCache.result snippet = switchboard.snippetCache.retrieve(url, queryHashes, true, 260);
prop.put("status",snippet.getSource());
if (snippet.getSource() < 11) {
- prop.put("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown");
+ //prop.put("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown");
+ prop.put("text", (snippet.exists()) ? "<![CDATA["+snippet.getLineMarked(queryHashes)+"]]>" : "unknown");
} else {
prop.put("text", snippet.getError());
}