On Nov 1, 2006, at 3:19 PM, Mike Klaas wrote:
On 11/1/06, Yonik Seeley (JIRA) <[EMAIL PROTECTED]> wrote:

echo $rs | grep '<response.*status="0"' > /dev/null 2>&1
if [[ $? != 0 ]]
then
  [...]

Looks good.

Any thought on switching to a more powerful scripting language for
these things?  Were this python, frinstance, a basic xml parser could
be thrown together in a couple lines.  Python is also more
cross-platform than bash scripting.

I'm personally interested in a Ruby Solr DSL (domain specific language) which would make this kind of stuff be API'ish instead of even having to deal with XML directly... maybe something like this:

        doc = SolrDoc.new
        doc.title = "foo"
        doc.text = "blah blah blah"

        Solr.post doc

Come on someone.... take this as a challenge and beat me to it :)

        Erik

Reply via email to