Extra returned field in facet

Hi,

When using term-facets you get the term and count back per facet. Often the
term returned is not suitable for use in URL's.

In my document I have a pretty-url version of all facets, but I have to do
lookups for those when I use them in my application. It would be really
efficient when calculating the facet to have to ability to return extra
field(s) with data.
would be like

{

"facet": {

    "_type": "terms",

    "missing": 0,

    "total": 570754,

    "other": 102799,

    "terms": [

        {

            "term": "Some Facet Text",

            "count": 10104

        },

        {

            "term": "Awesome ElasticSearch",

            "count": 7121

        }

    ]

}

}

would be something like

{

"facet": {

    "_type": "terms",

    "missing": 0,

    "total": 570754,

    "other": 102799,

    "terms": [

        {

            "term": "Some Facet Text",

            "count": 10104,

            "fields": [ { "url": "some-facet-text" } ]

        },

        {

            "term": "Awesome ElasticSearch",

            "count": 7121,

            "fields": [ { "url": "awesome-elasticsearch" } ]

        }

    ]

}

}

Is this already possible?

Christoph

--