Created
          July 19, 2013 12:17 
        
      - 
      
- 
        Save bdecarne/6038739 to your computer and use it in GitHub Desktop. 
    Get an ElasticSearch facet based on id with label
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "query" : { "query_string" : {"query" : "*"} }, | |
| "facets" : { | |
| "tag" : { | |
| "terms" : { | |
| "field" : "id", | |
| "script" : "term + \"|\" + _source.nom" | |
| } | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
where is the label here?