2016-08-04 10 views
2

Derzeit ich Begriffe Aggregation wie so bin ausführen:Bedingungen Aggregationen - Getting insgesamt jedes Wort über alle Dokumente

"aggs": { 
    "wordcloud": { 
     "terms": { 
     "field": "transcription.raw", 
     "size": 40, 
     } 
    } 
} 

ich Ergebnisse wie Blick zurück wie folgt aus (zum Beispiel):

"aggregations": { 
     "wordAppearences": { 
     "doc_count_error_upper_bound": 0, 
     "sum_other_doc_count": 0, 
     "buckets": [ 
      { 
       "key": "banana", 
       "doc_count": 2 
      }, 
      { 
       "key": "apples", 
       "doc_count": 1 
      } 
     ] 
    } 
} 

Diese Abfrage zählt die Anzahl der Dokumente, in denen jedes Wort angezeigt wird, aber es zählt nicht, wie oft dieses Wort in diesem Feld auftritt. Ich möchte eine Zählung erhalten, wie oft in allen Dokumenten jedes Wort im Feld transcription.raw vorkommt, ist das möglich?

Antwort

0

Die Antwort ist, es ist im Moment nicht möglich.