<?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>Adding two analyzers to additional index configurations - elasticsearch</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111322388" />
  <subtitle>Adding two analyzers to additional index configurations - elasticsearch</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111322388</id>
  <updated>2026-04-04T02:08:42Z</updated>
  <dc:date>2026-04-04T02:08:42Z</dc:date>
  <entry>
    <title>RE: Adding two analyzers to additional index configurations - elasticsearch</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111783940" />
    <author>
      <name>P G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111783940</id>
    <updated>2018-12-12T09:48:57Z</updated>
    <published>2018-12-12T09:48:57Z</published>
    <summary type="html">&lt;p&gt;Hi and sorry for the late.&lt;/p&gt;
&lt;p&gt;Thanks for you example. It works properly.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Paolo.&lt;/p&gt;</summary>
    <dc:creator>P G</dc:creator>
    <dc:date>2018-12-12T09:48:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding two analyzers to additional index configurations - elasticsearch</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111329435" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111329435</id>
    <updated>2018-10-25T18:08:19Z</updated>
    <published>2018-10-25T18:08:19Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;The problem is with the JSON structure. Please look at the following JSON with 2 analysers.&lt;br&gt;&lt;pre&gt;&lt;code&gt;​​​​​​​{  
   "analysis":{  
      "analyzer":{  
         "analyser1":{  
            "type":"custom",
            "tokenizer":"standard",
            "char_filter":[  
               "html_strip"
            ],
            "filter":[  
               "asciifolding",
               "lowercase",
               "typeahead_filter"
            ]
         },
         "analyser2":{  
            "type":"custom",
            "tokenizer":"standard",
            "char_filter":[  
               "html_strip"
            ],
            "filter":[  
               "asciifolding",
               "lowercase"
            ]
         }
      }
   }
}
&lt;/code&gt;&lt;/pre&gt;I hope this will fix your issue. Please let me know the status&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2018-10-25T18:08:19Z</dc:date>
  </entry>
  <entry>
    <title>Adding two analyzers to additional index configurations - elasticsearch</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111322387" />
    <author>
      <name>P G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111322387</id>
    <updated>2018-10-25T13:29:00Z</updated>
    <published>2018-10-25T13:29:00Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi all,&lt;br&gt;&lt;br&gt;I need to set new analyzers for elasticsearch using the control panel.&amp;nbsp;&lt;br&gt;To achieve my aim I go to: Control Panel &amp;gt; Fondation &amp;gt; Elasticsearch.&amp;nbsp;&lt;br&gt;&lt;br&gt;Then I add the following configuration:&lt;br&gt;&lt;br&gt;Additional Index Configurations:&lt;br&gt;&lt;pre&gt;&lt;code&gt;{  
    "analysis": [
        {
            "analyzer": {
                "documentum_analyzer": {
                    "filter": [
                        "lowercase"
                     ],
                    "tokenizer": "documentum_tokenizer"
                }
            },
            "tokenizer" : {
                "documentum_tokenizer" : {
                    "type": "edge_ngram",
                    "min_gram": 2,
                    "max_gram": 10,
                    "token_chars": [
                        "letter",
                        "digit",
                        "punctuation"
                    ]
               }
            }        
        },
        {
            "analyzer": {
                "custom_rubrica_analyzer": {
                    "filter": [
                        "lowercase"
                     ],
                    "tokenizer": "custom_rubrica_tokenizer"
                }
            },
            "tokenizer" : {
            "custom_rubrica_tokenizer" : {
            "type": "edge_ngram",
                    "min_gram": 1,
                    "max_gram": 10,
                    "token_chars": [
                        "letter",
                        "punctuation"
                    ]
               }
            }        
        }
    ]                
}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;When I add just one analyzer, it works very good, I have all my custom elements. With two analyzers my custom items are not present into the index.&lt;br&gt;How can I add two or more analyzers in the&amp;nbsp;Additional Index Configurations?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>P G</dc:creator>
    <dc:date>2018-10-25T13:29:00Z</dc:date>
  </entry>
</feed>
