According to the docs about nested objects those will be internally indexed
as separate docs.
Is there any use case where it make sense to additionally index those
nested docs separately?
For example I have a document type "study" that can reference one or more
publication document types.
{
study {
"properties": {
"name":{"type":"string"},
.....
"publication" : {
"type":"nested",
"properties": {
"name":{"type":"string"},
"title":{"type":"string"},
"author":{"type":"string"},
}
}
}
}
Different studies can however reference the same publication.
With nested objects the same publication will be indexed multiple times in
ES ?
I can of course do a nested query if I want to search through the
publication document types but wouldn't it be more efficient if I
additionally index the publication docs separately and only do a normal
search or is the performance gain not worth it ?
Second does it sometimes make sense to store both direction of a
relationship? If I store the publication docs separately I could have the
study as nested object inside the publication document:
{
publication {
"properties": {
"title":{"type":"string"},
.....
"studies" : {
"type":"nested",
"properties": {
"name":{"type":"string"},
}
}
}
}
Or can I can cover any use with just one direction?
--
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.