Wild card search in couchdb

柔情痞子 提交于 2019-12-25 03:26:45

问题


Iam new to couchdb.I want to know whether wild card search is possible in couchdb or not.if it is possible give me sample example for that.


回答1:


Yes, the {} (empty object) is a wild card in couch db. For example:

http://127.0.0.1:5984/database/_design/docName/_view/viewName?key={}

Will return everything. You can also use {} in startkey and endkey and anywhere else you want a wildcard. It will match all keys.



来源:https://stackoverflow.com/questions/24926684/wild-card-search-in-couchdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!