IndexfunktionWie kann ich Objekt mit couchdb-lucene
Wenn ich zu indizieren Unter Eigenschaft doc
in Indizierungsfunktion, wie ret.add(doc.complaint.status, {field: 'status', type: 'string'})
couchdb-lucene kehrt 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;
}
Objekt, das in couchdb
existiert{ "customerName": "Roman Maltsev", "complaint": { "status": "In progress", "numberOfCoupons": 10 } }
Abfrage unter Verwendung von Proxy- GET http://localhost:5984/_fti/local/complaints-management-rom/_design/find/all?q=status:"In progress"
Erträge 500