anchor.diff:  						+ "'or r.DESCRIPTION like '%" + wordList[i] + "%'";
   				if (i != wordList.length - 1)
   					sql = sql + "OR ";
  +				count_contains += 4;
   			}
   			sql = sql + "ORDER BY " + SQLOrder;
   
  
positive.code: 
  		//both entered
  		if (kWord != "" && kTime1 != "" && kTime2 != "") {
  			out.println("Records for keyword(s): " + kWord
  					+ " between dates " + kTime1 + " and " + kTime2);
  			String[] wordList = kWord.split(" ");
  
  			sql = sql + "r.test_date between to_date('" + kTime1
  					+ "', 'DD/MM/YYYY') AND to_date('" + kTime2
  					+ "', 'DD/MM/YYYY') AND ";
  
  			for (int i = 0; i < wordList.length; i++) {
  				sql = sql + class_id + "r.DIAGNOSIS ='" + wordList[i]
  						+ "' or p.LAST_NAME = '" + wordList[i]
  
negative.code: 		} else if (request.getParameter("SEARCHTYPE").equals(
  				"recentLast")) {
  			SQLOrder = "r.test_date ASC";
  		} else if (request.getParameter("SEARCHTYPE").equals("relevant")) {
  			SQLOrder = "rank" ;
  			//SQL order by  Rank(record_id) = 6*frequency(patient_name) + 3*frequency(diagnosis) + frequency(description)
  		}
  	} else {
  