vglazkov
(Vitlalii Glazkov)
January 30, 2017, 2:07pm
1
Hi!
Is there any way to store binary data fields without base64 encoding? I have a bunch of such fields in each document and it will be costly for me to encode/decode them every time. I don't want to index them. Or is there a possibility for Elasticsearch plugin to get low-level Lucene API interface? Because, as far as I know, they have StoredField:
https://lucene.apache.org/core/5_3_1/core/org/apache/lucene/document/StoredField.html#StoredField(java.lang.String,%20byte[])
spinscale
(Alexander Reelsen)
January 31, 2017, 9:33am
2
Hey,
as Elasticsearch also supports CBOR, which would allow you to sent binary data to elasticsearch as byte streams. That way you could circumvent the conversion on the cost that your client has to speak this protocol.
--Alex
vglazkov
(Vitlalii Glazkov)
January 31, 2017, 2:23pm
3
Hi, Alexander!
Thanks for your answer. Can you please point me out to some examples with Elastic and CBOR?
spinscale
(Alexander Reelsen)
February 1, 2017, 8:23am
4
Hey,
I think the only way to look at are the tests in the elasticsearch repository. The following tests are mentioning CBOR
CborFilteringGeneratorTests
CborXContentTests
JsonVsCborTests
RestTableTests
XContentFactoryTests
XContentTypeTests
also checking out the underlying implementation (jackson) that serializes/unserializes CBOR makes sense.
Hope this helps.
--Alex
vglazkov
(Vitlalii Glazkov)
February 3, 2017, 2:17pm
5
Thanks, will check it out!
system
(system)
Closed
March 3, 2017, 2:17pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.