biothings / mygene.info

MyGene.info: A BioThings API for gene annotations
http://mygene.info
Other
115 stars 20 forks source link

Remove deprecated `boost` parameter from the mapping #126

Closed newgene closed 2 years ago

newgene commented 2 years ago

boost settings in the mapping (index time boosting) is deprecated, are removed in ES8. Field-level boosting should be specified at the query time.

https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-boost.html

An example from MyGene.info (there are other places too):

https://github.com/biothings/mygene.info/blob/e94ea4597319c259a0c31e799be267d560d79f22/src/hub/dataload/sources/ensembl/gene_upload.py#L34-L36

We should remove these boost settings from the mapping in all MyGene.info data sources.