Is it possible to get attachments as binary stream?


(vsiryi) #1

I have not seen such possibility in the documentation. This question I ask to be sure that it can not be done.
As I understand, ES does not store the attachments in binary. ES get attachment as base64 stream from JSON and index it.

Thanks!
Best regards, Vitalii Siryi


(Lukáš Vlček) #2

Hi,

AFAIK it is not possible. You get Base64 encoded content from _source which
you have to decode on your side.

Regards,
Lukas

On Tue, Nov 29, 2011 at 2:03 PM, vsiryi vitalii.siryi@gmail.com wrote:

I have not seen such possibility in the documentation. This question I ask
to
be sure that it can not be done.
As I understand, ES does not store the attachments in binary. ES get
attachment as base64 stream from JSON and index it.

Thanks!
Best regards, Vitalii Siryi

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Is-it-possible-to-get-attachments-as-binary-stream-tp3545099p3545099.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(David Pilato) #3

I don't think it's possible as you can't put binary in a JSON content.
What is your use case ?

David :wink:
@dadoonet

Le 29 nov. 2011 à 14:03, vsiryi vitalii.siryi@gmail.com a écrit :

I have not seen such possibility in the documentation. This question I ask to
be sure that it can not be done.
As I understand, ES does not store the attachments in binary. ES get
attachment as base64 stream from JSON and index it.

Thanks!
Best regards, Vitalii Siryi

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Is-it-possible-to-get-attachments-as-binary-stream-tp3545099p3545099.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(Goog Jobs) #4

In couchdb, the attachments can be uploaded in binary and can be indexed by
ES.

2011/11/29 vsiryi vitalii.siryi@gmail.com

I have not seen such possibility in the documentation. This question I ask
to
be sure that it can not be done.
As I understand, ES does not store the attachments in binary. ES get
attachment as base64 stream from JSON and index it.

Thanks!
Best regards, Vitalii Siryi

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Is-it-possible-to-get-attachments-as-binary-stream-tp3545099p3545099.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #5