That is correct, but you only need to commit, optimize is not a requirement
here.
François
On Jun 18, 2011, at 11:54 PM, Mohammad Shariq wrote:
I have define uniqueKey in my solr and Deleting the docs from solr using
this uniqueKey.
and then doing optimization once in a day.
is this right
That'll work, but you could just as easily simply add the document. Solr
will take care of deleting any other documents with the same uniqueKey
as a document being added automatically.
Optimizing once a day is reasonable, but note that about all you're
doing here is
reclaiming some space. So if
Hello,
I've indexing with the content field stored. Now I'd like to delete all
stored content, is there how to do that without re-indexing?
It seems not from lucene
FAQhttp://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_update_a_document_or_a_set_of_documents_that_are_already_indexed.3F
:
How
Yep, you've got to delete and re-add. Although if you have a
uniqueKey defined you
can just re-add that document and Solr will automatically delete the underlying
document.
You might have to optimize the index afterwards to get the data to really
disappear since the deletion process just marks
I have define uniqueKey in my solr and Deleting the docs from solr using
this uniqueKey.
and then doing optimization once in a day.
is this right way to delete ???
On 19 June 2011 05:14, Erick Erickson erickerick...@gmail.com wrote:
Yep, you've got to delete and re-add. Although if you have a