import json


def products_list_query(prod_ids):
    """products_list_query
    elasticsearch query string to get full products from
    a list of product ids
    """
    return json.dumps({
        'query': {
            'bool': {
                'filter':[
                    {'term': {'context': 'default'}},
                    {'terms':{'productId': prod_ids}}
                ]
            }
        }
    })