Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 38276 invoked from network); 11 Dec 2009 03:43:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Dec 2009 03:43:48 -0000 Received: (qmail 59649 invoked by uid 500); 11 Dec 2009 03:43:46 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59511 invoked by uid 500); 11 Dec 2009 03:43: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 59501 invoked by uid 99); 11 Dec 2009 03:43:45 -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 03:43:45 +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 mark.gallop@gmail.com designates 209.85.222.182 as permitted sender) Received: from [209.85.222.182] (HELO mail-pz0-f182.google.com) (209.85.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 03:43:37 +0000 Received: by pzk12 with SMTP id 12so374600pzk.13 for ; Thu, 10 Dec 2009 19:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=6yWKlvC9TQqv5bgJ4Fh3P5PKtrVHo0n9CS/9clioVq4=; b=mUhnmVew/VBaA4ySWoAEOvNcV2YXiTV53ngqQvhbmYveQ18WvH3w0lF22kkAXLFDJB f6olKa5yPCDw7OsYlFtebcjxqYriq/A0JHxGoU/4MwjJkmdObHSTIgQacNtD1L4nuYS5 TEfUveI5eV2Ou0wjj4IleQJ0BO+x6997RWlAc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=U69l950pNz4c/O006qd9rnqr4eiHJjRMzht4vsDUEyNgyHDRiMnZYLy74ai7ED98C4 19r6V6Jyg8/bIdppXeC7UmEQk/PORO+TLl1TWGV45teTCzxa1ZaePfqXQjC0ZM/YiDzd zoJwL+fo/Hmp5uo9jcxJyfQgzDgtymxiJSjoE= MIME-Version: 1.0 Received: by 10.143.27.37 with SMTP id e37mr473985wfj.234.1260502995630; Thu, 10 Dec 2009 19:43:15 -0800 (PST) Date: Fri, 11 Dec 2009 11:43:15 +0800 Message-ID: <48c89c6d0912101943q18e1ce81l62a9a103ec27bcc9@mail.gmail.com> Subject: couchdb-lucene issue From: Mark Gallop To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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. at net.sf.json.JSONObject._fromJSONObject(JSONObject.java:1067) at net.sf.json.JSONObject.fromObject(JSONObject.java:177) at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:108) at net.sf.json.JSONArray._processValue(JSONArray.java:2535) at net.sf.json.JSONArray.processValue(JSONArray.java:2593) at net.sf.json.JSONArray.addValue(JSONArray.java:2580) at net.sf.json.JSONArray.element(JSONArray.java:1753) at net.sf.json.JSONArray.fromObject(JSONArray.java:183) at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:113) at net.sf.json.JSONObject._processValue(JSONObject.java:2759) at net.sf.json.JSONObject.processValue(JSONObject.java:2852) at net.sf.json.JSONObject.element(JSONObject.java:1891) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1175) at net.sf.json.JSONObject.fromObject(JSONObject.java:181) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:370) at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:1160) at net.sf.json.JSONArray.fromObject(JSONArray.java:149) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:373) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1147) at net.sf.json.JSONObject._fromString(JSONObject.java:1337) at net.sf.json.JSONObject.fromObject(JSONObject.java:187) at net.sf.json.JSONObject.fromObject(JSONObject.java:156) at com.github.rnewson.couchdb.lucene.Database.getAllDocsBySeq(Database.java:101) at com.github.rnewson.couchdb.lucene.Index$Indexer.updateDatabase(Index.java:250) at com.github.rnewson.couchdb.lucene.Index$Indexer.updateIndex(Index.java:194) at com.github.rnewson.couchdb.lucene.Index$Indexer.run(Index.java:87) at 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