Problem with context suggester when a document has more than 256 categories


I use the context suggester, well, for suggestions and I have more than 256
different categories.

When I try to index a document with 257 categories, I get the following

"error":"IllegalArgumentException[TokenStream expanded to 257 finite
strings. Only <= 256 finite strings are supported]",

I have uploaded a simple curl example

Is this a bug or an expected limitation? How can I solve this problem (e.g.
increase the number of possible categories)?

Also, please note that the documentation does not mention this

Best regards,

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
To view this discussion on the web visit
For more options, visit