Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "settings": {
- "index.codec": "best_compression",
- "index.shard.check_on_startup": "checksum",
- "index": {
- "number_of_shards": 4,
- "number_of_replicas": 0,
- "sort.field" : "created_utc",
- "sort.order" : "desc"
- },
- "analysis": {
- "analyzer": {
- "lowercase": {
- "type": "custom",
- "filter": ["lowercase"],
- "tokenizer": "whitespace"
- }
- },
- "normalizer": {
- "my_normalizer": {
- "type": "custom",
- "char_filter": [],
- "filter": ["lowercase", "asciifolding"]
- }
- }
- }
- },
- "mappings": {
- "comment": {
- "_routing": {
- "required": false
- },
- "_all": {
- "enabled": false
- },
- "_source": {
- "enabled": true,
- "excludes": ["id","utc_hour_of_week","length","user_removed","mod_removed","utc_hour_of_day"]
- },
- "dynamic": "false",
- "properties": {
- "body": {
- "type": "text"
- },
- "edited": {
- "type": "boolean"
- },
- "nest_level": {
- "type": "integer"
- },
- "mod_removed": {
- "type": "boolean"
- },
- "user_removed": {
- "type": "boolean"
- },
- "reply_delay": {
- "type": "integer"
- },
- "sub_reply_delay": {
- "type": "integer"
- },
- "utc_hour_of_week": {
- "type": "short"
- },
- "utc_hour_of_day": {
- "type": "short"
- },
- "length": {
- "type": "short"
- },
- "created_utc": {
- "type": "date",
- "format": "epoch_second"
- },
- "distinguished": {
- "type": "keyword",
- "normalizer": "my_normalizer"
- },
- "link_id": {
- "type": "integer"
- },
- "gilded": {
- "type": "byte",
- "coerce": false,
- "null_value": 0
- },
- "id": {
- "type": "long"
- },
- "parent_id": {
- "type": "long",
- "null_value": 0
- },
- "score": {
- "type": "integer",
- "coerce": false,
- "null_value": 0
- },
- "subreddit": {
- "type": "keyword",
- "normalizer": "my_normalizer"
- },
- "author_flair_text": {
- "type": "keyword",
- "normalizer": "my_normalizer"
- },
- "author_flair_css_class": {
- "type": "keyword",
- "normalizer": "my_normalizer"
- },
- "author": {
- "type": "keyword",
- "normalizer": "my_normalizer",
- "fields" : {
- "comp" : {
- "type": "completion"
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement