solr Client

  • Home
  • Solr Client
  • APIs
    • JAVA
    • PHP
    • Shell
  • Links
PHP Clients
  • Apache Solr PHP Extension
  • Generic PHP Client
  • SolrQuery - PHP query client for Solr
  • SolrUpdate - PHP update client for Solr
  • solr-php-client
API Clients
  • Apache Solr PHP Extension
  • Haystack for Django
  • Flash Client: solr-sunspot
  • Minig's Solr Client
  • solrpy
  • Django Solr
  • Post Multiple Files to a Solr Server
  • Solr Delete Post for Shells
  • Generic PHP Client
  • SolrJ
Other Clients
  • Solr for WordPress
  • Drupal 5 Solr
  • solr Client
Home

Solr Delete Post for Shells

Tue, 03/23/2010 - 14:18 |  admin

This script is used to delete entries from a solr installation. In this case the delete query is 'url:http*' which is and record which contains http* in the url field. Be sure to change this portion of the code to fit your needs.


#!/bin/sh

URL=http://localhost:8080/solr/update
echo "deleting all entries:";
curl $URL --data-binary 'url:http*' -H 'Content-type:text/xml; charset=utf-8'
curl $URL --data-binary '' -H 'Content-type:text/xml; charset=utf-8'
curl $URL --data-binary '' -H 'Content-type:text/xml; charset=utf-8'

Add new comment |  Tags: API, Shell

Search

Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright © 2010 solr Client. All Rights Reserved.

Powered by Drupal and Drupal Theme created with Artisteer.