From c177c08c49818b0653f3c57f2ddad9af8f9ab0d0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 14 May 2020 23:11:51 -0700 Subject: ES index and makefile target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 08fd07d..7e6d820 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,11 @@ dev: ## Run web service locally, with reloading .PHONY: run run: ## Run web service under gunicorn pipenv run gunicorn fatcat_scholar.web:app -w 4 -k uvicorn.workers.UvicornWorker + +.PHONY: reset-index-dev +reset-index-dev: ## Delete/Create DEV elasticsearch fulltext index locally + http delete :9200/dev_scholar_fulltext_v01 && true + http put ":9200/qa_scholar_fulltext_v01?include_type_name=false" < schema/scholar_fulltext.v01.json + http delete :9200/dev_scholar_fulltext && true + http put :9200/dev_scholar_fulltext_v01/_alias/dev_scholar_fulltext + -- cgit v1.2.3