Fixed couchdb lucene issues