lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tomblin <ptomb...@xcski.com>
Subject Re: Ok, that didn't work
Date Sat, 31 Oct 2009 15:16:38 GMT
On Sat, Oct 31, 2009 at 11:08 AM, Yonik Seeley
<yonik@lucidimagination.com> wrote:
> I personally think it would be cleaner to allow a post of just a <doc>
> (or multiple with a surrounding <docs> tag), esp now that we can put
> modifiers in the URL.

Exactly.  The action should be in the url.
>
> For now, just use shell scripting I guess:
>
> $ (echo '<add>'; cat file.xml; echo '</add>') | curl $URL
> --data-binary @- -H 'Content-type:text/xml; charset=utf-8'
>

Well, that's cleaner than what I was going to do, which was to use sed
to add the <add></add> tags and then remove them afterwards.  Thanks.

-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin

Mime
View raw message