index function
when try index sub-property of doc
in indexing function, ret.add(doc.complaint.status, {field: 'status', type: 'string'})
couchdb-lucene returns 500.
function (doc) { var ret = new document(); ret.add(doc.customername, { type: 'string', field: 'customername' }); ret.add(doc.complaint.status, { type: 'string', field: 'status' }); ret.add(doc.complaint.numberofcoupons, { type: 'int', field: 'numberofcoupons' }); return ret; }
object exists in couchdb
{ "customername": "roman maltsev", "complaint": { "status": "in progress", "numberofcoupons": 10 } }
query using proxy get http://localhost:5984/_fti/local/complaints-management-rom/_design/find/all?q=status:"in progress"
returns 500
actually problem lucene index each document, including _design/view itself, need check property exists or not
Comments
Post a Comment