Index.mapping.attachment.indexed_chars how to set

I need to set the index.mapping.attachment.indexed_chars value to the maximum possible but I wasn't able to understand how should I set such value.ù
Can someone explain me how to set it using Java API ?
Tks
Tullio

You can set it to -1 to have no limit. You can set the mentioned setting
either when you create the index through the Java API in the settings, or
in the node configuration file.

On Tue, Jun 5, 2012 at 1:12 PM, tullio0106 tbettinazzi@axioma.it wrote:

I need to set the index.mapping.attachment.indexed_chars value to the
maximum
possible but I wasn't able to understand how should I set such value.ù
Can someone explain me how to set it using Java API ?
Tks
Tullio

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/index-mapping-attachment-indexed-chars-how-to-set-tp4018830.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

i have set index.mapping.attachment.indexed_chars: -1 or indexed_chars: 1 in elasticsearch.yml,but get the same error:Failed to extract [100000] characters of text for [null].