lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MilleBii <mille...@gmail.com>
Subject Re: Storing a serialized object ?
Date Sat, 04 Jul 2009 08:22:01 GMT
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 <simon.willnauer@googlemail.com>

> Hi there,
>
> On Fri, Jul 3, 2009 at 9:32 PM, MilleBii<millebii@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-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message