* Remove pro role on user, expose pro dashboard to all users as analytics * Remove pro from Elasticsearch mappings * Update user role docs to use :trusted over :pro * Remove pro from Role model spec * Remove more references to pro, as noted by @rhymes
96 lines
2 KiB
JSON
96 lines
2 KiB
JSON
{
|
|
"dynamic": "strict",
|
|
"properties": {
|
|
"id": {
|
|
"type": "keyword"
|
|
},
|
|
"category": {
|
|
"type": "keyword"
|
|
},
|
|
"created_at": {
|
|
"type": "date"
|
|
},
|
|
"last_indexed_at": {
|
|
"type": "date"
|
|
},
|
|
"reactable": {
|
|
"dynamic": "strict",
|
|
"properties": {
|
|
"id": {
|
|
"type": "keyword"
|
|
},
|
|
"body_text": {
|
|
"type": "text",
|
|
"copy_to": "search_fields"
|
|
},
|
|
"class_name": {
|
|
"type": "keyword"
|
|
},
|
|
"path": {
|
|
"type": "keyword"
|
|
},
|
|
"published_date_string": {
|
|
"type": "keyword"
|
|
},
|
|
"reading_time": {
|
|
"type": "integer"
|
|
},
|
|
"tags": {
|
|
"dynamic": "strict",
|
|
"properties": {
|
|
"name": {
|
|
"type": "keyword",
|
|
"copy_to": "search_fields"
|
|
},
|
|
"keywords_for_search": {
|
|
"type": "keyword",
|
|
"copy_to": "search_fields"
|
|
}
|
|
}
|
|
},
|
|
"title": {
|
|
"type": "text",
|
|
"copy_to": "search_fields",
|
|
"fields": {
|
|
"raw": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
},
|
|
"user": {
|
|
"dynamic": "strict",
|
|
"properties": {
|
|
"username": {
|
|
"type": "keyword",
|
|
"copy_to": "search_fields"
|
|
},
|
|
"name": {
|
|
"type": "text",
|
|
"copy_to": "search_fields",
|
|
"fields": {
|
|
"raw": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "keyword"
|
|
},
|
|
"profile_image_90": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"search_fields": {
|
|
"type": "text"
|
|
},
|
|
"status": {
|
|
"type": "keyword"
|
|
},
|
|
"user_id": {
|
|
"type": "keyword"
|
|
}
|
|
}
|
|
}
|