elasticsearch-minhash
elasticsearch-minhash copied to clipboard
Error to set custom analyzer in elasticsearch 7.8.1
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.
It seems that elasticsearch does not recognize minhash filter. The sample setting is here.
"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?