Re: Is it true that I cannot delete stored content from the index?

2011-06-19 Thread François Schiettecatte
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

Re: Is it true that I cannot delete stored content from the index?

2011-06-19 Thread Erick Erickson
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

Is it true that I cannot delete stored content from the index?

2011-06-18 Thread Gabriele Kahlout
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

Re: Is it true that I cannot delete stored content from the index?

2011-06-18 Thread Erick Erickson
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

Re: Is it true that I cannot delete stored content from the index?

2011-06-18 Thread Mohammad Shariq
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