lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Duplicating a document in the index.
Date Tue, 10 Jun 2003 13:41:38 GMT
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


Mime
View raw message