Getting Null Pointer while using reloadable synonyms

Hi Team
I am currently facing an issue while utilizing readable synonyms from a file with my completion suggestor. The problem seems to be related to the search_analyzers in my mappings. Strangely, the completion suggestor works fine when I use it with the _analyze API.

I would like to provide you with the mappings and suggestor details that I am using:

"master_synonyms": {
          "type": "synonym_graph",
          "synonyms_path": "search_synonyms/master_synonyms.txt",
          "updateable": true
        },
"synonym_analyzer": {
          "filter": [
            "lowercase",
            "asciifolding",
            "master_synonyms"
          ],
          "tokenizer": "standard"
        },
"smartSuggestor": {
      "type": "completion",
      "analyzer": "smart_analyzer",
      "search_analyzer": "synonym_analyzer",
      "preserve_separators": true,
      "preserve_position_increments": true,
      "max_input_length": 100,
      "contexts": [
        {
          "name": "hybrid-context",
          "type": "CATEGORY",
          "path": "contextMapperFilter"
        },
        {
          "name": "provider-context",
          "type": "CATEGORY",
          "path": "provider"
        },
        {
          "name": "subCategory-context",
          "type": "CATEGORY",
          "path": "contentType.subCategory"
        },
        {
          "name": "category-context",
          "type": "CATEGORY",
          "path": "contentType.category"
        }
      ]
    }
ker,kera,keral,kerala=>Malayalam
chand,chandi,chandig,chandiga,chandigar,chandigarh=>Punjabi
guj,gujj,gujju=>Gujarati
bihari,bihar=>Bhojpuri
Karna,Karnat,Karnata,Karnatak,Karnataka=>Kannada

I am encountering this issue in my current implementation, and it is impacting the functionality of the completion suggestor. I have checked the _analyze API, and it seems to be functioning as expected with the synonyms from the file.

Also if I am using mapping the synonyms directly without using the file it is working fine with the suggestors.

Any insights or potential solutions you can provide to address this issue would be greatly appreciated.

Thank you for your prompt attention to this matter. I look forward to your guidance.

Want to know if its a known issue, or there is any issue in my configurations.

Please find the error below:

Caused by: java.lang.NullPointerException: Cannot invoke \”org.elasticsearch.index.analysis.AnalyzerComponents.getCharFilters()\” because \”components\” is null

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