lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject Re: Solr: Images, Docs and Binary data
Date Wed, 06 Apr 2011 18:39:47 GMT

> Ha, there's a binary field type?!
> 
> I've stored binary data in an ordinary "String" field type, and it's
> worked.  But there were some headaches to get it to work, might have
> been smoother if I had realized there was actually a binary field type.

How, you can't just embed control characters in an XML body? The need to be at 
least encoded as not to write tabs, deletes, backspaces and whatever garbage, 
base64 in Solr's case.
> 
> But wait I'm talking about Solr 'stored field', not about indexing. I
> didn't try to index my binary data, just store it for later retrieval
> (knowing this can sometimes be a performance problem, doing it anyway
> with relatively small data, got away with it).  Does the field type even
> effect the _stored values_ in a Solr field?

Solr decodes the data and stores it. It reencodes the data when writing a 
response.

> 
> On 4/6/2011 2:25 PM, Ryan McKinley wrote:
> > You can store binary data using a binary field type -- then you need
> > to send the data base64 encoded.
> > 
> > I would strongly recommend against storing large binary files in solr
> > -- unless you really don't care about performance -- the file system
> > is a good option that springs to mind.
> > 
> > ryan
> > 
> > 2011/4/6 Ezequiel Calderara<ezechico@gmail.com>:
> >> Another question that maybe is easier to answer, how can i store binary
> >> data? Any example schema?
> >> 
> >> 2011/4/6 Ezequiel Calderara<ezechico@gmail.com>
> >> 
> >>> Hello everyone, i need to know if some has used solr for indexing and
> >>> storing images (upt to 16MB) or binary docs.
> >>> 
> >>> How does solr behaves with this type of docs? How affects performance?
> >>> 
> >>> Thanks Everyone
> >>> 
> >>> --
> >>> ______
> >>> Ezequiel.
> >>> 
> >>> Http://www.ironicnet.com
> >> 
> >> --
> >> ______
> >> Ezequiel.
> >> 
> >> Http://www.ironicnet.com

Mime
View raw message