理想的搜索:
curl -X PUT localhost:9200/star/_doc/888 -H 'Content-Type:
application/json' -d '{ "displayName": "蔡徐坤" }'
curl -X GET localhost:9200/star/_doc/_search?pretty
curl -X PUT localhost:9200/star/_doc/666?refresh -H 'Content-Type:
application/json' -d '{ "displayName": "杨超越" }'
curl -X GET localhost:9200/star/_doc/_search?pretty
PUT /star/_settings
{
"index": {
"refresh_interval": "5s"
}
}
PUT /star/_settings
{
"index": {
"refresh_interval": "-1"
}
}