finalbooleannewsearch=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()?20:500),post.getInt("maximumRecords",post.getInt("count",10)));// SRU syntax with old property as alternative
intitemsPerPage=Math.min((authenticated)?(snippetFetchStrategy!=null&&snippetFetchStrategy.isAllowedToFetchOnline()?100:5000):(snippetFetchStrategy!=null&&snippetFetchStrategy.isAllowedToFetchOnline()?20:1000),post.getInt("maximumRecords",post.getInt("count",10)));// SRU syntax with old property as alternative