docbrown/config/elasticsearch/mappings/feed_content.json
Andy Zhao e686d63d78
[deploy] Add public reactions count fields to Elasticsearch (#7956)
* Add public_reactions_count field to elasticsearch

* Add new data update scripts and update old ones

* Use BulkIndexWorker to batch indexing

* Use proper search class for handling feed content

* Remove redundant script oops

* Rename data update script and remove old specs

* Combine specs into one file
2020-05-20 13:06:48 -04:00

191 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"
},
"language": {
"type": "keyword"
},
"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"
},
"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"
},
"pro": {
"type": "boolean"
}
}
},
"video_duration_in_minutes": {
"type": "integer"
},
"video_duration_string": {
"type": "keyword"
},
"website_url": {
"type": "keyword"
}
}
}