# Image Display Issues

**URL:** <https://discuss.elastic.co/t/image-display-issues/110074>\
**Category:** Kibana\
**Created:** [December 3, 2017, 11:11pm UTC](https://discuss.elastic.co/t/image-display-issues/110074 "2017-12-03T23:11:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 3, 2017, 11:11pm UTC](https://discuss.elastic.co/t/image-display-issues/110074/1 "2017-12-03T23:11:33Z")

</div>

Hi all,

We are in the process of upgrading to ElasticSearch 6.0 and Kibana 6.0, however the removal of the use of string as a field type has create issues with being able to display URL's as images using the below settings:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c007854ad405d12f66daa7dcc3bedf1ef62de22.png)

I now can't work out how to do this. We just tried making the field type 'text' but it had no effect.

The current mapping we are using is:

```
},
          "imageUrl": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "imageUrls": {
            "type": "text"
          },

```

Any help greatly appreciated.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 3, 2017, 11:58pm UTC](https://discuss.elastic.co/t/image-display-issues/110074/2 "2017-12-03T23:58:39Z")

</div>

You need to change the `imageURL.keyword` field, that is the 6.0 verison of `not_analyzed`.

---

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 4, 2017, 12:00am UTC](https://discuss.elastic.co/t/image-display-issues/110074/3 "2017-12-04T00:00:26Z")

</div>

Hi Mark,

Thank you very much. Do I then leave the ImageUrl field set as normal and not to a URL?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 4, 2017, 12:00am UTC](https://discuss.elastic.co/t/image-display-issues/110074/4 "2017-12-04T00:00:56Z")

</div>

Yes.

---

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 4, 2017, 12:07am UTC](https://discuss.elastic.co/t/image-display-issues/110074/5 "2017-12-04T00:07:35Z")

</div>

Hi Mark,

I have set it as follows and left ImageURL field to default setting.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/3/03b97ddefb336df478dcb003f15b367eb9cdae7e.png)

It still seems to be doing the same thing, see image below.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/5/c5345950bf4536ea5d20d980ed3555c7986855a3.png)

The mapping is:

```
},
          "imageUrl": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "imageUrls": {
            "type": "text"
          },
          "keyword": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
```

---

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 4, 2017, 12:27am UTC](https://discuss.elastic.co/t/image-display-issues/110074/6 "2017-12-04T00:27:38Z")

</div>

This is the entire mapping index:

```
{
  "providence_doc-2017-12": {
    "mappings": {
      "post": {
        "properties": {
          "entity": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "group": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "imageUrl": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "imageUrls": {
            "type": "text"
          },
          "keyword": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "link": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "location": {
            "type": "geo_point",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "postdate": {
            "type": "date"
          },
          "postidentifier": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "sourceid": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "sourcename": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "srid": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "text": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "title": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
          "username": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 4, 2017, 12:54am UTC](https://discuss.elastic.co/t/image-display-issues/110074/7 "2017-12-04T00:54:13Z")

</div>

Sorry Mark, did you mean change the "keyword" type to "text" rather than "keyword"?

```
},
          "imageUrl": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          },
```

---

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 4, 2017, 4:35am UTC](https://discuss.elastic.co/t/image-display-issues/110074/8 "2017-12-04T04:35:03Z")

</div>

Got it all sorted. Thanks Mark the guidance you provided helped greatly.

Cheers!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 4, 2017, 7:17am UTC](https://discuss.elastic.co/t/image-display-issues/110074/9 "2017-12-04T07:17:14Z")

</div>

Great to hear, can you share the solution? It may help others 🙂

---

<div class="post-metadata">

**Author:** ![EricWS](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@EricWS](https://discuss.elastic.co/u/EricWS)\
**Post date:** [December 4, 2017, 10:34pm UTC](https://discuss.elastic.co/t/image-display-issues/110074/10 "2017-12-04T22:34:13Z")

</div>

No problem.

We added added 'imageUrl' in the template:

```
  "imageUrl" : {
    "type" : "text"
  },
  "imageUrls" : {
    "type" : "text"
  },
```

---

<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:** [January 1, 2018, 10:34pm UTC](https://discuss.elastic.co/t/image-display-issues/110074/11 "2018-01-01T22:34:14Z")

</div>

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