次のように定義されたビューがあります。
function(doc)
{
if (doc.type="user")
{
emit([doc.uid, doc.groupid], null);
}
}
Javaコードで、私は書いた
List<String> keys = new ArrayList<String>();
keys.add("93");
keys.add("23");
ViewQuery q = createQuery("getProfileInfo").descending(true).keys(keys).includeDocs(true);
ViewResult vr = db.queryView(q);
List<Row> rows = vr.getRows();
for (Row row : rows) {
System.out.println("Key--->"+row.getKey());
System.out.println("Value--->"+key);
}
私のコードは常に 0 行を返します。