StatisticsSolrDateFilter dateFilter = getDateFilter(selectedTimeFilter);
StatisticsTable statisticsTable = new StatisticsTable(new StatisticsDataSearches(dso));
DatasetSearchGenerator queryGenerator = new DatasetSearchGenerator();
queryGenerator.setType("query");
queryGenerator.setMax(10);
queryGenerator.setMode(DatasetSearchGenerator.Mode.SEARCH_OVERVIEW);
queryGenerator.setPercentage(true);
queryGenerator.setRetrievePageViews(true);
statisticsTable.addDatasetGenerator(queryGenerator);
if(dateFilter != null){
statisticsTable.addFilter(dateFilter);
}
addDisplayTable(searchTermsDivision, statisticsTable, true, null);
Division totalDivision = mainDivision.addDivision("search-total");
totalDivision.setHead(T_search_total_head);
statisticsTable = new StatisticsTable(new StatisticsDataSearches(dso));
queryGenerator = new DatasetSearchGenerator();
queryGenerator.setMode(DatasetSearchGenerator.Mode.SEARCH_OVERVIEW_TOTAL);
queryGenerator.setPercentage(true);
queryGenerator.setRetrievePageViews(true);
statisticsTable.addDatasetGenerator(queryGenerator);
if(dateFilter != null){
statisticsTable.addFilter(dateFilter);
}