# Kibana 5.1.2 dont make searchable keywords fields

**URL:** <https://discuss.elastic.co/t/kibana-5-1-2-dont-make-searchable-keywords-fields/71987>\
**Category:** Kibana\
**Created:** [January 18, 2017, 11:12am UTC](https://discuss.elastic.co/t/kibana-5-1-2-dont-make-searchable-keywords-fields/71987 "2017-01-18T11:12:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandr\_Senchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandr_senchenko/32/14346_2.png) [@Alexandr\_Senchenko](https://discuss.elastic.co/u/Alexandr_Senchenko)\
**Post date:** [January 18, 2017, 11:12am UTC](https://discuss.elastic.co/t/kibana-5-1-2-dont-make-searchable-keywords-fields/71987/1 "2017-01-18T11:12:57Z")

</div>

Hi,

I have in issue with kibana. So, when created mapping with keywords - which is by default `not_analyzed`  
it's not showing in kibana.

Please see below:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/77f3e1559a3a4e9fcf916085643b7dc57bd5abc9.png)

```auto
{
  "affiliate-mapped-data-20170105": {
    "mappings": {
      "external": {
        "dynamic_templates": [
          {
            "strings": {
              "match_mapping_type": "string",
              "mapping": {
                "index": "not_analyzed",
                "type": "string"
              }
            }
          }
        ],
        "properties": {
          "AffiliateColor": {
            "type": "keyword"
          },
          "AffiliateNetwork": {
            "type": "text"
          },
          "BrandName": {
            "type": "keyword"
          },
          "ColorHexCode": {
            "type": "keyword"
          },
          "ColorName": {
            "type": "keyword"
          },
          "Country": {
            "type": "keyword"
          },
          "Currency": {
            "type": "keyword"
          },
          "DateOfImport": {
            "type": "date",
            "format": "strict_date_optional_time"
          },
          "Description": {
            "type": "keyword",
            "index": false
          },
          "GarmentType": {
            "type": "keyword"
          },
          "GarmentTypeId": {
            "type": "keyword"
          },
          "Gender": {
            "type": "keyword"
          },
          "IsAccessoryItem": {
            "type": "long"
          },
          "IsOnSale": {
            "type": "boolean"
          },
          "Keywords": {
            "type": "keyword"
          },
          "Price": {
            "type": "float"
          },
          "ProductImageUrl": {
            "type": "keyword"
          },
          "ProductName": {
            "type": "keyword"
          },
          "ProductPageUrl": {
            "type": "text"
          },
          "ProductType": {
            "type": "keyword"
          },
          "RegionSize": {
            "type": "keyword"
          },
          "Shop": {
            "type": "keyword"
          },
          "Size": {
            "type": "keyword"
          }
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [January 18, 2017, 7:39pm UTC](https://discuss.elastic.co/t/kibana-5-1-2-dont-make-searchable-keywords-fields/71987/2 "2017-01-18T19:39:59Z")

</div>

Hi Alexandr,

Did you try without any mapping? I just loaded 1 test doc below without defining any mapping and here's what I got;

```auto
curl -XPUT 'http://elastic:changeme@localhost:9200/aa-bb-2016-09/test/1' -d '{
    "date" : "2015-08-23T00:01:00",
    "action" : "start",
    "myid" : 1,
    "words" : "these are words right here"
}'

```

Notice that the default behavior was to create a `.keyword` field for action and words string fields.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/e6d2941ff83c74cbbb8bb857c5cde229264b8c2b.png)

If I look at the mapping with `http://localhost:9200/aa-bb-2016-09/_mapping` I get this;

```auto
{
  "aa-bb-2016-09" : {
    "mappings" : {
      "test" : {
        "properties" : {
          "action" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          },
          "date" : {
            "type" : "date"
          },
          "myid" : {
            "type" : "long"
          },
          "words" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          }
        }
      }
    }
  }
}

```

I'm not an expert on Elasticsearch mappings, but hopefully this example helps you.

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![Alexandr\_Senchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandr_senchenko/32/14346_2.png) [@Alexandr\_Senchenko](https://discuss.elastic.co/u/Alexandr_Senchenko)\
**Post date:** [January 19, 2017, 9:44am UTC](https://discuss.elastic.co/t/kibana-5-1-2-dont-make-searchable-keywords-fields/71987/3 "2017-01-19T09:44:15Z")

</div>

> [@LeeDr](#):
>
> I'm not an expert on Elasticsearch mappings, but hopefully this example helps you.

Well, may be it works... But my question was my mappings is not displayed as expected!  
Default behaviour is not accepted here.

---

<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:** [February 16, 2017, 9:44am UTC](https://discuss.elastic.co/t/kibana-5-1-2-dont-make-searchable-keywords-fields/71987/4 "2017-02-16T09:44:39Z")

</div>

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