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:
Describing a completion property with some contexts with the fluent api descriptor like this
.Properties(f =>f.Completion(completionField, cp =>cp.Analyzer(Es.Analyzer.ViaSuggest).Contexts(
c =>c.Type(Es.Completion.Context.Type).Name(Es.Completion.Context.Fqn)))
generate this concrete mapping which is missing the contexts
Had the same issue here, my schema is pretty flat, no nested object. had to use the list way, the fluent api way doesnt work at all.
TheFireCookie
changed the title
Completion type property does not like Contexts described with the fluent/lambda API
Completion type property does not like Contexts described with the fluent/lambda API when nested
Jan 30, 2024
I was able to reproduce the issue now, but it requires a rather complex change in the code generator. Leaving this open until I have time to work on it 🙂
Elastic.Clients.Elasticsearch version:
8.9.1
Elasticsearch version:
8.9.0
.NET runtime version:
7.0.9
Operating system version:
Windows 11
Description of the problem including expected versus actual behavior:
Describing a completion property with some contexts with the fluent api descriptor like this
generate this concrete mapping which is missing the contexts
But if I describe the contexts in C# like this with a List:
then the correct JSON is generated:
The text was updated successfully, but these errors were encountered: