lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ismail Siddiqui" <ism...@gmail.com>
Subject Re: problem deleting documents
Date Sun, 15 Oct 2006 10:18:59 GMT
thanks, it worked

On 10/15/06, Doron Cohen <DORONC@il.ibm.com> wrote:
>
> > now pk is primary key which i am storing but not indexing it..
> >      doc.add(new Field("pk", message.getId().toString(),Field.Store.YES,
> >                     Field.Index.NO));
>
> You would need to index it for this to work.
> From javadocs for IndexReader.deleteDocuments(Term):
> Deletes all documents _containing_ term
> Containment relates to indexed terms.
>
> >
> > when i am making a search i can get pk and show it in result...but above
> > code is not deleting the document
>
> - Doron
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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