You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Relevant log output
No response
Self-service
The text was updated successfully, but these errors were encountered: