def configure_follow_up(parameter, analyzer):
    """Adjusting EsearchParameter to follow-up results based on the initial
  Esearch result. Fetch remaining UIDs using the history server.

  :param analyzer: Esearch analyzer instance
  :type  analyzer: :class:`entrezpy.search.esearch_analyzer.EsearchAnalyzer`
  :param parameter: Initial Esearch parameter
  :type  result: :class:`entrezpy.search.esearch_parameter.EsearchParameter`
  """
    parameter.term = None
    if not parameter.retmax:
        parameter.retmax = analyzer.query_size()
    analyzer.adjust_followup(parameter)
    parameter.webenv = analyzer.reference().webenv
    parameter.querykey = analyzer.reference().querykeys[0]
    parameter.calculate_expected_requests(reqsize=parameter.reqsize)
    parameter.check()
    return parameter
