Nlp setup quick fix (#2081)
* quick fix to set default search pipeline * remove extraneous testing lines
This commit is contained in:
parent
6e23709de1
commit
5f2c8bf380
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user