添加了字段的自定义索引,但ORDER BY仍然需要ouchdb没有排序错误超级账本的索引

时间:2018-10-04 14:49:11

标签: couchdb hyperledger-composer

我检查了https://github.com/hyperledger/composer/issues/543 https://github.com/hyperledger/composer/issues/1640ORDER BY not working in named query,但他们没有完全解决我的问题。

我在沙发床中添加了一个自定义索引字段以按data.transactionTimestamp进行排序,但我的应用程序仍然收到“排序字段不存在索引”错误。任何人都知道如何解决此问题?我只有GET和POST方法可用于ouchdb。由于没有足够的积分来张贴图片,因此我将以下http://my_public_id:30984/channel1/_index记录粘贴复制。造成您的不便,我们深表歉意!


{“ total_rows”:4,“ indexes”:[{“ ddoc”:null,“ name”:“ _ all_docs”,“ type”:“ special”,“ def”:{“ fields”:[{“ _id“:” asc“}]}},{” ddoc“:” _ design / 26aaccbebd3e25d7dd8c6b8d7bcc25f6891cbfad“,”名称“:” 26aaccbebd3e25d7dd8c6b8d7bcc25f6891cbfad“,”“”:“”:“”:“ data.transactionTimestamp“:” asc“}],” partial_filter_selector“:{}}},{” ddoc“:” _ design / c6dfa94edfc6620749e92789507a2ca946b98424“,” name“:” c6dfa94edfc6620749e92789507a2ca946b98424“,”“ type :{“ fields”:[{“ data.transactionTimestamp”:“ asc”}],“ partial_filter_selector”:{}}},{“ ddoc”:“ _ design / e1d4f1e1212b6e8c3d6adabf71228868868de791714”,“名称”:“ e1d4f1e1212b6e814, “:” json“,” def“:{” fields“:[{” transactionTimestamp“:” asc“}],” partial_filter_selector“:{}}}]}

已更新:query file on hyperledger

0 个答案:

没有答案