elasticsearch-minhash
elasticsearch-minhash copied to clipboard
null_pointer_exception
this the error I'm getting when I'm trying to use this plugin:
{
"error": {
"root_cause": [
{
"type": "generation_exception",
"reason": "failed to serialize source for type [message]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [message]: failed to serialize source for type [message]",
"caused_by": {
"type": "generation_exception",
"reason": "failed to serialize source for type [message]",
"caused_by": {
"type": "null_pointer_exception",
"reason": null
}
}
},
"status": 400
}
the code I'm using :
PUT test
{
"index":{
"analysis":{
"analyzer":{
"minhash_analyzer":{
"type":"custom",
"tokenizer":"standard",
"filter":["minhash"]
}
}
}
},
"settings": {
"index": {
"number_of_shards": 5,
"number_of_replicas": 0
}
},
"mappings": {
"message": {
"_all": {
"enabled": false
},
"properties": {
"text": {
"type": "text",
"analyzer": "persian",
"copy_to":"minhash_value"
},
"minhash_value":{
"type":"minhash",
"minhash_analyzer":"minhash_analyzerhg"
}
}
}
}
}
"minhash_analyzer":"minhash_analyzerhg"
Typo...
I was trying to test. I forgot to remove that typo. Still doesn't work