Skip to content

Instantly share code, notes, and snippets.

@julianhille
Created August 14, 2014 10:05
Show Gist options
  • Save julianhille/0073aa15e0c34c853f8c to your computer and use it in GitHub Desktop.
Save julianhille/0073aa15e0c34c853f8c to your computer and use it in GitHub Desktop.
elasticsearch 1.3.1 null_value NPE (null pointer exception)
export ES_HOST=http://localhost:9200
export ES_INDEX=test
# delete & recreate index with defaults
curl -XDELETE $ES_HOST/$ES_INDEX -s -o /dev/null
curl -XPUT $ES_HOST/$ES_INDEX -s -o /dev/null
# configure the mapping of the bug type in the test index
curl -XPUT $ES_HOST/$ES_INDEX/bug/_mapping -d '{
"bug": {
"properties": {
"exception": {
"null_value": null,
"type": "integer"
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment