From user-return-16534-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Jun 7 08:33:00 2011 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 C06FD6FC2 for ; Tue, 7 Jun 2011 08:33:00 +0000 (UTC) Received: (qmail 98380 invoked by uid 500); 7 Jun 2011 08:32:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 98333 invoked by uid 500); 7 Jun 2011 08:32:59 -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 98325 invoked by uid 99); 7 Jun 2011 08:32:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 08:32:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 08:32:52 +0000 Received: by bwj24 with SMTP id 24so6348494bwj.11 for ; Tue, 07 Jun 2011 01:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=s5aahKiV/rbXAlvj9PSfvfTuUwhIAHDrI+AGNZCv+tU=; b=MrYIHytGF4A42DYF56qVrzR+NYEy15i9CdUuEJbghyWbpOm+tH8LX2apLGpUXxJYo+ XaGyoJnGNCLP95vBAMzeFBPCKJHPI4xxWwlc09SphK/xnpp63DzjefIlA1Kq61QjTLq3 FOG0ckKA7u1YeHosLUS+V0Lr9hviBjv9fSmjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bq1NH1bXc14pX+beUknQRvjxTTv2ucfAq8sHW0j5Z2QD1Rv8SteJgPNXjRuthWqse5 nAJmxet8mRu8mYNcygt9ARqkSpSsIdJzr8EZor0i1YFTv/vp8g48/NboEK/QbdTYq6xJ 3KSYoCAcRsNMhr3qqi+b3vPVxErhXttUNBxiU= MIME-Version: 1.0 Received: by 10.204.83.212 with SMTP id g20mr3517123bkl.55.1307435551950; Tue, 07 Jun 2011 01:32:31 -0700 (PDT) Received: by 10.204.65.17 with HTTP; Tue, 7 Jun 2011 01:32:31 -0700 (PDT) In-Reply-To: <4DEDB8AD.7070104@gmail.com> References: <4DEDB8AD.7070104@gmail.com> Date: Tue, 7 Jun 2011 09:32:31 +0100 Message-ID: Subject: Re: couchdb 1.1, couchdb lucene, include_docs=true From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I believe this bug was fixed on Dec 7 2010 (https://github.com/rnewson/couchdb-lucene/commit/6f81165a786e1b1130e3683fa= 334f3e9ce5611ab) 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=3Dtrue parameter. =A0It was working fine with couchdb 1.0.x > > > When I do this GET to a lucene view and use include_docs=3Dtrue: > > http://localhost:5984/test/_fti/_design/test/by_path?q=3Dkind:image&inclu= de_docs=3Dtrue > > I get this error: > > { > =A0code: 500 > =A0reason: "{"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=3Dkind:image > > { > =A0 =A0q: "kind:image", > =A0 =A0etag: "1224e617cb465190", > =A0 =A0skip: 0, > =A0 =A0total_rows: 2, > =A0 =A0search_duration: 2, > =A0 =A0fetch_duration: 9, > =A0 =A0rows: [ > =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0id: "116684826989320284f90c4cf472b94e", > =A0 =A0 =A0 =A0 =A0 =A0score: 1, > =A0 =A0 =A0 =A0 =A0 =A0fields: { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0kind: "image", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0name: "140.jpg", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0width: "764", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0height: "1068", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0size: "255031" > =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0}, > =A0 =A0 =A0 =A0{ > =A0 =A0 =A0 =A0 =A0 =A0id: "116684826989320284f90c4cf4013143", > =A0 =A0 =A0 =A0 =A0 =A0score: 1, > =A0 =A0 =A0 =A0 =A0 =A0fields: { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0kind: "image", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0name: "93.jpg", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0width: "656", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0height: "836", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0size: "47173" > =A0 =A0 =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0} > =A0 =A0] > } > > > I've tried setting "Content-Type" header to "application/json" (via Apach= e > HttpClient), but still get this error. =A0Same result via a browser. > It was working fine in 1.0.x > > Could someone help? > > Thanks, > Gary >