lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
Subject Re: Deleting a document found in a search
Date Wed, 09 Oct 2002 16:57:47 GMT
lucene.user@ajm.co.nz wrote:
> My first thought is to
> define a Field.Keyword("composite-key", domain + "\u0000" + 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 
composite key is a better approach.

Doug



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message