Hello Erik, We are running jetty in the background and use curl and the following:
/usr/bin/curl -s http://127.0.0.1:8983/solr/biblio/update?commit=true -H "Content-Type: text/xml" --data-binary '<update><delete><query>ebr*</query></delete></update>'; /usr/bin/curl -s http://127.0.0.1:8983/solr/biblio/update?commit=true -H "Content-Type: text/xml" --data-binary '<update><delete><id>ebr10083687</id></delete></update>'; al On Wed, 2012-02-01 at 16:54 +0000, Sethi, Parampreet wrote: > Hi Erik, > > Is this what you are looking for? > http://lucene.apache.org/solr/tutorial.html#Deleting+Data > > Execute the following command to delete a document > java -Ddata=args -Dcommit=no -jar post.jar > "<delete><id>SP2514N</id></delete>" > > > Š > > Here is an example of using delete-by-query to delete anything with > DDR <http://localhost:8983/solr/select?q=name:DDR&fl=name> in the > name: > java -Ddata=args -jar post.jar "<delete><query>name:DDR</query></delete>" > > > In case you are using Solrj client or similar there are direct functions > available to modify the index (add/update/delete). > > Hope it helps! > > -param > > On 2/1/12 11:14 AM, "ejcirel" <ejci...@yahoo.com> wrote: > > >Does anyone have an example of how to use the $deleteDocByQuery and > >$deleteDocByID special commands. I am not finding much online. Any help > >would be greatly appreciated. Thank you. > > > >Erik > > > >-- > >View this message in context: > >http://lucene.472066.n3.nabble.com/deleteDocByQuery-and-deleteDocByID-tp37 > >07070p3707070.html > >Sent from the Solr - User mailing list archive at Nabble.com. > -- Alan Rykhus PALS, A Program of the Minnesota State Colleges and Universities (507)389-1975 alan.ryk...@mnsu.edu "It's hard to lead a cavalry charge if you think you look funny on a horse" ~ Adlai Stevenson