Код: Выделить всё
{
"track_total_hits": true,
"from": 0,
"query": {
"bool": {
"must": [
{
"nested": {
"inner_hits": {},
"path": "physical_info_list",
"query": {
"bool": {
"must": [
{
"match_phrase": {
"physical_info_list.name": {
"query": "Some name"
}
}
}
]
}
}
}
}
]
}
},
"size": 1
}
Но когда я использую NEST в С#.
Источник поля пусто
введите описание изображения
Код: Выделить всё
.Query(nestedQuery => nestedQuery
.Bool(nestedBool => nestedBool
.Must(nestedMustMatches.ToArray())))
.InnerHits(dt=>dt.Source(
s=>s.Includes(incl => incl.Fields(
"physical_info_list.hash_name",
"physical_info_list.name")
)));
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/790 ... rhits-data