_local_seq
如果设计文档具有options.local_seq = true
. 我想与 couchdb-lucene 一起使用,但我无法使其工作?
这是设计文档:
{
"_id": "_design/changes",
"_rev": "5-e894a1ea6a6768acb22e6597425de4b2",
"language": "javascript",
"options": {
"local_seq": true
},
"fulltext": {
"replication": {
"index": "function(doc) {\n if(doc.context){\n\n var ret = new Document(); \n ret.add(doc.context,{field:'context',store:'yes'});\n ret.add(doc._id,{field:'id',store:'yes',analyze:false});\n ret.add(doc._rev,{field:'rev',store:'yes',analyze:false});\n ret.add(doc._local_seq,{field:'seq',store:'yes',analyze:false});\n\n return ret;\n }\n} "
}
}
}