Try solrServer.deleteByQuery("id:2354345");

This will delete all documents which have id=2354345.

OR

solrServer.deleteById("2354345");

This works if id is uniqueKey in schema.xml
<uniqueKey>id</uniqueKey>

On Fri, Apr 24, 2009 at 10:43 PM, lupiss <lupitaga...@hotmail.com> wrote:

>
> You can use solrServer.deleteByQuery("*:*") and then call commit by
> solrServer.commit(true, true);
>
> This will erase the index.
>
> --
> Regards,
> Shalin Shekhar Mangar.
>
>
> hola gracias por contestar! ese comando ya lo había visto, pero borra todo
> los índices verdad?, yo quisiera borrar solo un índice de id = 2354345 por
> ejemplo, gracias
>
> hello thank you for answering! that time it had already seen it, but erased
> all the indexes right?, I just delete an index id = 2354345 for example,
> thanks
> --
> View this message in context:
> http://www.nabble.com/Delete-from-Solr-index...-tp10264940p23221035.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to