Skip to content

Commit 76ee06d

Browse files
Merge #620
620: Adds embeddings database metrics to stats r=curquiza a=pratts # Pull Request ## Related issue Fixes #614 ## What does this PR do? - Adds indexes.INDEXNAME.numberOfEmbeddedDocuments in SDK responses - Adds indexes.INDEXNAME.numberOfEmbeddings in SDK responses ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Prateek Sharma <[email protected]>
2 parents 5bb925e + 0acfffc commit 76ee06d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

types.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,11 @@ type Version struct {
150150

151151
// StatsIndex is the type that represent the stats of an index in meilisearch
152152
type StatsIndex struct {
153-
NumberOfDocuments int64 `json:"numberOfDocuments"`
154-
IsIndexing bool `json:"isIndexing"`
155-
FieldDistribution map[string]int64 `json:"fieldDistribution"`
153+
NumberOfDocuments int64 `json:"numberOfDocuments"`
154+
IsIndexing bool `json:"isIndexing"`
155+
FieldDistribution map[string]int64 `json:"fieldDistribution"`
156+
NumberOfEmbeddedDocuments int64 `json:"numberOfEmbeddedDocuments"`
157+
NumberOfEmbeddings int64 `json:"numberOfEmbeddings"`
156158
}
157159

158160
// Stats is the type that represent all stats

types_easyjson.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)