Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 83097 invoked from network); 22 Dec 2010 03:36:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 03:36:26 -0000 Received: (qmail 12140 invoked by uid 500); 22 Dec 2010 03:36:25 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 12041 invoked by uid 500); 22 Dec 2010 03:36:25 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 12033 invoked by uid 99); 22 Dec 2010 03:36:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 03:36:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 03:36:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBM3a0IV004805 for ; Wed, 22 Dec 2010 03:36:01 GMT Message-ID: <4641515.257811292988960853.JavaMail.jira@thor> Date: Tue, 21 Dec 2010 22:36:00 -0500 (EST) From: "Luke Driscoll (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-995) Changes feed returns duplicate fields with include_docs=true In-Reply-To: <25009423.257791292988720961.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974031#action_12974031 ] Luke Driscoll commented on COUCHDB-995: --------------------------------------- I've just done a further experiment and running a straight get and I get the same problem http://localhost:5984/test/encounter_83-20101218T133000.000-0700 returns: {"_id":"encounter_83-20101218T133000.000-0700","_rev":"2-ada5250d09a364608db6cd639c213eae","location":{"organization":{"name":"Allscripts Heath System","abbrev":"0"},"location":{"name":"Other Loc","abbrev":"Othe "}},"comment":"Infertility","appointmentDateTime":"2010-12-18T13:30:00.000-07:00","patient_id":"patient_83","appointmentType":"Acute","type":"encounter","patient_id":"patient_83","type":"encounter"} > Changes feed returns duplicate fields with include_docs=true > ------------------------------------------------------------ > > Key: COUCHDB-995 > URL: https://issues.apache.org/jira/browse/COUCHDB-995 > Project: CouchDB > Issue Type: Bug > Components: Full-Text Search, HTTP Interface > Affects Versions: 1.0.1 > Environment: MacOSX with CouchDBX 1.0.1.1 as well as homebrew couchdb 1.0.1 > Reporter: Luke Driscoll > > I ran in to a problem, when using couchdb-lucene; but the problem is with couch itself. I've found this happening both on CouchDBX 1.0.1.1 and couchdb 1.0.1 (through homebrew). > The problem is, if I update a document, and put in the same data each time, the data that comes out of the changes feed has duplicate fields. The call: > http://localhost:5984/test/_changes?feed=continuous&heartbeat=15000&include_docs=true&since=0 > is returning data like this: > { > "seq":356, > "id":"encounter_83-20101218T133000.000-0700", > "changes":[{"rev":"2-ada5250d09a364608db6cd639c213eae"}], > "doc":{ > "_id":"encounter_83-20101218T133000.000-0700", > "_rev":"2-ada5250d09a364608db6cd639c213eae", > "location":{ > "organisation":{ > "name":"Some Org", > "abbrev":"0" > }, > "location":{ > "name":"Other Loc", > "abbrev":"Othe" > } > }, > "comment":"Broken", > "appointmentDateTime":"2010-12-18T13:30:00.000-07:00", > -> "patient_id":"patient_83", > "appointmentType":"Acute", > -> "type":"encounter", > -> "patient_id":"patient_83", > -> "type":"encounter" > } > } > You'll notice that the patient_id field and the type field, are being duplicated on the data return. This is causing couchdb-lucene to baulk, but it's also just invalid json. > Thanks -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.