RE: How to delete documents from SOLR index using DIH

2010-08-26 Thread Ephraim Ofir
Sent: Thursday, August 26, 2010 9:01 AM To: solr-user@lucene.apache.org Subject: Re: How to delete documents from SOLR index using DIH Thanks Erick. Your solution do make sense. Actually i wanted to know, how to use delete via query or unique id through DIH? Is there any specific query to be ment

Re: How to delete documents from SOLR index using DIH

2010-08-26 Thread Grijesh.singh
DIH is not basically for deletion it is for inserting data into index. Although it has a parameter "clean" which is by default true and it cleans the index every time when full-import command is issued, means it create index from scratch. If your requirement is to delete whole index you can also

Re: How to delete documents from SOLR index using DIH

2010-08-25 Thread Pawan Darira
Thanks Erick. Your solution do make sense. Actually i wanted to know, how to use delete via query or unique id through DIH? Is there any specific query to be mentioned in data-config.xml? Also Is there any separate command like "full-import" ,"delta-import" for deleting documents from index? On

Re: How to delete documents from SOLR index using DIH

2010-08-25 Thread Erick Erickson
I'm not sure what you mean here. You can delete via query or unique id. But DIH really isn't relevant here. If you've defined a unique key, simply re-adding any changed documents will delete the old one and insert the new document. If this makes no sense, could you explain what the underlying pro