简体   繁体   English

CouchDB:视图中的筛选器功能

[英]CouchDB: Filter Functions in Views

I'm wondering if it's possible to use Filter Functions when requesting a view something like: http://localhost:5984/db/myView/myMap?filter=myFilter . 我想知道是否可以在请求如下视图时使用过滤器功能http:// localhost:5984 / db / myView / myMap?filter = myFilter

I'm going to use Complex Keys with separate views eventually but I'm wondering if this is possible. 我最终将要在单独的视图中使用复杂键 ,但是我想知道是否可行。 So far I tried but it's not showing me any differences. 到目前为止,我已经尝试过了,但是并没有显示出任何差异。

According to the documentation it's not possible to do so. 根据文档,这是不可能的。 You can pass keys to query your view but you can't filter it. 您可以传递键来查询视图,但不能对其进行过滤。 Filter can be applied to _changes aswell as in replications. 过滤器可以应用于_changes以及复制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM