elasticsearch/elasticsearch-mapper-attachments — pull request #8 by Henac (2012-03-06 11:34:45+00:00)
Title: [Updated] Added the ability to specify the amount of text to extract and index from an attachment. - On a per call basis.

[Updated] Fixed issue that content length was being set globally on tika instance. It is now setting correctly on a per call basis.

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 ..."
}
}