You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by samir <sa...@i-link.co.in> on 2006/02/23 08:53:37 UTC
need help on updating index
Hello,
I have one document in the index.
If that document is only renamed but its content is same as before then can
I update the index.
As the Book Lucene in Action says that Lucene doesn't have any thing like
update(...) method. And for updating one need to delete the old document and
add the new document.
Is it the only solution?
Regards,
Samir
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
RE: need help on updating index
Posted by samir <sa...@i-link.co.in>.
Hi Erik,
Thank you very much for a prompt reply
Regards
Samir
-----Original Message-----
From: Erik Hatcher [mailto:erik@ehatchersolutions.com]
Sent: 23 February 2006 13:52
To: java-dev@lucene.apache.org
Subject: Re: need help on updating index
On Feb 23, 2006, at 2:53 AM, samir wrote:
> I have one document in the index.
> If that document is only renamed but its content is same as before
> then can
> I update the index.
> As the Book Lucene in Action says that Lucene doesn't have any
> thing like
> update(...) method. And for updating one need to delete the old
> document and
> add the new document.
> Is it the only solution?
Yes, delete/add is the only solution to "update".
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: need help on updating index
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Feb 23, 2006, at 2:53 AM, samir wrote:
> I have one document in the index.
> If that document is only renamed but its content is same as before
> then can
> I update the index.
> As the Book Lucene in Action says that Lucene doesn't have any
> thing like
> update(...) method. And for updating one need to delete the old
> document and
> add the new document.
> Is it the only solution?
Yes, delete/add is the only solution to "update".
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org