'Add a boost field to the mapping to enhance relevancy of a document.
This is used by SearchQueryFilter in a function scoring query.'

@classmethod
def attach_boost_mapping(cls, mapping):

    mapping[cls.get_mapping_type_name()]['properties']['boost'] = {'type': 'float', 'doc_values': True}
    return mapping
