Deleting index from Solr using solrj as a client

Posted by Azhar on Stack Overflow See other posts from Stack Overflow or by Azhar
Published on 2010-04-17T05:46:06Z Indexed on 2010/04/17 5:53 UTC
Read the original article Hit count: 382

Filed under:

Hello,

I am using solrj as client for indexing documents on the solr server.

I am having problem while deleting the indexes by 'id' from the solr server. I am using following code to delete the indexes:

server.deleteById("id:20"); server.commit(true,true);

After this when i again search for the documents, the search result contains the above document also. Dont know what is going wrong with this code. Please help me out with issue.

Thanks!

© Stack Overflow or respective owner

Related posts about solrj