You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Luke <lu...@lukeshannon.com> on 2005/09/05 20:34:34 UTC
Deleting All Documents With Certain Field Name
Would this not delete all records from the index that have a saleDate field?
reader.delete(new Term("salesDate", ""));
Thanks,
Luke
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Deleting All Documents With Certain Field Name
Posted by Otis Gospodnetic <ot...@yahoo.com>.
No. The delete method deletes all Documents with _matching_ terms.
Otis
--- Luke <lu...@lukeshannon.com> wrote:
> Would this not delete all records from the index that have a saleDate
> field?
>
> reader.delete(new Term("salesDate", ""));
>
> Thanks,
>
> Luke
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org