database/ix_config.sh
#!/bin/bash
DB=${1:-${DATABASE_NAME:-uwazi_development}}
HOST=${2:-${DBHOST:-127.0.0.1}}
echo -e "\n\nSetting default IX configuration"
mongosh --quiet -host $HOST $DB --eval 'db.settings.updateOne({},{$set : {"features":{
"metadata-extraction": true,
"metadataExtraction" :{"url":"http://127.0.0.1:5056"},
"segmentation":{"url":"http://127.0.0.1:5051/async_extraction"}}}},{upsert:false,multi:true})'