I currently coded it as a tree structure. Is flat structure the most useful for horizon use case? Or do we need both based on input to request?
Also i removed name since its just an alias for document type and not worth repeating same field twice.
{ "plugins": [ { "index": "searchlight-search", "type": "OS::Cinder::Volume", "children": { "index": "searchlight-search", "type": "OS::Cinder::Snapshot" } }, { "index": "searchlight-search", "type": "OS::Glance::Image" }, { "index": "searchlight-search", "type": "OS::Glance::Metadef" }, { "index": "searchlight-search", "type": "OS::Neutron::Net", "children": { "index": "searchlight-search", "type": "OS::Neutron::Port" } }, { "index": "searchlight-search", "type": "OS::Neutron::Router" }, { "index": "searchlight-search", "type": "OS::Nova::Server" }, { "index": "searchlight-search", "type": "OS::Swift::Account", "children": { "index": "searchlight-search", "type": "OS::Swift::Container", "children": { "index": "searchlight-search", "type": "OS::Swift::Object" } } } ] }
I currently coded it as a tree structure. Is flat structure the most useful for horizon use case? Or do we need both based on input to request?
Also i removed name since its just an alias for document type and not worth repeating same field twice.
{
"index" : "searchlight- search" , :Volume" ,
"children" : {
"index" : "searchlight- search" ,
"type" : "OS::Cinder: :Snapshot"
"index" : "searchlight- search" ,
"index" : "searchlight- search" , :Metadef"
"index" : "searchlight- search" ,
"children" : {
"index" : "searchlight- search" ,
"type" : "OS::Neutron::Port"
"index" : "searchlight- search" , :Router"
"index" : "searchlight- search" ,
"index" : "searchlight- search" , :Account" ,
"children" : {
"index" : "searchlight- search" ,
"type" : "OS::Swift: :Container" ,
"children" : {
" index": "searchlight- search" ,
" type": "OS::Swift::Object"
"plugins": [
{
"type": "OS::Cinder:
}
},
{
"type": "OS::Glance::Image"
},
{
"type": "OS::Glance:
},
{
"type": "OS::Neutron::Net",
}
},
{
"type": "OS::Neutron:
},
{
"type": "OS::Nova::Server"
},
{
"type": "OS::Swift:
}
}
}
]
}