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
Description of the problem including expected versus actual behavior:
The fields property on TermVectorsRequestDescriptor is serialized incorrectly. If there are only one field, the request is :
{"fields":"test_field"} it should be: {"fields":["test_field"]}
Steps to reproduce:
This code causes a badrequest:
var termVectorsRequestDescriptor = new TermVectorsRequestDescriptor<MyDocument>(indexName)
.Id(hit.Id)
.Preference(NodePreferenceHelper.GetNodePreference(node))
.Fields(new[]{Field.FromString("test_field")});
var termVectorResult =
await _elasticsearchClient.TermvectorsAsync(termVectorsRequestDescriptor, cancellationToken);
Expected behavior
The request is serialized as {"fields":["test_field"]}