Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null_pointer_exception #11

Open
alizx opened this issue Nov 7, 2017 · 2 comments
Open

null_pointer_exception #11

alizx opened this issue Nov 7, 2017 · 2 comments
Labels

Comments

@alizx
Copy link

alizx commented Nov 7, 2017

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"
                }
            }
        }
    }
}
@marevol
Copy link
Contributor

marevol commented Nov 12, 2017

              "minhash_analyzer":"minhash_analyzerhg"

Typo...

@alizx
Copy link
Author

alizx commented Nov 12, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants