Re: Delete from Solr index...

2010-01-29 Thread vnchoudhary
I am looking for following solution in C#, Please provide sample code if possible:- 1. Delete all the index using delete query. 2. Take backup of all the old index, before regenerate. 3. Try to write unlike query for a field to delete stale index. 4. How can use transaction under index generation

Re: Delete from Solr index...

2009-04-24 Thread Shalin Shekhar Mangar
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 id On Fri, Apr 24, 2009 at 10:43 PM, lupiss wrote: > > You can use solrServer.deleteByQuery("*:*") and then call

Re: Delete from Solr index...

2009-04-24 Thread lupiss
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

Re: Delete from Solr index...

2009-04-23 Thread Shalin Shekhar Mangar
On Thu, Apr 23, 2009 at 9:25 AM, lupiss wrote: > > hola de nuevo! > es cierto ese comando es el que borra un index, ya lo intenté y sí, así > borraré mis registros de prueba de mi proyecto, estaría bien saber como > borrarlo desde la aplicación mediante solrj, saludos, gracias :) > > hello again!

Re: Delete from Solr index...

2009-04-22 Thread lupiss
hola de nuevo! es cierto ese comando es el que borra un index, ya lo intenté y sí, así borraré mis registros de prueba de mi proyecto, estaría bien saber como borrarlo desde la aplicación mediante solrj, saludos, gracias :) hello again! this is true is the command that erases an index, and I tri

Re: Delete from Solr index...

2009-04-21 Thread lupiss
Hola! ¿qué tal? Tengo un problema parecido, necesito borrar algunos índices de mi solr, ya que los di de alta mientras hacía pruebas y ahora que entregaré el proyecto necesito que no aparezcan ya, se me complica esto ya que toda la información de solr está en inglés y pués yo no lo entiendo bien,

Re: Delete from Solr index...

2007-05-01 Thread Erik Hatcher
If you want to do this as a single delete-by-query, you could OR all the clauses together: load_id:(20070424150841 OR 20070425145301 )query> Erik On May 1, 2007, at 2:14 AM, Ryan McKinley wrote: escher2k wrote: I am trying to remove documents from my index using "delete by query"

Re: Delete from Solr index...

2007-05-01 Thread Ryan McKinley
escher2k wrote: Thanks Ryan. I need to use query since I am deleting a range of documents. From your comment, I wasn't sure if one doesn't need to do an explicit commit when using delete by query. Does delete by query not need an explicit commit. delete by query causes a commit *before* it e

Re: Delete from Solr index...

2007-04-30 Thread escher2k
Thanks Ryan. I need to use query since I am deleting a range of documents. >From your comment, I wasn't sure if one doesn't need to do an explicit commit when using delete by query. Does delete by query not need an explicit commit. Thanks. ryan mckinley wrote: > > escher2k wrote: >> I am tryin

Re: Delete from Solr index...

2007-04-30 Thread Ryan McKinley
escher2k wrote: I am trying to remove documents from my index using "delete by query". However when I did this, the deleted items seem to remain. This is the format of the XML file I am using - load_id:20070424150841 load_id:20070425145301 load_id:20070426145301 load_id:20070427145302 load_id:20