Skip to content

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

workaround for the snippets

allo29aa7031d3fe
diff --git a/htroot/xml/snippet.java b/htroot/xml/snippet.java
index 0d13fddf3..316b4ba79 100644
--- a/htroot/xml/snippet.java
+++ b/htroot/xml/snippet.java
@@ -63,7 +63,7 @@ public class snippet {
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.putASIS("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown"); //FIXME: the ASIS should not be needed, but we have still htmlcode in .java files
} else {
String error = snippet.getError();
if ((remove) && (error.equals("no matching snippet found"))) {
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index d142126df..b33548d8b 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -2208,7 +2208,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
// adding snippet if available
if ((snippet != null) && (snippet.exists())) {
prop.put("type_results_" + i + "_snippet", 1);
- prop.put("type_results_" + i + "_snippet_text", snippet.getLineMarked(query.queryHashes));
+ prop.putASIS("type_results_" + i + "_snippet_text", snippet.getLineMarked(query.queryHashes));//FIXME: the ASIS should not be needed, if there is no html in .java
} else {
prop.put("type_results_" + i + "_snippet", 0);
prop.put("type_results_" + i + "_snippet_text", "");