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 646EA6826 for ; Tue, 7 Jun 2011 09:35:39 +0000 (UTC) Received: (qmail 75192 invoked by uid 500); 7 Jun 2011 09:35:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 75162 invoked by uid 500); 7 Jun 2011 09:35:37 -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 75154 invoked by uid 99); 7 Jun 2011 09:35:37 -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 09:35:37 +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 (athena.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 09:35:32 +0000 Received: by bwj24 with SMTP id 24so6397495bwj.11 for ; Tue, 07 Jun 2011 02:35:11 -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=PgkDQKzd3tHZI/NfkudnmUSYQ6xnu5LnIRUqfmXIT88=; b=QFSUJbR7B5eQ6G4fZBEefnlScOoZ2ld9Qd6GFr89N2Cd52Odu6/K3UhZcJTQvvBokF y5H/41YymDg5e/N6LgndCtrvc50HB8qe+bmZtPDZiBZZ0I481pOWpMCBxCdAucBP6Esf x9mKxlt4XvP67hRxLjcI34fY4qBdsMekg8NB0= 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=ppFb04HHB2Y14oyhheS/12VE8XnujoetlZ0jYifiev9FVfDzFR5RgI/3i4hlIpXAo+ NDLjMup5p7HHC0sS5IeuCbkW6an/z3xblF1xc/ATwF36E6Xyj+OIVwBOVJLR93ESi720 Ea1i9zYAEJOoDh/7I+A8YY3MSbTNCXsjdv4G4= MIME-Version: 1.0 Received: by 10.204.3.146 with SMTP id 18mr57474bkn.1.1307439311052; Tue, 07 Jun 2011 02:35:11 -0700 (PDT) Received: by 10.204.65.17 with HTTP; Tue, 7 Jun 2011 02:35:11 -0700 (PDT) In-Reply-To: References: <4DEDB8AD.7070104@gmail.com> Date: Tue, 7 Jun 2011 10:35:11 +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 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/6f81165a786e1b1130e3683= fa334f3e9ce5611ab) > 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 th= e >> 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&incl= ude_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 Apac= he >> HttpClient), but still get this error. =A0Same result via a browser. >> It was working fine in 1.0.x >> >> Could someone help? >> >> Thanks, >> Gary >> >