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

null_pointer_exception

Open alizx opened this issue 6 years ago • 2 comments

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"
                }
            }
        }
    }
}

alizx avatar Nov 07 '17 04:11 alizx

              "minhash_analyzer":"minhash_analyzerhg"

Typo...

marevol avatar Nov 12 '17 21:11 marevol

I was trying to test. I forgot to remove that typo. Still doesn't work

alizx avatar Nov 12 '17 22:11 alizx