Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 98503 invoked from network); 31 Jan 2007 22:36:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 22:36:29 -0000 Received: (qmail 85290 invoked by uid 500); 31 Jan 2007 22:36:34 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 85167 invoked by uid 500); 31 Jan 2007 22:36:33 -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 85158 invoked by uid 99); 31 Jan 2007 22:36:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 14:36:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 14:36:25 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id F01715B778; Wed, 31 Jan 2007 14:36:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id E82627F403 for ; Wed, 31 Jan 2007 14:36:04 -0800 (PST) Date: Wed, 31 Jan 2007 14:36:04 -0800 (PST) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: Couple of ruby/solrb questions.. In-Reply-To: Message-ID: References: <718681.728.qm@web25509.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : This feels like a bug, is it ticketed? Solr::Request::Select requests : are POSTing URL encoded name/value pairs so the Content-type is : appropriate...But Solr::Request::AddDocument (and others) are posting : xml so the Content-type should be text/xml. There needs to be logic : for differentiating between the two. At the moment, when POSTing xml docs to /update the SolrUpdateServlet ignores the content-type -- but it would definitely be wise to fix this in solrb since the recently commited alternate way of doing updates (which allows for plugable UpdateRequestHandlers so we can start supporting alternate formats for updates) requires that the content-type be set appropriately: application/x-www-form-urlencoded for simple key=val pairs, multipart/* for file upload style updates, and anything else for "raw posting" of data. -Hoss