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
I tried to use the example from the page (Object Initializer syntax example) But there was an error saying "Non generic type Fields can not be used with type argument" for the usage "Field = Field(p => p.Tags.First().Added)"
Seems like the Field is not accepting generic type...
Very confused
The text was updated successfully, but these errors were encountered:
Ok I think I found the correct syntax. According to the test , you have to call the static method Infer in order to use generic Field.
e.q. Field = Infer.Field<Project>(f => f.LocationPoint),
So I assume the document mentioned above is wrong?
NEST/Elasticsearch.Net version: 7.16.0
Elasticsearch version: 7.16.0
.NET runtime version: .NET 6.0
Operating system version: Windows 10
I tried to use the example from the page (Object Initializer syntax example) But there was an error saying "Non generic type Fields can not be used with type argument" for the usage "Field = Field(p => p.Tags.First().Added)"
Seems like the Field is not accepting generic type...
Very confused
The text was updated successfully, but these errors were encountered: