elasticsearch-minhash icon indicating copy to clipboard operation
elasticsearch-minhash copied to clipboard

Error to set custom analyzer in elasticsearch 7.8.1

Open mal-mel opened this issue 4 years ago • 2 comments

Hello, i try to execute first command from guide:

{
  "settings":{
    "analysis":{
      "analyzer":{
        "minhash_analyzer":{
          "type":"custom",
          "tokenizer":"standard",
          "filter":["minhash"]
        }
      }
    }
  }
}

I replace index key to settings cause elastic version 7 not support this syntax. When i execute this command i have a error:

{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Custom Analyzer [minhash_analyzer] failed to find filter under name [minhash]"
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "Custom Analyzer [minhash_analyzer] failed to find filter under name [minhash]"
    },
    "status": 400
}

I install the plugin by the using the elasticsearch-plugin and the installation finishes correctly.

mal-mel avatar Oct 12 '20 14:10 mal-mel

It seems that elasticsearch does not recognize minhash filter. The sample setting is here.

marevol avatar Oct 12 '20 21:10 marevol

"Unknown analyzer type [minhash] for [minhash_analyzer]" i get this error for request:

{
  "settings":{
    "analysis":{
      "analyzer":{
        "minhash_analyzer":{
          "type" : "minhash",
          "seed" : 1,
          "bit" : 2,
          "size" : 64
        }
      }
    }
  }
}

Do I have to restart elasticsearch after i installed plugin? Although in fact I already restarted and it didn't help. What can be done in this case?

mal-mel avatar Oct 13 '20 12:10 mal-mel