@classmethod
def from_config(cls, config):
    """
        Create a new ElasticCallback instance using a configuration dictionary.

        Parameters
        ----------
        config : dict
            The configuration dictionary that describes ElasticIndex.
            It must contain "databroker-elasticsearch" key.

        Returns
        -------
        ElasticCallback
        """
    from databroker_elasticsearch.elasticindex import ElasticIndex
    esindex = ElasticIndex.from_config(config)
    rv = cls(esindex)
    return rv
