docbrown/config/elasticsearch/mappings/feed_content.json
Vaidehi Joshi 95055b2a89
Remove pro role + expose analytics to all users via dashboard (#13156)
* 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
2021-03-30 15:02:18 -07:00

186 lines
3.5 KiB
JSON

{
"dynamic": "strict",
"properties": {
"id": {
"type": "keyword"
},
"approved": {
"type": "boolean"
},
"body_text": {
"type": "text",
"copy_to": "search_fields"
},
"class_name": {
"type": "keyword"
},
"cloudinary_video_url": {
"type": "keyword"
},
"comments_count": {
"type": "integer"
},
"experience_level_rating": {
"type": "integer"
},
"experience_level_rating_distribution": {
"type": "integer"
},
"featured": {
"type": "boolean"
},
"featured_number": {
"type": "integer"
},
"flare_tag_hash": {
"dynamic": "strict",
"properties": {
"name": {
"type": "keyword"
},
"bg_color_hex": {
"type": "keyword"
},
"text_color_hex": {
"type": "keyword"
}
}
},
"hotness_score": {
"type": "integer"
},
"last_indexed_at": {
"type": "date"
},
"main_image": {
"type": "keyword"
},
"organization": {
"dynamic": "strict",
"properties": {
"slug": {
"type": "keyword"
},
"name": {
"type": "text",
"copy_to": "search_fields",
"fields": {
"raw": {
"type": "keyword"
}
}
},
"id": {
"type": "keyword"
},
"profile_image_90": {
"type": "keyword"
}
}
},
"path": {
"type": "keyword"
},
// deprecated in favor of public_reactions_count, to be removed
"positive_reactions_count": {
"type": "integer"
},
"public_reactions_count": {
"type": "integer"
},
"published": {
"type": "boolean"
},
"published_at": {
"type": "date"
},
"quote": {
"type": "text"
},
"reactions_count": {
"type": "integer"
},
"readable_publish_date": {
"type": "date"
},
"readable_publish_date_string": {
"type": "keyword"
},
"reading_time": {
"type": "integer"
},
"score": {
"type": "integer"
},
"search_fields": {
"type": "text"
},
"search_score": {
"type": "integer"
},
"slug": {
"type": "keyword"
},
"subtitle": {
"type": "text"
},
"summary": {
"type": "text"
},
"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"
}
}
},
"video_duration_in_minutes": {
"type": "integer"
},
"video_duration_string": {
"type": "keyword"
},
"website_url": {
"type": "keyword"
}
}
}