# Elasticsearch index mapping causing unhashable type: 'HTMLNode'

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263>\
**Category:** Elasticsearch\
**Created:** [May 9, 2022, 2:19pm UTC](https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263 "2022-05-09T14:19:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticeror](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@elasticeror](https://discuss.elastic.co/u/elasticeror)\
**Post date:** [May 9, 2022, 2:19pm UTC](https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263/1 "2022-05-09T14:19:44Z")

</div>

I've created Elasticsearch index which works fine on it's own. But, for some reason, as soon as i specify mapping, the error appears when i click on the link.

 ![s1](https://us1.discourse-cdn.com/elastic/original/3X/8/6/8624bc4b8d43f5a55417b1a60456ca77f62493d7.png)

When Elasticsearch is off, or when index doesn't have mapping specified, the error doesn't show and the link i click on works fine. It shows only when Elasticsearch index is created. The index looks like this:

```auto
{
"settings" : {
        "lifecycle" : {
          "name" : "siem",
          "rollover_alias" : "logs"
        },
        "number_of_shards" : 1,
        "number_of_replicas" : 1,
        "query" : {
          "default_field" : "message"
        }
    },
     "aliases" : {
      "logs" : {
        "is_write_index" : true
      }
    },
    "mappings" : {
      "properties" : {
        "action" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "agent" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "app-name" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "auth" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "bytes" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "client" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "email" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "facility" : {
          "type" : "keyword"
        },
        "host" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "hostname" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "httpversion" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "ident" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "ip" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "message" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "pid" : {
          "type" : "keyword"
        },
        "port" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "process" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "programname" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "rawmsg" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "referer" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "remotehost" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "remoteuser" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "request" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "response" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "server" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "severity" : {
          "type" : "keyword"
        },
        "timereported" : {
          "type" : "date"
        },
        "timestamp" : {
          "type" : "date",
          "format" : "dateOptionalTime"
        },
        "user" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "verb" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        }
      }
    }
}

```

Any ideas on how to fix/avoid this? Thanks!

---

<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:** [May 10, 2022, 12:26am UTC](https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263/2 "2022-05-10T00:26:21Z")

</div>

Welcome to our community! 😃

> [@elasticeror](#):
>
> when i click on the link

Click on which link exactly?

---

<div class="post-metadata">

**Author:** ![elasticeror](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@elasticeror](https://discuss.elastic.co/u/elasticeror)\
**Post date:** [May 10, 2022, 7:50am UTC](https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263/3 "2022-05-10T07:50:42Z")

</div>

Thanks! And thanks for the reply.

Okay, let me explain a bit better.  
When Elasticsearch is off and when i click on the link:

![s1](https://us1.discourse-cdn.com/elastic/original/3X/1/1/11deeb1d71c3438d4b89a8a6529670fe8610bb34.png)

It opens this pop up window:

 ![Screenshot 2022-05-10 094818](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9e578e929c5f695078a0c9b26d9859bd326f24fd.png)

But when i turn on the Elasticsearch and create index that i need, as soon as i refresh page and click on the same link the error Unhashable Type: "HTMLnode" appears.

---

<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:** [May 10, 2022, 8:00am UTC](https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263/4 "2022-05-10T08:00:16Z")

</div>

That's not an Elasticsearch or Kibana webpage, so it's not clear what it has to do with mappings sorry.

---

<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:** [June 7, 2022, 8:00am UTC](https://discuss.elastic.co/t/elasticsearch-index-mapping-causing-unhashable-type-htmlnode/304263/5 "2022-06-07T08:00:48Z")

</div>

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