Skip to content

Commit 5f2c8bf

Browse files
authored
Nlp setup quick fix (#2081)
* quick fix to set default search pipeline * remove extraneous testing lines
1 parent 6e23709 commit 5f2c8bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/nlp-setup

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,16 @@ else
327327
echo "done."
328328
fi
329329

330+
# Set hybrid search as default search pipeline
331+
echo -ne "Setting hybrid search as default search pipeline... "
332+
curl -s -o /dev/null \
333+
-X PUT "$OS_URL/$NLP_INDEX/_settings" \
334+
-H "Content-Type: application/json" \
335+
-d '{
336+
"index.search.default_pipeline": "nlp-search-pipeline"
337+
}'
338+
echo "done."
339+
330340
# Ask user if they want to begin reindexing
331341
kw_count=$(curl -s -X GET "$OS_URL/$KW_INDEX/_count" | jq -r '.count')
332342
nlp_count=$(curl -s -X GET "$OS_URL/$NLP_INDEX/_count" | jq -r '.count')

0 commit comments

Comments
 (0)