public static Ranker getRankerByArguments(CgiArguments arguments,
        Options options, Indexer indexer) {
      switch (arguments._rankerType) {
      case FULLSCAN:
        return new RankerFullScan(options, arguments, indexer);
      case CONJUNCTIVE:
        return new RankerConjunctive(options, arguments, indexer);
      case FAVORITE:
        return new RankerFavorite(options, arguments, indexer);
      case COSINE:
    	  System.out.println("in cosine");
        return new CosineRanker(options, arguments, indexer);        
      case QL:
    	  System.out.println("in QL");
        return new QueryLikelihoodRankerwithJMSmoothing(options, arguments, indexer);
      case PHRASE:
        return new PhraseRanker(options, arguments, indexer);
      case NUMVIEWS:
    	  System.out.println("in numviews");
    	  return new NumViewsRanker(options, arguments, indexer);
      case LINEAR:
    	  return new LinearRanker(options, arguments, indexer);
      case NONE:
        // Fall through intended
      default:
        // Do nothing.
      }
      return null;
    }