Commit c9673019 authored by Marcelo Rivera's avatar Marcelo Rivera

(feat): added minds-boost-campaigns schema

parent 8e59241f
......@@ -6,6 +6,7 @@ echo "Waiting for elastic search to come online..."
echo "Putting mappings"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://minds_elasticsearch_1:9200/minds-views -d @./schema/minds-views.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://minds_elasticsearch_1:9200/minds-boost -d @./schema/minds-boost.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://minds_elasticsearch_1:9200/minds-boost -d @./schema/minds-boost-campaigns.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://minds_elasticsearch_1:9200/minds-offchain -d @./schema/minds-offchain.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://minds_elasticsearch_1:9200/minds-transactions-onchain -d @./schema/minds-transactions-onchain.json --header "Content-Type: application/json"
......
{
"mappings": {
"_doc": {
"properties": {
"type": {
"type": "keyword"
},
"guid": {
"type": "keyword"
},
"owner_guid": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"entity_urns": {
"type": "keyword"
},
"hashtags": {
"type": "keyword"
},
"nsfw": {
"type": "keyword"
},
"start": {
"type": "date"
},
"end": {
"type": "date"
},
"budget": {
"type": "double"
},
"budget_type": {
"type": "keyword"
},
"impressions": {
"type": "long"
},
"impressions_met": {
"type": "long"
},
"rating": {
"type": "byte"
},
"quality": {
"type": "byte"
},
"@timestamp": {
"type": "date"
},
"@reviewed": {
"type": "date"
},
"@rejected": {
"type": "date"
},
"@revoked": {
"type": "date"
},
"@completed": {
"type": "date"
}
}
}
},
"settings": {
"index.number_of_shards": 1
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment