You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Mark Gallop <ma...@gmail.com> on 2009/12/11 04:43:15 UTC

couchdb-lucene issue

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

Re: couchdb-lucene issue

Posted by Mark Gallop <ma...@gmail.com>.
I have added the index function to the github issue.

Cheers,
Mark

Re: couchdb-lucene issue

Posted by Robert Newson <ro...@gmail.com>.
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 <ma...@gmail.com> 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.
>        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
>