Re: Getting file text content from mapper?

2014-11-20 Thread Raymond Giorgi
Also, this is the first line of what's posted along the river { index: {_index:resumes,_type:resume,_id:2158912}} Things can get truncated when they're as big as a Base64 encoded file :) On Wednesday, November 19, 2014 6:01:29 PM UTC-5, Raymond Giorgi wrote: Hey all, I'm hoping someone can

Re: Problems indexing attachments using attachment mapping

2014-11-19 Thread raymond . giorgi
Bump on this. I've tried using the built in Java Base64 encoding: Base64.getMimeEncoder().encode(Files.readAllBytes(file.toPath())); And using jackson's ObjectMapper function as follows String base64 = mapper.writeValueAsString(Files.readAllBytes(file.toPath ())); base64 = base64.substring(1,

Re: Problems indexing attachments using attachment mapping

2014-11-19 Thread raymond . giorgi
I should also mention that I'm trying to use the RabbitMQ river, which is why I'm converting files into Base64 to begin with. Thanks again! On Wednesday, November 19, 2014 2:22:23 PM UTC-5, raymond...@theresumator.com wrote: Bump on this. I've tried using the built in Java Base64 encoding:

Getting file text content from mapper?

2014-11-19 Thread Raymond Giorgi
Hey all, I'm hoping someone can help me out with something I'm having an issue with. The short: I'm trying to extract plaintext from the attachment-mapper. The long: I'm posting the contents of a file Base64 encoded to RabbitMQ which is feeding an ElasticSearch river plugin. Querying against