From ef8aea7f8db9222ba437cd3ab28e330fd622ff92 Mon Sep 17 00:00:00 2001 From: luccioman Date: Mon, 25 Sep 2017 09:19:08 +0200 Subject: [PATCH] Made the dates navigator max elements number user configurable. Also used object properties on QueryParams instances, rather than using mutable class (static) properties. --- defaults/yacy.init | 3 ++ htroot/ConfigSearchPage_p.html | 5 +- htroot/ConfigSearchPage_p.java | 22 +++++++-- htroot/IndexControlRWIs_p.java | 6 ++- htroot/yacy/search.java | 4 ++ htroot/yacysearch.java | 4 ++ htroot/yacysearchtrailer.java | 10 ++-- .../cora/federate/FederateSearchManager.java | 4 ++ source/net/yacy/search/Switchboard.java | 4 -- .../net/yacy/search/SwitchboardConstants.java | 6 ++- source/net/yacy/search/query/QueryParams.java | 48 +++++++++++++++++-- 11 files changed, 97 insertions(+), 19 deletions(-) diff --git a/defaults/yacy.init b/defaults/yacy.init index a6365f18f..66c78683e 100644 --- a/defaults/yacy.init +++ b/defaults/yacy.init @@ -885,6 +885,9 @@ search.navigation=location,hosts,authors,namespace,topics,filetype,protocol,lang # max number of items displayed in search navigators search.navigation.maxcount=100 +# max number of items displayed in the dates navigator +search.navigation.dates.maxcount=640 + # search result verification and snippet fetch caching rules # each search result can be verified byloading the link from the web # this can be enhanced using a cache. In some cases it may be appropriate diff --git a/htroot/ConfigSearchPage_p.html b/htroot/ConfigSearchPage_p.html index 7bd5b4eab..a95ab21ee 100644 --- a/htroot/ConfigSearchPage_p.html +++ b/htroot/ConfigSearchPage_p.html @@ -179,13 +179,16 @@ Date Navigation +