fonction IndexComment puis-je l'index objet imbriqué à l'aide CouchDB-Lucene
Lorsque je tente d'indexer sous-propriété de doc
en fonction d'indexation, comme ret.add(doc.complaint.status, {field: 'status', type: 'string'})
retours CouchDB Lucene 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;
}
objet qui existe dans CouchDB
{ "customerName": "Roman Maltsev", "complaint": { "status": "In progress", "numberOfCoupons": 10 } }
requête à l'aide proxy GET http://localhost:5984/_fti/local/complaints-management-rom/_design/find/all?q=status:"In progress"
500 retours