Files
stacks-puppet-node/api/search/scripts/search_reindex.sh

11 lines
389 B
Bash
Executable File

#!/bin/bash
echo "Starting indexing at $(date)" > /tmp/indexer_out
python -m api.search.fetch_data --fetch_namespace 2>>/tmp/indexer_out
python -m api.search.fetch_data --fetch_profiles 2>>/tmp/indexer_out
echo "Building mongodb index at $(date)" >> /tmp/indexer_out
python -m api.search.basic_index --refresh 2>>/tmp/indexer_out
echo "Finished indexing at $(date)" >> /tmp/indexer_out