3

我正在使用弹性搜索和 mongodb。一周前设置河流。今天在搜索记录时,只需检查弹性搜索索引没有得到更新或修改,因为 mongodb 中的记录每天都在添加。

我正在使用以下几行来创建河流

curl -XPUT "localhost:9200/_river/myindex/_meta" -d '
{
"type": "mongodb",
"mongodb": {
"host": "localhost",
"port": "27017",
"db": "qna",
"collection": "collection"
},
"index": {
"name": "myindex",
"type": "index_type"
}
}'
4

0 回答 0