When I try to create a suggester on an index using .net sdk I get an error.
I can create index successfully using .net SDK but when I try to add suggester I get an error.
My index code:
var index = new Index()
{
Name = "customeridex",
Fields = FieldBuilder.BuildForType<AutocompleteResponseDetail>(),
Suggesters = new List<Suggester>() {new Suggester()
{
Name="cg",
SourceFields= new string[] { "Title", "Description" }
}}
};
The error message I get: 'The request is invalid. Details: definition: One or more fields in suggester 'cg' are not defined as a field in the index. Fields: Title, Description.'
Although I have fields: Title and description in my index