[Sprint/Subscribers] (goal): new search
these two commands need to be ran so container_guid
and owner_guid
fields are queryable by scripts. This is needed because we're querying for activities and we need to differentiate if they've been posted in a group or in a channel by checking if owner_guid == container_guid
:
curl -X PUT "localhost:9200/minds/_mapping/activity?update_all_types" -H 'Content-Type: application/json' -d'
{
"properties": {
"container_guid": {
"type": "text",
"fielddata": true
}
}
}
'
curl -X PUT "localhost:9200/minds/_mapping/activity?update_all_types" -H 'Content-Type: application/json' -d'
{
"properties": {
"owner_guid": {
"type": "text",
"fielddata": true
}
}
}
'
Edited by Marcelo Rivera