Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@
" print(f\"Error deleting template '{template_id}': {e}\")\n",
"\n",
"\n",
"def create_search_template(template_id, template_content):\n",
"def create_search_template(\n",
" template_id=TEMPLATE_ID, template_content=search_template_content\n",
"):\n",
" \"\"\"Creates a new search template\"\"\"\n",
" try:\n",
" es.put_script(id=template_id, body=template_content)\n",
Expand Down Expand Up @@ -1007,7 +1009,9 @@
"print(\"Creating hotels index...\")\n",
"create_index()\n",
"print(\"Ingesting hotels data...\")\n",
"ingest_data()"
"ingest_data()\n",
"print(\"Creating Search Template...\")\n",
"create_search_template()"
]
},
{
Expand Down