elasticsearch/elasticsearch-mapper-attachments — pull request #7 by Henac (2012-03-04 05:29:24+00:00)
Title: Added the ability to specify the amount of text to extract and index from an attachment.

By default, tika is only extracting a maximum of 100,000 characters from the uploaded file attachment. I have modified it so that on upload, you can specify the maximum amount of characters to extract from the document (specify -1 to remove any limit).

Example usage:
{
"my_attachment" : {
"_content_length" : 500000,
"_content_type" : "application/pdf",
"_name" : "resource/name/of/my.pdf",
"content" : "... base64 encoded attachment ..."
}
}