【问题标题】:Bigchain db search assetsBigchaindb 搜索资产
【发布时间】:2018-10-18 08:39:28
【问题描述】:

您好,测试我一直在使用 bigchain 测试服务器。我必须搜索一些资产,所以我做了searchAssets() 我将资产关键字指定为karthik@kliotech.com。但它也返回了其他结果,例如 {

    "data": {
            "id": "138a65b3d20e9ad1f429e451a7235916161464d1b2f5ca6d3b90e02767dfbc46",
            "type": "mrofTestVote1",
            "vote": "like",
            "postedBy": "chen@test.com",
            "postedTime": 1525449076208
        },
        "id": "9eb8117115b363805e51f9e8f6b9c25e5811dbd448a017c27d3ff8dd666c1353"
    }

这也返回了。但显然它没有 karthik@kliotech.com。搜索如何在 bigchain db 中工作?有人可以帮我解决这个问题。谢谢。

【问题讨论】:

    标签: bigchaindb


    【解决方案1】:

    这篇 BigchainDB 博客文章通过几个示例解释了它是如何工作的:

    https://blog.bigchaindb.com/introducing-queryable-assets-in-bigchaindb-v-1-0-adbe1b86e622

    在 MongoDB 文档中有更多关于全文搜索如何工作的信息:

    https://docs.mongodb.com/manual/reference/operator/query/text/

    【讨论】:

    • 谢谢特洛伊。这对我很有帮助。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-07
    • 1970-01-01
    • 1970-01-01
    • 2013-12-12
    • 1970-01-01
    • 2019-10-15
    • 1970-01-01
    相关资源
    最近更新 更多