biothings / myvariant.info

MyVariant.info: A BioThings API for human variant annotations
http://myvariant.info
Other
86 stars 32 forks source link

Cannot aggregate by "chrom" field #167

Open ravila4 opened 11 months ago

ravila4 commented 11 months ago

I tried running this query: https://myvariant.info/v1/query?species=human&facets=chrom

It fails with:

search_phase_execution_exception
"Fielddata is disabled on [chrom] in [superhot_hg19_20230505_hozqpqi5_202305251519]. Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [chrom] in order to load field data by uninverting the inverted index. Note that this can use significant memory."

Is there any reason wy chrom is a text field instead of keyword?