Re: Deleting a document found in a search

2002-10-09 Thread Otis Gospodnetic
You mean d.get(Id); ? Otis --- [EMAIL PROTECTED] wrote: I am just getting started with Lucene and I think I have a problem understanding some basic concepts. I am using two-part identifiers to uniquely identify a document in the index. So whenever I want to index a document, I first

Re: Deleting a document found in a search

2002-10-09 Thread lucene . user
No, I mean HitDoc.id, the document number field stored in the HitDoc class. This number is needed when calling IndexReader.delete(int docnum) but it is not publicly accessible. -- Adrian At 06:32 09/10/2002 -0700, Otis Gospodnetic wrote: You mean d.get(Id); ? --- [EMAIL PROTECTED] wrote: I

Re: Deleting a document found in a search

2002-10-09 Thread Doug Cutting
[EMAIL PROTECTED] wrote: My first thought is to define a Field.Keyword(composite-key, domain + \u + id). This would allow me to use the delete(Term) interface to delete the key. That sounds like a good way to solve this. You could also use a HitCollector with a Query, but I think the