mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Update Notebook examples for 8.0
This commit is contained in:
parent
cd0897f5d7
commit
ffe7c792dc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -28,7 +28,8 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"es = Elasticsearch()\n",
|
||||
"# NBVAL_IGNORE_OUTPUT\n",
|
||||
"es = Elasticsearch('http://localhost:9200')\n",
|
||||
"ed_df = ed.DataFrame('http://localhost:9200', 'flights', columns = [\"AvgTicketPrice\", \"Cancelled\", \"dayOfWeek\", \"timestamp\", \"DestCountry\"])\n",
|
||||
"es.indices.exists(index=\"churn\")"
|
||||
]
|
||||
@ -275,7 +276,8 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"es.indices.delete(index='churn', ignore=[400, 404])"
|
||||
"# NBVAL_IGNORE_OUTPUT\n",
|
||||
"es.options(ignore_status=[400, 404]).indices.delete(index='churn')"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user