【发布时间】:2019-05-06 18:54:55
【问题描述】:
在将 FOSElasticaBundle 与 Symfony 框架一起使用时,如何为文档索引设置 'refresh=true' 参数?我们需要立即在搜索结果中看到更新的文档,如doc here中所述
REST 示例:
curl -XPUT 'http://localhost:9200/{index}/{type}/{id}?refresh=true' -d '{
"property" : "value"
}'
【问题讨论】:
标签: symfony elasticsearch foselasticabundle