Spaces:
Running
Running
fixed sh variable
Browse files- rebuild_distill_index.sh +2 -2
rebuild_distill_index.sh
CHANGED
|
@@ -4,7 +4,7 @@ set -euo pipefail
|
|
| 4 |
# Defaults – can be overridden via env when calling the script
|
| 5 |
ES_NODE="${ELASTICSEARCH_NODE:-http://localhost:9200}"
|
| 6 |
INDEX="${ES_DISTILL_INDEX:-quo_distill_index}"
|
| 7 |
-
DATA_DIR="${
|
| 8 |
|
| 9 |
echo "[rebuild] Elasticsearch node : $ES_NODE"
|
| 10 |
echo "[rebuild] Index : $INDEX"
|
|
@@ -27,7 +27,7 @@ echo
|
|
| 27 |
echo "[rebuild] Rebuilding index from $DATA_DIR…"
|
| 28 |
ELASTICSEARCH_NODE="$ES_NODE" \
|
| 29 |
ES_DISTILL_INDEX="$INDEX" \
|
| 30 |
-
|
| 31 |
node indexing/index_distill_chunks.js
|
| 32 |
|
| 33 |
echo
|
|
|
|
| 4 |
# Defaults – can be overridden via env when calling the script
|
| 5 |
ES_NODE="${ELASTICSEARCH_NODE:-http://localhost:9200}"
|
| 6 |
INDEX="${ES_DISTILL_INDEX:-quo_distill_index}"
|
| 7 |
+
DATA_DIR="${JSON_DIR:-$HOME/liberit/hmas/data/llresearch/datasets}"
|
| 8 |
|
| 9 |
echo "[rebuild] Elasticsearch node : $ES_NODE"
|
| 10 |
echo "[rebuild] Index : $INDEX"
|
|
|
|
| 27 |
echo "[rebuild] Rebuilding index from $DATA_DIR…"
|
| 28 |
ELASTICSEARCH_NODE="$ES_NODE" \
|
| 29 |
ES_DISTILL_INDEX="$INDEX" \
|
| 30 |
+
JSON_DIR="$DATA_DIR" \
|
| 31 |
node indexing/index_distill_chunks.js
|
| 32 |
|
| 33 |
echo
|