Hi,
we have a problem to read nested documents (example here localized_data),
which we mapped as follows.
mapping :
{
"generic": { "_id": { "path": "id" },
"_source" : { "enabled" : false },
"properties": {
"p_id": { "type": "long", "store": "yes" },
"p_type_id": { "type": "long", "store": "yes" },
"localized_data": {
"type": "nested",
"include_in_root" : "true",
"properties": {
"l_id": { "type": "string", "store": "yes" },
"title": { "type": "string", "store": "yes" },
"description": { "type": "string", "store": "yes" },
"artists": { "type": "string", "store": "yes" }
}
}
}
}
}
is there any way to read the nested documents as related objects
e.g.:
first nested document:
localized_data.l_id = "1" ,
localized_data.title = "test1"
localized_data.description = "desc1
localized_data.artists = "artiist1"
second nested document:
localized_data.l_id = "2" ,
localized_data.title = "test2"
localized_data.description = "desc2
localized_data.artists = "artiist2"
actually we get the values as arrays
localized_data.l_id = [1,2], localized_data.title = [test1,test2],
localized_data.description = [desc1,desc2], localized_data.artists =
[artiist1,artiist2]
we cannot assign the l_id to the title from the result, because we get
separated arrays for each field.
is there a way to get the nested information for each nested document
separately?
we make a matchAll query, no nested search query.
suggestions?
thx
halit
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.