-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Nested attribute #5170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@NigelYu How have you configured your mapping with var createIndexResponse = _client.Indices.Create("grades", c => c
.Map<Grade>(m => m.AutoMap())
); |
@stevejgordon Yes, I used it, but the same does not work, this is my code Grade grade = new Grade
{
Id = "1",
GradeName = "一年级",
Persons = new List<Person> {
new Person
{
Id = "zhangshan",
FullName = "张珊"
},
new Person
{
Id = "lisi",
FullName = "李四"
}
}
};
var elasticClient = GetElasticClient("http://192.168.20.15:9200/");
var createIndexResponse = elasticClient.Indices.Create("nigel", c => c
.Map<Grade>(m => m.AutoMap())
);
elasticClient.Index<Grade>(grade,p=>p.Index("nigel")); Is there any relevant example, can I refer to it? |
I have a suspicion that the |
Yes, I tried it, he works normally, thanks |
That's good to here @NigelYu. Thanks for raising this as it highlights an issue with the attribute accepting that property. I'll open an issue to review that further. |
I want to use the Nested attribute, but it does not take effect, what should I do

The text was updated successfully, but these errors were encountered: