-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
According to the documentation https://www.algolia.com/doc/rest-api/recommend/#tag/recommendations/operation/getRecommendations the recommendation API response returns both the _score field and objectID as mandatory fields however we encounter the _score field being empty which breaks our validation.
This can be reproduce by calling getRecommendations on a newly added record prior retraining the model.
Can you advise is this an expected behaviour and the _score field is expected to be optional ?
Language
All
Client
All
Steps to reproduce
- Add a new record to the index via the SaveObject method
client, err := search.NewClient(appID, apiKey)
if err != nil {
panic(err)
}
// Add record to an index
saveResp, err := client.SaveObject(
client.NewSaveObjectRequest(indexName, record),
)
- call the recommendation API on the same record.
- inspect the response which doesn't contains the _score field
Relevant log output
No response
Self-service
- I'd be willing to fix this bug myself.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working