Skip to content

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

Add search type to top word suggestion searches. Closes: http://forum.yacy-websuche.de/viewtopic.php?f=6&t=391

fuchsied2ca8fc4c47
diff --git a/htroot/yacysearchitem.html b/htroot/yacysearchitem.html
index 2d2ed0781..45c7e133a 100644
--- a/htroot/yacysearchitem.html
+++ b/htroot/yacysearchitem.html
@@ -50,7 +50,7 @@
#(/rss)#
#(references)#::
<p><strong>Topwords</strong>:
-#{words}#&nbsp;<a href="yacysearch.html?search=#[newsearch]#&amp;Enter=Search&amp;count=#[count]#&amp;offset=#[offset]#&amp;resource=#[resource]#&amp;time=#[time]#">#[word]#</a>#{/words}#
+#{words}#&nbsp;<a href="yacysearch.html?search=#[newsearch]#&amp;Enter=Search&amp;count=#[count]#&amp;offset=#[offset]#&amp;resource=#[resource]#&amp;contentdom=#[contentdom]#&amp;time=#[time]#">#[word]#</a>#{/words}#
</p>
#(/references)#
#(rssreferences)#::
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java
index 9aa735462..da1c86658 100644
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@ -147,6 +147,7 @@ public class yacysearchitem {
prop.put("references_words_" + hintcount + "_newsearch", theQuery.queryString.replace(' ', '+') + "+" + word);
prop.put("references_words_" + hintcount + "_count", theQuery.displayResults());
prop.put("references_words_" + hintcount + "_offset", 0);
+ prop.put("references_words_" + hintcount + "_contentdom", theQuery.contentdom());
prop.put("references_words_" + hintcount + "_resource", theQuery.searchdom());
prop.put("references_words_" + hintcount + "_time", (theQuery.maximumTime / 1000));
}