public void report(QualityQuery qq,TopDocs td,String docNameField,IndexSearcher searcher) throws IOException {
  if (logger == null) {
    return;
  }
  ScoreDoc sd[]=td.scoreDocs;
  String sep=" \t ";
  DocNameExtractor xt=new DocNameExtractor(docNameField);
  for (int i=0; i < sd.length; i++) {
    String docName=xt.docName(searcher,sd[i].doc);
    logger.println(qq.getQueryID() + sep + "Q0"+ sep+ format(docName,20)+ sep+ format("" + i,7)+ sep+ nf.format(sd[i].score)+ sep+ name);
  }
}

public void report ( QualityQuery qq , TopDocs td , String docNameField , IndexSearcher searcher ) throws IOException { if ( logger == null ) { return ; } ScoreDoc sd [ ] = td . scoreDocs ; String sep = " \t " ; DocNameExtractor xt = new DocNameExtractor ( docNameField ) ; for ( int i = 0 ; i < sd . length ; i ++ ) { String docName = xt . docName ( searcher , sd [ i ] . doc ) ; logger . println ( qq . getQueryID ( ) + sep + "Q0" + sep + format ( docName , 20 ) + sep + format ( "" + i , 7 ) + sep + nf . format ( sd [ i ] . score ) + sep + name ) ; } }
report a search result for a certain quality query .
