Cloudant Search:是否可以对文档进行加权?

Cloudant Search: Is it possible to weight documents?

我数据库中的某些文档比其他文档更重要,因此它们在搜索结果中的排名应该更高。

有什么方法可以在索引代码中反映出来吗?

您可以在 index 函数的 options 参数中设置 boost 字段。参见 http://docs.cloudant.com/api.html#index-functions