Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Minds
Minds
Commits
c9673019
Commit
c9673019
authored
Jul 08, 2019
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): added minds-boost-campaigns schema
parent
8e59241f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
containers/elasticsearch-provisioner/provision-elasticsearch.sh
...ners/elasticsearch-provisioner/provision-elasticsearch.sh
+1
-0
containers/elasticsearch-provisioner/schema/minds-boost-campaigns.json
...asticsearch-provisioner/schema/minds-boost-campaigns.json
+71
-0
No files found.
containers/elasticsearch-provisioner/provision-elasticsearch.sh
View file @
c9673019
...
...
@@ -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"
...
...
containers/elasticsearch-provisioner/schema/minds-boost-campaigns.json
0 → 100644
View file @
c9673019
{
"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
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment