Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 602 Bytes
7026e84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/**
* This file contains the (simplified) types used
* to represent queries that are made to Elastic
* in order to count number of model downloads
*
* Read this doc about download stats on the Hub:
*
* https://huggingface.co./docs/hub/models-download-stats
*
* see also:
* https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html
*/
export type ElasticBoolQueryFilter =
// match a single filename
| { term?: { path: string } }
// match multiple possible filenames
| { terms?: { path: string[] } }
// match a wildcard
| { wildcard?: { path: string } };
|