summaryrefslogtreecommitdiff
path: root/htroot/yacysearch.html
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2015-03-02 04:30:10 +0100
committerMichael Peter Christen <mc@yacy.net>2015-03-02 04:30:10 +0100
commit535f1ebe3b3f896d9c813d7fe788f86de3d68564 (patch)
treeea2ff910d61d4c63f791af2027c8bf28913297cf /htroot/yacysearch.html
parentc3aadcf8999e8c5792160364dc6b69c8ca14119b (diff)
added a new way of content browsing in search results:
- date navigation The date is taken from the CONTENT of the documents / web pages, NOT from a date submitted in the context of metadata (i.e. http header or html head form). This makes it possible to search for documents in the future, i.e. when documents contain event descriptions for future events. The date is written to an index field which is now enabled by default. All documents are scanned for contained date mentions. To visualize the dates for a specific search results, a histogram showing the number of documents for each day is displayed. To render these histograms the morris.js library is used. Morris.js requires also raphael.js which is now also integrated in YaCy. The histogram is now also displayed in the index browser by default. To select a specific range from a search result, the following modifiers had been introduced: from:<date> to:<date> These modifiers can be used separately (i.e. only 'from' or only 'to') to describe an open interval or combined to have a closed interval. Both dates are inclusive. To select a specific single date only, use the 'to:' - modifier. The histogram shows blue and green lines; the green lines denot weekend days (saturday and sunday). Clicking on bars in the histogram has the following reaction: 1st click: add a from:<date> modifier for the date of the bar 2nd click: add a to:<date> modifier for the date of the bar 3rd click: remove from and date modifier and set a on:<date> for the bar When the on:<date> modifier is used, the histogram shows an unlimited time period. This makes it possible to click again (4th click) which is then interpreted as a 1st click again (sets a from modifier). The display feature is NOT switched on by default; to switch it on use the /ConfigSearchPage_p.html servlet.
Diffstat (limited to 'htroot/yacysearch.html')
-rw-r--r--htroot/yacysearch.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html
index 754ae2593..afaf443ea 100644
--- a/htroot/yacysearch.html
+++ b/htroot/yacysearch.html
@@ -92,9 +92,9 @@ Use the RSS search result format to add static searches to your RSS reader, if y
<form class="search small" name="searchform" action="" method="get" accept-charset="UTF-8" style="position:fixed;top:8px;z-index:1052;max-width:500px;">
<div class="input-group">
- <input type="text" class="form-control searchinput typeahead" size="40" maxlength="200" placeholder="#[promoteSearchPageGreeting]#" name="query" value="#[former]#" #(focus)#::autofocus="autofocus"#(/focus)# onFocus="this.select()" id="search" onclick="document.getElementById('Enter').innerHTML = 'search'"/>
+ <input name="query" id="search" type="text" class="form-control searchinput typeahead" size="40" maxlength="200" placeholder="#[promoteSearchPageGreeting]#" value="#[former]#" #(focus)#::autofocus="autofocus"#(/focus)# onFocus="this.select()" onclick="document.getElementById('Enter').innerHTML = 'search'"/>
<div class="input-group-btn">
- <button id="Enter" class="btn btn-default" type="submit">search</button>
+ <button id="Enter" name="Enter" class="btn btn-default" type="submit">search</button>
</div>
</div>
<input type="hidden" name="contentdom" id="contentdom" value="#[contentdom]#" />
@@ -175,6 +175,9 @@ document.getElementById("Enter").innerHTML = "search again";
</div>
#(/geoinfo)#
+<!-- show date histogram if date navigation is active -->
+<div id="datehistogram"></div>
+
<!-- linklist begin -->
#(resultTable)#::<table width="100%"><tr class="TableHeader"><td width="30%">Media</td><td width="70%">URL</td></tr>#(/resultTable)#
#{results}#