lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Hadianto <vict...@nuix.com.au>
Subject Re: Duplicating a document in the index.
Date Wed, 11 Jun 2003 22:56:09 GMT
Interesting, I've never thought that it may work. I always thought you have to 
create a new document with all the fields again.

Will give it a try.

Thanks,

victor

On Tue, 10 Jun 2003 11:41 pm, Otis Gospodnetic wrote:
> Pseudo-pseudocode:
>
> TermQuery q = ....
> Hits hits = searcher.search(q);
> Document doc = hits(1);
> writer.add(doc); // now you have who docs in the index
> writer.close();
>
> No?
> Have you tried this and it didn't work?
>
> Otis
>
> --- Victor Hadianto <victorh@nuix.com.au> wrote:
> > On Tue, 10 Jun 2003 05:03 pm, Otis Gospodnetic wrote:
> > > You could add it twice.
> > > You could probably also get it out of the index (e.g. via search),
> >
> > and
> >
> > > re-add it.
> > > You can have multiple instances of the same document in the index.
> >
> > Hmm what if the fields data is not available anymore? Is there a way
> > to
> > dulicate fields in the index?
> >
> > > Otis
> >
> > victor
> >
> > > --- Victor Hadianto <victorh@nuix.com.au> wrote:
> > > > Hi list,
> > > >
> > > > Is there an easy way for duplicating a document in the index? Or
> >
> > can
> >
> > > > someone
> > > > point me to the right direction for looking?
> > > >
> > > > Thanks,
> > > > --
> > > > Victor Hadianto
> > > >
> > > > NUIX Pty Ltd
> > > > Level 8, 143 York Street, Sydney 2000
> > > > Phone: (02) 9283 9010
> > > > Fax:   (02) 9283 9020
> > > >
> > > > This message is intended only for the named recipient. If you are
> >
> > not
> >
> > > > the
> > > > intended recipient you are notified that disclosing, copying,
> > > > distributing
> > > > or taking any action in reliance on the contents of this message
> >
> > or
> >
> > > > attachment is strictly prohibited.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org

-- 
Victor Hadianto

NUIX Pty Ltd
Level 8, 143 York Street, Sydney 2000
Phone: (02) 9283 9010
Fax:   (02) 9283 9020

This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this message or
attachment is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message