lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fredrik Andersson <fidde.anders...@gmail.com>
Subject Re: updating Lucene Index
Date Thu, 26 Jan 2006 20:27:49 GMT
You can delete by any unique term, using an IndexReader. I think this method
is wrapped in IndexModifier as well, not sure. If it isn't, just use an
IndexReader.

yourIndexReader.delete(new Term("yourUniqueField", "yourUniqueValue"));

Fredrik

On 1/26/06, Kodumuri, Madhavi <MKodumuri@cme.com> wrote:
>
> How do I delete a document from the already existing indexer, as I am
> unable to get the indexed ID for that document.
>
> Thanks for your help,
>
> Madhavi
>
>
> -----Original Message-----
> From: Koji Sekiguchi [mailto:koji.sekiguchi@m4.dion.ne.jp]
> Sent: Tuesday, January 24, 2006 4:04 PM
> To: general@lucene.apache.org
> Subject: RE: updating Lucene Index
>
> even if you use IndexModifier class,
> you should delete then addDoc the document to be updated.
>
> Thanks,
>
> Koji
>
> > -----Original Message-----
> > From: Fredrik Andersson [mailto:fidde.andersson@gmail.com]
> > Sent: Wednesday, January 25, 2006 6:58 AM
> > To: general@lucene.apache.org
> > Subject: Re: updating Lucene Index
> >
> >
> > Hi,
> >
> > Use the IndexModifier class?
> >
> > On 1/24/06, Kodumuri, Madhavi <MKodumuri@cme.com> wrote:
> > >
> > > Hi,
> > >
> > > My Lucene Indexer indexes from scratch with no problem. But I would
> like
> > > to update the index database next time I run Indexer rather than
> > > deleting the database and creating index from scratch every time I
> run
> > > the Indexer. Is there any Update methods?
> > > Any help appreciated,
> > >
> > > Thanks,
> > >
> > > Madhavi Kodumuri
> > >
> > >
> > >
> >
>
>
>

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