You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by MilleBii <mi...@gmail.com> on 2009/07/04 10:22:01 UTC

Re: Storing a serialized object ?

Well,

During indexing phase (I'm actually running Nutch), I'm also extracting data
about my pages including some text fragments.
So I'd like to store the resulting objects in lucene index, and reload them
at search time for further manipulation.
I was wondering which way was the simplest.


2009/7/4 Simon Willnauer <si...@googlemail.com>

> Hi there,
>
> On Fri, Jul 3, 2009 at 9:32 PM, MilleBii<mi...@gmail.com> wrote:
> > I want to store in the index a data structure and load it back at search
> > time.
> >
> > Is it safe to serialize the java object store it and load it back later ?
> It won't be particularly fast nor efficient but it is gonna work.
> > Presumably I need to store it binary, right ?
> That is one way, or you do it base64 encoded in a text field if don't
> care about space at all. :)
> I agree with Eric, you should explain your usecase a little more to
> get a more detailed answer if it make sense or not.
>
> simon
> >
> > Otherwise I need to create my own store & load methods, waste of time.
> >
> > --
> > -MilleBii-
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
-MilleBii-