Skip to content

Commit

Permalink
(feat): add ES mapping for comments #2560
Browse files Browse the repository at this point in the history
  • Loading branch information
zackwy authored and markharding committed Jun 30, 2023
1 parent cdee29d commit 5e22491
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ curl -s --write-out ' Status: %{http_code}\n' -X PUT http://$1:9200/minds-offcha
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://$1:9200/minds-transactions-onchain -d @./schema/minds-transactions-onchain.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://$1:9200/minds-graph-subscriptions -d @./schema/minds-graph-subscriptions.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://$1:9200/minds-graph-pass -d @./schema/minds-graph-pass.json --header "Content-Type: application/json"
curl -s --write-out ' Status: %{http_code}\n' -X PUT http://$1:9200/minds-comments -d @./schema/minds-comments.json --header "Content-Type: application/json"

echo "elastic search is ready!"
51 changes: 51 additions & 0 deletions containers/elasticsearch-provisioner/schema/minds-comments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"mappings": {
"properties": {
"@timestamp": {
"type": "date"
},
"updated_at": {
"type": "date"
},
"guid": {
"type": "long"
},
"entity_guid": {
"type": "long"
},
"owner_guid": {
"type": "long"
},
"parent_guid": {
"type": "long"
},
"parent_depth": {
"type": "integer"
},
"body": {
"type": "text"
},
"mature": {
"type": "boolean"
},
"edited": {
"type": "boolean"
},
"spam": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"access_id": {
"type": "long"
},
"group_conversation": {
"type": "boolean"
}
}
}
}

0 comments on commit 5e22491

Please sign in to comment.