booleannewsearch=post.hasValue("query")&&post.hasValue("former")&&!post.get("query","").equalsIgnoreCase(post.get("former",""));//new search term
intitemsPerPage=Math.min((authenticated)?1000:20,post.getInt("maximumRecords",post.getInt("count",10)));// SRU syntax with old property as alternative
intitemsPerPage=Math.min((authenticated)?(fetchSnippets?100:1000):(fetchSnippets?10:100),post.getInt("maximumRecords",post.getInt("count",10)));// SRU syntax with old property as alternative