'Build a query from plugin config dict
:param config: dict
:return:'

@staticmethod
def build_request_from(config):

    query = FriendlySearchQuery()
    query.category_name = config.get(u'category')
    query.term_names = list(config.get(u'terms', []))
    query.max_results = config.get(u'max_results')
    return query
