
ismail at gmail
Oct 15, 2006, 3:18 AM
Post #3 of 4
(1579 views)
Permalink
|
thanks, it worked On 10/15/06, Doron Cohen <DORONC[at]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[at]lucene.apache.org > For additional commands, e-mail: java-user-help[at]lucene.apache.org > >
|