Skip to content

Instantly share code, notes, and snippets.

@goldmar
goldmar / Elasticsearch Problem
Last active August 29, 2015 14:14
Elasticsearch IllegalArgumentException[TokenStream expanded to 257 finite strings. Only <= 256 finite strings are supported]
# Remove old data
curl -XDELETE "http://localhost:9200/testindex"
# Create index with mapping
curl -XPOST "http://localhost:9200/testindex/" -d '
{
"mappings" : {
"testtype" : {
"properties" : {
"available_for_client" : {