public Query like(int docNum) throws IOException {
  if (fieldNames == null) {
    Collection<String> fields=MultiFields.getIndexedFields(ir);
    fieldNames=fields.toArray(new String[fields.size()]);
  }
  return createQuery(retrieveTerms(docNum));
}

public Query like ( int docNum ) throws IOException { if ( fieldNames == null ) { Collection < String > fields = MultiFields . getIndexedFields ( ir ) ; fieldNames = fields . toArray ( new String [ fields . size ( ) ] ) ; } return createQuery ( retrieveTerms ( docNum ) ) ; }
return a query that will return docs like the passed lucene document id .
