Как установить несколько индексов - PullRequest
0 голосов
/ 01 октября 2019

Я хочу установить несколько индексов. Как и в примере ниже, я установил несколько индексов, разделив атрибут, но это не vaild json. Пожалуйста, дайте мне знать, как правильно установить несколько индексов.

Пример по этой ссылке. https://hyperledger -fabric.readthedocs.io / en / release-1.4 / couchdb_tutorial.html

{
  "index":{
    "fields":["owner"] // Names of the fields to be queried
  },
  "ddoc":"index1Doc", // (optional) Name of the design document inwhich the index will be created.
  "name":"index1",
  "type":"json"
}
{
  "index":{
    "fields":["owner", "color"] // Names of the fields to be queried
  },
  "ddoc":"index2Doc", // (optional) Name of the design document inwhich the index will be created.
  "name":"index2",
  "type":"json"
}
{
 "index":{
   "fields":["owner", "color", "size"] // Names of the fields to bequeried
 },
 "ddoc":"index3Doc", // (optional) Name of the design document inwhich the index will be created.
 "name":"index3",
 "type":"json"
}
...