Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…=1736#p12061

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5500 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
apfelmaennchen committed Jan 16, 2009
1 parent a2bc32e commit d712272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions htroot/yacysearchitem.java
Expand Up @@ -114,6 +114,7 @@ public static serverObjects respond(final httpRequestHeader header, final server
prop.put("content_authorized_urlhash", result.hash());

prop.putHTML("content_title", result.title());
prop.putXML("content_title-xml", result.title());
prop.putHTML("content_link", result.urlstring());
prop.put("content_display", display);
prop.putHTML("content_faviconCode", sb.licensedURLs.aquireLicense(faviconURL)); // aquire license for favicon url loading
Expand All @@ -137,6 +138,7 @@ public static serverObjects respond(final httpRequestHeader header, final server
(((wordURL = yacyURL.probablyWordURL(result.hash(), query[0])) != null) ? ", probablyWordURL=" + wordURL.toNormalform(false, true) : ""));
final plasmaSnippetCache.TextSnippet snippet = result.textSnippet();
prop.put("content_description", (snippet == null) ? "" : snippet.getLineMarked(theQuery.fullqueryHashes));
prop.putXML("content_description", (snippet == null) ? "" : snippet.getLineMarked(theQuery.fullqueryHashes));
serverProfiling.update("SEARCH", new plasmaProfiling.searchEvent(theQuery.id(true), plasmaSearchEvent.FINALIZATION + "-" + item, 0, 0));

return prop;
Expand Down
4 changes: 2 additions & 2 deletions htroot/yacysearchitem.xml
@@ -1,7 +1,7 @@
#(content)#::<item>
<title>#[title]#</title>
<title>#[title-xml]#</title>
<link>#[link]#</link>
<description>#[description]#</description>
<description>#[description-xml]#</description>
<pubDate>#[date822]#</pubDate>
<guid isPermaLink="false">#[urlhash]#</guid>
</item>#(/content)#

0 comments on commit d712272

Please sign in to comment.