def _boosted_value(name, action, key, value, boost):
    if boost is not None:
        # Note: Most queries use 'value' for the key name except
        # Match queries which use 'query'. So we have to do some
        # switcheroo for that.
        value_key = 'query' if action in MATCH_ACTIONS else 'value'
        return {name: {'boost': boost, value_key: value}}
    return {name: value}
Adds prefixes to the key
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/__init__.py/_boosted_value--crossover with--dataset/ETHPy150Open mariocesar/sorl-thumbnail/sorl/thumbnail/kvstores/base.py/add_prefix