Comment 3 for bug 1557778

Revision history for this message
Lakshmi N Sampath (lakshmi-sampath) wrote :

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"
                }
            }
        }
    ]
}