<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Change the field type from text to keyword in elastic search</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117183356" />
  <subtitle>Change the field type from text to keyword in elastic search</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117183356</id>
  <updated>2026-04-07T04:26:12Z</updated>
  <dc:date>2026-04-07T04:26:12Z</dc:date>
  <entry>
    <title>Change the field type from text to keyword in elastic search</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117183355" />
    <author>
      <name>Mohamed Saleem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117183355</id>
    <updated>2019-09-16T12:32:14Z</updated>
    <published>2019-09-16T12:32:14Z</published>
    <summary type="html">Hi,I have override BaseIndexerPostProcessor to index some additional field value in Journal Article.In postProcessDocument() method I have indexed some values using this  document.addKeyword(key, String.valueOf(value)); &lt;a href="http://localhost:9200/_mapping"&gt;http://localhost:9200/_mapping&lt;/a&gt; url i am seeing the my changes , my values are indexed but  the type is not changed to keyword. I want to change the type to keyword how can I do. Anyone help this.&lt;br /&gt;ddm__relatedtext__44729__content    &lt;br /&gt;type  &lt;strong&gt;  &amp;#34;text&amp;#34;&lt;/strong&gt;&lt;br /&gt;store    true&lt;br /&gt;&lt;br /&gt;Regards,Saleem</summary>
    <dc:creator>Mohamed Saleem</dc:creator>
    <dc:date>2019-09-16T12:32:14Z</dc:date>
  </entry>
</feed>
