Skip to content

Commit fa9e375

Browse files
Yousef Sultanbidoubiwa
authored andcommitted
Fix fieldsDistribution being typed as fieldsFrequency
Here ya go https://docs.meilisearch.com/references/stats.html#get-stats-of-all-indexes
1 parent 4143486 commit fa9e375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export interface SearchResponse<T, P extends SearchParams<T>> {
114114
query: string
115115
}
116116

117-
export interface FieldFrequency {
117+
export interface FieldDistribution {
118118
[field: string]: number
119119
}
120120

@@ -200,7 +200,7 @@ export interface Update {
200200
export interface IndexStats {
201201
numberOfDocuments: number
202202
isIndexing: boolean
203-
fieldsFrequency: FieldFrequency
203+
fieldsDistribution: FieldDistribution
204204
}
205205

206206
export interface Stats {

0 commit comments

Comments
 (0)