Nlp setup quick fix (#2081)

* quick fix to set default search pipeline

* remove extraneous testing lines
This commit is contained in:
Edward Kung 2025-04-08 07:02:06 -07:00 committed by GitHub
parent 6e23709de1
commit 5f2c8bf380
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,6 +327,16 @@ else
echo "done." echo "done."
fi fi
# Set hybrid search as default search pipeline
echo -ne "Setting hybrid search as default search pipeline... "
curl -s -o /dev/null \
-X PUT "$OS_URL/$NLP_INDEX/_settings" \
-H "Content-Type: application/json" \
-d '{
"index.search.default_pipeline": "nlp-search-pipeline"
}'
echo "done."
# Ask user if they want to begin reindexing # Ask user if they want to begin reindexing
kw_count=$(curl -s -X GET "$OS_URL/$KW_INDEX/_count" | jq -r '.count') kw_count=$(curl -s -X GET "$OS_URL/$KW_INDEX/_count" | jq -r '.count')
nlp_count=$(curl -s -X GET "$OS_URL/$NLP_INDEX/_count" | jq -r '.count') nlp_count=$(curl -s -X GET "$OS_URL/$NLP_INDEX/_count" | jq -r '.count')