booleannewsearch=post.hasValue("query")&&post.hasValue("former")&&!post.get("query","").equalsIgnoreCase(post.get("former",""));//new search term
intitemsPerPage=Math.min((authenticated)?(snippetFetchStrategy!=null&&snippetFetchStrategy.isAllowedToFetchOnline()?100:1000):(snippetFetchStrategy!=null&&snippetFetchStrategy.isAllowedToFetchOnline()?10 :100),post.getInt("maximumRecords",post.getInt("count",10)));// SRU syntax with old property as alternative
intitemsPerPage=Math.min((authenticated)?(snippetFetchStrategy!=null&&snippetFetchStrategy.isAllowedToFetchOnline()?100:1000):(snippetFetchStrategy!=null&&snippetFetchStrategy.isAllowedToFetchOnline()?20 :500),post.getInt("maximumRecords",post.getInt("count",10)));// SRU syntax with old property as alternative
prop.put("pageNavBottom",(theSearch.getRankingResult().getLocalIndexCount()-offset>6)?1:0);// if there are more results than may fit on the page we add a navigation at the bottom
prop.put("pageNavBottom",(indexcount-offset>6)?1:0);// if there are more results than may fit on the page we add a navigation at the bottom
prop.put("pageNavBottom_resnav",resnavs);
// generate the search result lines; the content will be produced by another servlet