Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 77974 invoked from network); 2 Apr 2011 23:59:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2011 23:59:43 -0000 Received: (qmail 25868 invoked by uid 500); 2 Apr 2011 23:59:41 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 25809 invoked by uid 500); 2 Apr 2011 23:59:41 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 25800 invoked by uid 99); 2 Apr 2011 23:59:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2011 23:59:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2011 23:59:33 +0000 Received: by gwj22 with SMTP id 22so2377428gwj.35 for ; Sat, 02 Apr 2011 16:59:12 -0700 (PDT) Received: by 10.151.43.15 with SMTP id v15mr5418038ybj.170.1301788752560; Sat, 02 Apr 2011 16:59:12 -0700 (PDT) Received: from bester.local ([65.78.136.75]) by mx.google.com with ESMTPS id h43sm1728112yhm.22.2011.04.02.16.59.10 (version=SSLv3 cipher=OTHER); Sat, 02 Apr 2011 16:59:11 -0700 (PDT) Date: Sat, 2 Apr 2011 16:59:08 -0700 (PDT) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: Solr, cURL, and Java runtime In-Reply-To: <1300477323495-2699317.post@n3.nabble.com> Message-ID: References: <1300477323495-2699317.post@n3.nabble.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII : : I'm experiencing something weird while trying to post updates to Solr docs : via cURL from exec in Java runtime. I can't figure out if this is something : strange with Solr's update mechanism, cURL, or Java runtime oddities, so There are so many frightening things in that sentence i don't even know where to begin. please don't do what you just described. it's making me cry. seriously -- that's a scary, overly complicated, brittle way to try to talk to Solr fro ma java app. I could not bring myself to read any of your email passed that line because of how much it disturbed me. Please consider using SolrJ. If you really have some reason why you don't want to use SolrJ, then at least use some Java based HTTP library to talk to Solr. the SimplePostTool code in solr's code base shows a really dirt simple example of using pure java to POST data to Solr. Trying to use Runtime.exec with curl, with xml passed to curl on the commandline is just asking for a world of shell escaping non-portable pain ... as you've already unconvered. -Hoss