I\'ve upgraded my Elasticsearch cluster from 1.1 to 1.2 and I have errors when indexing a somewhat big string.
{
\"error\": \"IllegalArgumentException[Docu
If you really want not_analyzed on on the property because you want to do some exact filtering then you can use "ignore_above": 256
Here is an example of how I use it in php:
'mapping' => [
'type' => 'multi_field',
'path' => 'full',
'fields' => [
'{name}' => [
'type' => 'string',
'index' => 'analyzed',
'analyzer' => 'standard',
],
'raw' => [
'type' => 'string',
'index' => 'not_analyzed',
'ignore_above' => 256,
],
],
],
In your case you probably want to do as John Petrone told you and set "index": "no" but for anyone else finding this question after, like me, searching on that Exception then your options are:
"index": "no""index": "analyze""index": "not_analyzed" and "ignore_above": 256It depends on if and how you want to filter on that property.