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
Use Algolia.Search.Clients.SearchIndex.SaveObjectAsync(...) and save it to an index.
This will result in
Algolia.Search.Exceptions.AlgoliaException: The ObjectID property or the JsonPropertyAttribute with name='objectID' must be a string
at Algolia.Search.Utils.AlgoliaHelper.EnsureObjectID[T]()
at Algolia.Search.Clients.SearchIndex.SaveObjectsAsync[T](IEnumerable`1 data, RequestOptions requestOptions, CancellationToken ct, Boolean autoGenerateObjectId)
at Algolia.Search.Clients.SearchIndex.SaveObjectAsync[T](T data, RequestOptions requestOptions, CancellationToken ct, Boolean autoGenerateObjectId)
...
This is where the exception is thrown. Would it make sense to allow other types such as GUID in the ObjectID property or is there a reason for it to be string?
The text was updated successfully, but these errors were encountered:
Description
I want to assign Id of type
GUID
to ObjectID without adding a second property.Steps To Reproduce
Create the following class
Create instance of
A
Use
Algolia.Search.Clients.SearchIndex.SaveObjectAsync(...)
and save it to an index.This will result in
Solution
Proposal
This is where the exception is thrown. Would it make sense to allow other types such as
GUID
in theObjectID
property or is there a reason for it to be string?The text was updated successfully, but these errors were encountered: