han1
July 3, 2019, 6:09pm
42
Hi. Here it is. Our code seems not to have enabled refresh. What is wrong with the code above?
{
"building-name-and-number-group-ie-2018-q4" : {
"settings" : {
"index" : {
"refresh_interval" : "-1",
"number_of_shards" : "1",
"provided_name" : "building-name-and-number-group-ie-2018-q4",
"creation_date" : "1562076352384",
"number_of_replicas" : "1",
"uuid" : "Gx-XwgXjQuGcI6tH37QCNw",
"version" : {
"created" : "7020099"
}
}
}
}
}
dadoonet
(David Pilato)
July 3, 2019, 6:10pm
43
I don't know yet but this definitely why it was not working.
May be check the whole code, like the value of indexName
....
han1
July 3, 2019, 6:13pm
44
Many thanks for all your help.
Can we give a command in Kibana to set the refresh for a single index just to see if it works?
dadoonet
(David Pilato)
July 3, 2019, 6:18pm
45
Sure. See https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
PUT /building-name-and-number-group-ie-2018-q4/_settings
{
"index" : {
"refresh_interval" : "1s"
}
}
Or run manually a refresh:
POST /building-name-and-number-group-ie-2018-q4/_refresh
1 Like
han1
July 3, 2019, 6:20pm
46
Wow - IT WORKS.
Thanks again for spending so much time on this.
Greatly appreciate it.
system
(system)
Closed
July 31, 2019, 6:31pm
47
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.