Skip to content

Instantly share code, notes, and snippets.

@bdecarne
Created July 19, 2013 12:17
Show Gist options
  • Save bdecarne/6038739 to your computer and use it in GitHub Desktop.
Save bdecarne/6038739 to your computer and use it in GitHub Desktop.
Get an ElasticSearch facet based on id with label
{
"query" : { "query_string" : {"query" : "*"} },
"facets" : {
"tag" : {
"terms" : {
"field" : "id",
"script" : "term + \"|\" + _source.nom"
}
}
}
}
@ksrkon
Copy link

ksrkon commented Apr 14, 2014

where is the label here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment