You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matt Mitchell <go...@gmail.com> on 2009/04/29 03:12:45 UTC
field type for serialized code?
Hi,
I'm attempting to serialize a simple ruby object into a solr.StrField - but
it seems that what I'm getting back is munged up a bit, in that I can't
de-serialize it. Is there a field type for doing this type of thing?
Thanks,
Matt
Re: field type for serialized code?
Posted by Matt Mitchell <go...@gmail.com>.
Sorry, should of mentioned how I was serializing. In Ruby, I'm using
Marshal.dump. When loading back into ruby via Marshal.load, I get an error
related to the Marshaled version. I'm starting to play with JSON too.
Matt
On Wed, Apr 29, 2009 at 6:42 AM, Erik Hatcher <er...@ehatchersolutions.com>wrote:
> Are you using REXML? Or libxml? I'm assuming this is from a Solr/Ruby
> (RSolr?) API call to add the document.
>
> Erik
>
>
> On Apr 28, 2009, at 9:12 PM, Matt Mitchell wrote:
>
> Hi,
>>
>> I'm attempting to serialize a simple ruby object into a solr.StrField -
>> but
>> it seems that what I'm getting back is munged up a bit, in that I can't
>> de-serialize it. Is there a field type for doing this type of thing?
>>
>> Thanks,
>> Matt
>>
>
>
Re: field type for serialized code?
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Are you using REXML? Or libxml? I'm assuming this is from a Solr/
Ruby (RSolr?) API call to add the document.
Erik
On Apr 28, 2009, at 9:12 PM, Matt Mitchell wrote:
> Hi,
>
> I'm attempting to serialize a simple ruby object into a
> solr.StrField - but
> it seems that what I'm getting back is munged up a bit, in that I
> can't
> de-serialize it. Is there a field type for doing this type of thing?
>
> Thanks,
> Matt
Re: field type for serialized code?
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
is the serialized data in UTF-8 string?
On Wed, Apr 29, 2009 at 6:42 AM, Matt Mitchell <go...@gmail.com> wrote:
> Hi,
>
> I'm attempting to serialize a simple ruby object into a solr.StrField - but
> it seems that what I'm getting back is munged up a bit, in that I can't
> de-serialize it. Is there a field type for doing this type of thing?
>
> Thanks,
> Matt
>
--
--Noble Paul