From 29aa7031d3fe8b8502acf5d02b6cd8b2edfcc084 Mon Sep 17 00:00:00 2001 From: allo Date: Tue, 16 Jan 2007 21:35:25 +0000 Subject: [PATCH] workaround for the snippets git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3225 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/xml/snippet.java | 2 +- source/de/anomic/plasma/plasmaSwitchboard.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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", "");