# Significant Terms "No Results Found"?

**URL:** https://discuss.elastic.co/t/significant-terms-no-results-found/189388
**Category:** Elasticsearch
**Created:** [July 8, 2019, 5:02pm UTC](https://discuss.elastic.co/t/significant-terms-no-results-found/189388 "2019-07-08T17:02:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ParkerShamblin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parkershamblin/32/49573_2.png) [@ParkerShamblin](https://discuss.elastic.co/u/ParkerShamblin)
#### Post date: [July 8, 2019, 5:02pm UTC](https://discuss.elastic.co/t/significant-terms-no-results-found/189388/1 "2019-07-08T17:02:06Z")

</div>

I'm trying to use the "Significance Terms" aggregation on Twitter post, however, each time I try to I receive "No Results Found" (picture attached).

 ![significant_terms_question](https://us1.discourse-cdn.com/elastic/original/3X/d/2/d2a170a5bbe1e2d913534d0df048d1525387862d.png)

When I try to use the Significant Terms aggregation on the text in the tweet documents it only gives me the option for "text.keyword" instead of "text" field, which I believe the documentation says I need for Significant Term Aggregation? (i'm unsure about this)?

Here is the index mapping for my index, along with a few example documents.

Index:  
"text" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}

Please note that my text.keywords field actually displays the entire tweet instead of the specific tokens as well? I'm unsure why this is because according to the documentation, I believe the analyzer is suppose to tokenize the text field by default?

 ![significant_terms_question2](https://us1.discourse-cdn.com/elastic/original/3X/6/a/6aacc8bc08fbaaa3d172a3f7cf68a797d529d64f.png)

Can someone help me figure out what I'm doing wrong?

---

<div class="post-metadata">

### Author: ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)
#### Post date: [July 8, 2019, 5:24pm UTC](https://discuss.elastic.co/t/significant-terms-no-results-found/189388/2 "2019-07-08T17:24:48Z")

</div>

Keyword fields index the number of unique documents for each unique value of that field. They should be used for fields containing structured data such as email addresses, IP addresses, status codes, etc.

In order to do a Significant Terms query on a text field, you'll need to enable [fielddata](https://www.elastic.co/guide/en/elasticsearch/reference/master/fielddata.html) on the mappings. For example:

```auto
PUT /twitter_stream/_mapping
{
  "properties": {
    "text": {
      "type": "text",
      "fielddata": true,
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    }
  }
}

```

Once you've done that, go to Management \> Index Patterns and refresh the index pattern to make Kibana re-read the mappings. Now the `text` field should show up in the Significant Terms dropdown.

You may not get any results because there is only a single document in the index, so no words are "significant". Add a few more documents to start getting results.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 5, 2019, 5:25pm UTC](https://discuss.elastic.co/t/significant-terms-no-results-found/189388/3 "2019-08-05T17:25:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
