Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 44161 invoked from network); 11 Dec 2009 12:42:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Dec 2009 12:42:40 -0000 Received: (qmail 96587 invoked by uid 500); 11 Dec 2009 12:42:39 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96502 invoked by uid 500); 11 Dec 2009 12:42:39 -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 96492 invoked by uid 99); 11 Dec 2009 12:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 12:42:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robert.newson@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 12:42:28 +0000 Received: by fg-out-1718.google.com with SMTP id e12so443034fga.5 for ; Fri, 11 Dec 2009 04:42:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Rm9N7bWwecbfX+/vS5zgajVitg2G5WVA2sGSlXV8XpY=; b=U8dTNiOm8k7Uo/XN04D71UweP/VOpnDpP02U+DHbHUp7baGhx0MIf8GOJN1BDVYcOf y+uPNvjl8Tmz5RGgE57xWL/anhfHocng+tkBssQQTRGXPL/4PAJuXrVO6p4wfAQX2Scz 0k9a5E5bOvNTPMBa/FyuZfbAesdIoeEZzml+M= 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=mdasVcRohIhTtL3iqTz300h83lbVtOmkQWwNzfzcwJw6DeOc36eYJbBdyYZUFJavrd NpGa2l/xxg0MXVR1p8HVRUmZWm9aaq2I5W5Lbo5Q79NUY7AxGx4BPf4GE072cYnVoMOs RDnPOPG1ncmRybYwrFxzEVKNxfO48qNopMwr4= MIME-Version: 1.0 Received: by 10.102.14.17 with SMTP id 17mr514338mun.40.1260535328048; Fri, 11 Dec 2009 04:42:08 -0800 (PST) In-Reply-To: <48c89c6d0912101943q18e1ce81l62a9a103ec27bcc9@mail.gmail.com> References: <48c89c6d0912101943q18e1ce81l62a9a103ec27bcc9@mail.gmail.com> Date: Fri, 11 Dec 2009 12:42:07 +0000 Message-ID: <46aeb24f0912110442t16c672bem901d9d8c60068ef0@mail.gmail.com> Subject: Re: couchdb-lucene issue 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 still need to see your design document. :) Either respond to the issue you created at github (http://github.com/rnewson/couchdb-lucene/issues#issue/31) or follow up here, not both. B. On Fri, Dec 11, 2009 at 3:43 AM, Mark Gallop wrote: > Hi all, > > Hope it is ok to post couchdb-lucene issues here. I am getting a > little desperate for some advice. > > Anyway, I have been happily using couchdb-lucene for an asset database > at my work until a few days ago when I started getting the following > errors: > > 2009-12-11 11:35:49,820 [couchdb-lucene] ERROR Error updating index. > java.lang.ClassCastException: JSON keys must be strings. > =A0 =A0 =A0 =A0at net.sf.json.JSONObject._fromJSONObject(JSONObject.java:= 1067) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject.fromObject(JSONObject.java:177) > =A0 =A0 =A0 =A0at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:1= 08) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray._processValue(JSONArray.java:2535= ) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray.processValue(JSONArray.java:2593) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray.addValue(JSONArray.java:2580) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray.element(JSONArray.java:1753) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray.fromObject(JSONArray.java:183) > =A0 =A0 =A0 =A0at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:1= 13) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject._processValue(JSONObject.java:27= 59) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject.processValue(JSONObject.java:285= 2) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject.element(JSONObject.java:1891) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java= :1175) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject.fromObject(JSONObject.java:181) > =A0 =A0 =A0 =A0at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java= :370) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:1= 160) > =A0 =A0 =A0 =A0at net.sf.json.JSONArray.fromObject(JSONArray.java:149) > =A0 =A0 =A0 =A0at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java= :373) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java= :1147) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject._fromString(JSONObject.java:1337= ) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject.fromObject(JSONObject.java:187) > =A0 =A0 =A0 =A0at net.sf.json.JSONObject.fromObject(JSONObject.java:156) > =A0 =A0 =A0 =A0at com.github.rnewson.couchdb.lucene.Database.getAllDocsBy= Seq(Database.java:101) > =A0 =A0 =A0 =A0at com.github.rnewson.couchdb.lucene.Index$Indexer.updateD= atabase(Index.java:250) > =A0 =A0 =A0 =A0at com.github.rnewson.couchdb.lucene.Index$Indexer.updateI= ndex(Index.java:194) > =A0 =A0 =A0 =A0at com.github.rnewson.couchdb.lucene.Index$Indexer.run(Ind= ex.java:87) > =A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:619) > > Now I am pretty sure the Rails app at the front can't/doesn't set > non-string keys for any couchdb documents. Does couchdb even permit > non-string keys?? > > I am using couchdb 0.9.1 and couchdb-lucene 0.4. Does anyone have any > suggestions? The lucene index is now unable to update so searches are > getting more useless by the hour :) > > Cheers, > Mark >