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 Dragon Fly <dr...@hotmail.com> on 2008/08/10 16:09:56 UTC
Deleting documents ...
I'd like to delete some documents from my index. Should I use the DeleteDocument method in the IndexReader class or the IndexModifier class? Does it make a difference which one I use? Thank you.
_________________________________________________________________
Get more from your digital life. Find out how.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
RE: Deleting documents ...
Posted by Dragon Fly <dr...@hotmail.com>.
OK, thank you.
> From: lucene@mikemccandless.com
> To: java-user@lucene.apache.org
> Subject: Re: Deleting documents ...
> Date: Sun, 10 Aug 2008 10:52:42 -0400
>
>
> Actually it's usually best to use the deleteDocuments method in
> IndexWriter since it saves you having to close/open IndexWriter &
> IndexReader back and forth to do the deletions.
>
> IndexModifier is deprecated.
>
> Mike
>
> Dragon Fly wrote:
>
> > I'd like to delete some documents from my index. Should I use the
> > DeleteDocument method in the IndexReader class or the IndexModifier
> > class? Does it make a difference which one I use? Thank you.
> >
> > _________________________________________________________________
> > Get more from your digital life. Find out how.
> > http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
_________________________________________________________________
Got Game? Win Prizes in the Windows Live Hotmail Mobile Summer Games Trivia Contest
http://www.gowindowslive.com/summergames?ocid=TXT_TAGHM
Re: Deleting documents ...
Posted by Michael McCandless <lu...@mikemccandless.com>.
Actually it's usually best to use the deleteDocuments method in
IndexWriter since it saves you having to close/open IndexWriter &
IndexReader back and forth to do the deletions.
IndexModifier is deprecated.
Mike
Dragon Fly wrote:
> I'd like to delete some documents from my index. Should I use the
> DeleteDocument method in the IndexReader class or the IndexModifier
> class? Does it make a difference which one I use? Thank you.
>
> _________________________________________________________________
> Get more from your digital life. Find out how.
> http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org