Closed
Description
Just documenting though I think this has been fixed in master, but not a release. There are serialization errors when running the following code. I assume this was something from PostInvertedIndexBody
overloading Fields
property.
Message:
ArangoDBNetStandard.Serialization.SerializationException : An error occured while Deserializing the data response from Arango. See InnerException for more details.
---- Newtonsoft.Json.JsonReaderException : Unexpected character encountered while parsing value: {. Path 'fields', line 1, position 292.
Stack Trace:
ApiClientBase.DeserializeJsonFromStream[T](Stream stream)
IndexApiClient.PostIndexAsync(PostIndexQuery query, PostIndexBody body, CancellationToken token)
IndexApiClient.PostInvertedIndexAsync(PostIndexQuery query, PostInvertedIndexBody body, CancellationToken token)
var collection = new PostIndexQuery { CollectionName = "document" };
var postBody = new PostInvertedIndexBody
{
Name = "inverted",
Fields = new List<InvertedIndexField> { new InvertedIndexField { Name = "description", Analyzer = "text_en" } }
};
await db.Index.PostInvertedIndexAsync(collection, postBody);
This has just been a hassle with the index changes in 3.10 and trying to follow the index guide, which don't work with this client.
Metadata
Metadata
Assignees
Labels
No labels