Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A064C620E for ; Tue, 7 Jun 2011 15:01:48 +0000 (UTC) Received: (qmail 59111 invoked by uid 500); 7 Jun 2011 15:01:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59077 invoked by uid 500); 7 Jun 2011 15:01:45 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 59069 invoked by uid 99); 7 Jun 2011 15:01:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 15:01:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of 7zark7@gmail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pw0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 15:01:39 +0000 Received: by pwi4 with SMTP id 4so3632809pwi.11 for ; Tue, 07 Jun 2011 08:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=P/xZ9UMavjQxoY3qFhtObU4Ie3Y4Xfo2yb+vSEb194g=; b=FVLOFbiIfWmfT3f6adMezEtUPvL9yu70DHswSYfVmo/4w6uFlwO73UC3p9pOTR3BHw cFnWEdsvswhVWnyBvIaklt/XKxssJI5JqlGgXGyQQQReeKuBP2M84eqssjgdmpNVL0iD iM8QJHe6DbdmstjY69eoLh36yJkJUP33n5al0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=gbdBVDE5qfh3NGjTD1SezkrYfGI/TtfV5c4OFcr8xvrfa5XQ/vQ2V2i+Dgrbf29sdj BFPrKqHhtd43iUmmJyAgWCw8K5bQF7KXnqIDud9W3gsDNMm+MZWRHAirUePBJS0VkK3a OTa9Lt3AHJOcf9edKxEwKhlZScCBXN3q0tubY= Received: by 10.142.1.4 with SMTP id 4mr44444wfa.210.1307458878671; Tue, 07 Jun 2011 08:01:18 -0700 (PDT) Received: from MacBook.local (adsl-108-68-26-96.dsl.sndg02.sbcglobal.net [108.68.26.96]) by mx.google.com with ESMTPS id t15sm446975wfh.16.2011.06.07.08.01.16 (version=SSLv3 cipher=OTHER); Tue, 07 Jun 2011 08:01:17 -0700 (PDT) Message-ID: <4DEE3D3A.50904@gmail.com> Date: Tue, 07 Jun 2011 08:01:14 -0700 From: Gary Thomas <7zark7@gmail.com> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: user@couchdb.apache.org, Robert Newson Subject: Re: couchdb 1.1, couchdb lucene, include_docs=true References: <4DEDB8AD.7070104@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks Robert! - Gary On 6/7/11 2:35 AM, Robert Newson wrote: > Done. > > On 7 June 2011 09:32, Robert Newson wrote: >> I believe this bug was fixed on Dec 7 2010 >> (https://github.com/rnewson/couchdb-lucene/commit/6f81165a786e1b1130e3683fa334f3e9ce5611ab) >> on the 0.6.x branch. >> >> I'll review the branch and push out a 0.6.1 release. >> >> B. >> >> On 7 June 2011 06:35, Gary Thomas<7zark7@gmail.com> wrote: >>> Hi all, >>> >>> Having trouble with couchdb 1.1 together couchdb lucene 0.6 and using the >>> include_docs=true parameter. It was working fine with couchdb 1.0.x >>> >>> >>> When I do this GET to a lucene view and use include_docs=true: >>> >>> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image&include_docs=true >>> >>> I get this error: >>> >>> { >>> code: 500 >>> reason: "{"error":"bad_content_type","reason":"Content-Type must be >>> application/json"} " >>> } >>> >>> When I leave include_docs off, it works fine: >>> >>> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image >>> >>> { >>> q: "kind:image", >>> etag: "1224e617cb465190", >>> skip: 0, >>> total_rows: 2, >>> search_duration: 2, >>> fetch_duration: 9, >>> rows: [ >>> { >>> id: "116684826989320284f90c4cf472b94e", >>> score: 1, >>> fields: { >>> kind: "image", >>> name: "140.jpg", >>> width: "764", >>> height: "1068", >>> size: "255031" >>> } >>> }, >>> { >>> id: "116684826989320284f90c4cf4013143", >>> score: 1, >>> fields: { >>> kind: "image", >>> name: "93.jpg", >>> width: "656", >>> height: "836", >>> size: "47173" >>> } >>> } >>> ] >>> } >>> >>> >>> I've tried setting "Content-Type" header to "application/json" (via Apache >>> HttpClient), but still get this error. Same result via a browser. >>> It was working fine in 1.0.x >>> >>> Could someone help? >>> >>> Thanks, >>> Gary >>> >>