incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Gallop <mark.gal...@gmail.com>
Subject couchdb-lucene issue
Date Fri, 11 Dec 2009 03:43:15 GMT
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

Mime
View raw message