def mkdata(title, description, icon='', variants=None, **kwargs):
    """Return a dictionary initialised for a Search."""
    variants = variants or []
    d = dict(title=title, description=description,
             variants=variants)
    if icon:
        d['icon'] = icon

    if 'jsonpath' in kwargs:
        d['jsonpath'] = kwargs['jsonpath']

    if 'pcencode' in kwargs:
        d['pcencode'] = kwargs['pcencode']

    return d