Completion suggester - Finite Strings Error

I get the following error when I try to insert a doc

TransportError(500, u'IllegalArgumentException[TokenStream expanded to
44800 finite strings. Only <= 256 finite strings are supported]')

Index: This gets created successfully

    index_body = {
        "settings": {
            "analysis": {
                "filter": {
                    "nGram_filter": {
                        "type": "edge_ngram",
                        "min_gram": 2,
                        "max_gram": 20,
                        "token_chars": [
                            "letter",
                            "digit",
                            "punctuation",
                            "symbol"
                        ]
                    }
                },
                "analyzer": {
                    "nGram_analyzer": {
                        "type": "custom",
                        "tokenizer": "whitespace",
                        "filter": [
                            "lowercase",
                            "asciifolding",
                            "nGram_filter"
                        ]
                    },
                    "whitespace_analyzer": {
                        "type": "custom",
                        "tokenizer": "whitespace",
                        "filter": [
                            "lowercase",
                            "asciifolding"
                        ]
                    },
                    "folding": {
                        "tokenizer": "standard",
                        "filter":  [
                            "lowercase",
                            "asciifolding"
                        ]
                    }
                }
            }
        },
        "mappings": {
            "funds" : {
                    "name": {
                        "type": "string",
                        "index": "not_analyzed"
                    },
                    "suggest" : {
                        "type" : "completion",
                        "index_analyzer" : "nGram_analyzer",
                        "search_analyzer" : "whitespace_analyzer",
                        "payloads" : "true"
                    }
                }
            }
        }
    }

*Doc to insert: *

*This gets inserted fine *
json3 = {
"name" : "ABC 123144",
"suggest" : {
"input": ["ABC 123144"],
"output": "ABC 123144",
"payload" : {
"id" : "ID123"
}
}
}

This doc gives the above error

  • json2 = {*
  •    "name" : "ABC 123144 ASDASD ASFSDFADF GROUP ADSAD ADAFAFAF",*
    
  •    "suggest" : {*
    
  •        "input": ["ABC 123144 ASDASD ASFSDFADF GROUP ADSAD ADAFAFAF"],*
    
  •        "output": "ABC 123144 ASDASD ASFSDFADF GROUP ADSAD ADAFAFAF",*
    
  •        "payload" : {*
    
  •            "id" : "ID123"*
    
  •        }*
    
  •    }*
    
  • }*

What are the possible solutions or alternatives for this error ?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6d8f5d86-ef8c-4f10-9e71-7eeae363837d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.