<inputtype="checkbox"name="search.navigation.date"value="true"#(search.navigation.date)#::checked="checked"#(/search.navigation.date)#/> Date Navigation
<labeltitle="Maximum days number in the histogram. Beware that a large value may trigger high CPU loads both on the server and on the browser with large result sets.">Maximum range (in days)
var solr= $.getJSON("solr/collection1/select?q=*:*&defType=edismax&start=0&rows=0&wt=json&facet=true&facet.field=dates_in_content_dts&facet.sort=index", function(data) {
var solr= $.getJSON("solr/collection1/select?q=*:*&defType=edismax&start=0&rows=0&wt=json&facet=true&facet.field=dates_in_content_dts&facet.sort=index&facet.limit=#[search.navigation.dates.maxcount]#", function(data) {
@ -1235,9 +1234,6 @@ public final class Switchboard extends serverSwitch {
this.trail=newLinkedBlockingQueue<String>();
// set configurable ui defaults
QueryParams.FACETS_STANDARD_MAXCOUNT=sb.getConfigInt(SwitchboardConstants.SEARCH_NAVIGATION_MAXCOUNT,QueryParams.FACETS_STANDARD_MAXCOUNT);// max number of navigator/facet lines
privatedoublekmNormal=100.d;// 100 =ca 40000.d / 360.d == 111.11 - if lat/lon is multiplied with this, rounded and diveded by this, the location is normalized to a 1km grid
@ -294,6 +306,34 @@ public final class QueryParams {
params.setParam("f."+CollectionSchema.dates_in_content_dts.getSolrFieldName()+".facet.limit",Integer.toString(FACETS_DATE_MAXCOUNT));// the year constraint should cause that limitation already
params.setParam("f."+CollectionSchema.dates_in_content_dts.getSolrFieldName()+".facet.limit",Integer.toString(this.dateFacetMaxCount));// the year constraint should cause that limitation already
}
//for (String k: params.getParameterNames()) {ArrayList<String> al = new ArrayList<>(); for (String s: params.getParams(k)) al.add(s); System.out.println("Parameter: " + k + "=" + al.toString());}