public Query like(int docNum) throws IOException {
  Map<String,Map<String,Flt>> fieldTermFreq=retrieveTerms(docNum);
  BooleanQuery query=new BooleanQuery();
  for (  String fieldName : fieldTermFreq.keySet()) {
    Map<String,Flt> words=fieldTermFreq.get(fieldName);
    PriorityQueue<USField> queue=createQueue(fieldName,words);
    buildQueryForField(fieldName,queue,query);
  }
  return query;
}

public Query like ( int docNum ) throws IOException { Map < String , Map < String , Flt > > fieldTermFreq = retrieveTerms ( docNum ) ; BooleanQuery query = new BooleanQuery ( ) ; for ( String fieldName : fieldTermFreq . keySet ( ) ) { Map < String , Flt > words = fieldTermFreq . get ( fieldName ) ; PriorityQueue < USField > queue = createQueue ( fieldName , words ) ; buildQueryForField ( fieldName , queue , query ) ; } return query ; }
return a query that will return docs queryfromdocuments the passed lucene document id .
