如果设计文档有options.local_seq = true,CouchDB 1.6增加了将文档的_local_seq (或seq)传递到视图的能力。我想使用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} "
}
}
}发布于 2014-06-13 02:45:10
听起来你需要打开一个特性请求到CouchDB-Lucene:https://github.com/rnewson/couchdb-lucene/issues -它看起来还没有启用这个特性,如果可能的话。
https://stackoverflow.com/questions/24073659
复制相似问题