0

我正在使用 mongodb 2.4.5 和 elasticsearch 0.90.5。当我在 ObjectiveIndex 上创建索引时,它显示“error”:“IndexMissingException[[ObjectiveIndex] missing]”,“status”:404。

 #!/bin/sh
 curl -XPUT "localhost:9200/_river/ObjectiveIndex/_meta" -d'
 {
   "type": "mongodb",
   "mongodb": {
     "servers": [
       { "host": "localhost", "port": 27017 }
     ],
     "options": { "secondary_read_preference": true },
     "db": "mydatabase",
     "collection": "pages"
   },
   "index": {
     "name": "ObjectiveIndex",
     "type": "Objective"
   }

}'
4

0 回答 0