We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbbbf71 + f23801c commit cdeb83aCopy full SHA for cdeb83a
scripts/search/run_indexer.sh
@@ -38,14 +38,12 @@ else
38
fi
39
40
BASE_DIRECTORY_ARG="$BASE_DIRECTORY"
41
-SUB_DIRECTORIES="docs,knowledgebase"
42
DRY_RUN=false
43
44
# allows us to override params if needed
45
while [[ "$#" -gt 0 ]]; do
46
case $1 in
47
-d|--base_directory) BASE_DIRECTORY_ARG="$2"; shift ;;
48
- -s|--sub_directories) SUB_DIRECTORIES="$2"; shift ;;
49
-x|--dry_run) DRY_RUN=true ;;
50
*) echo "Unknown parameter passed: $1"; exit 1 ;;
51
esac
@@ -56,7 +54,6 @@ done
56
54
echo "Running the Python script..."
57
55
python "$PYTHON_SCRIPT" \
58
--base_directory "$BASE_DIRECTORY_ARG" \
59
- --sub_directories "$SUB_DIRECTORIES" \
60
$( [ "$DRY_RUN" = true ] && echo "--dry_run" ) \
61
--algolia_app_id "$ALGOLIA_APP_ID" \
62
--algolia_api_key "$ALGOLIA_API_KEY"
0 commit comments