Created
August 22, 2017 18:23
-
-
Save tlovett1/aa4f4ea9fdb84f181a3dc074048f612c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"index.mapping.total_fields.limit": 5000, | |
"index.max_result_window": 1000000, | |
"analysis": { | |
"analyzer": { | |
"default": { | |
"tokenizer": "standard", | |
"filter": [ | |
"standard", | |
"ewp_word_delimiter", | |
"lowercase", | |
"stop", | |
"ewp_snowball", | |
"jdrf_synonym_filter" | |
], | |
"language": "english" | |
}, | |
"shingle_analyzer": { | |
"type": "custom", | |
"tokenizer": "standard", | |
"filter": [ | |
"lowercase", | |
"shingle_filter" | |
] | |
}, | |
"ewp_lowercase": { | |
"type": "custom", | |
"tokenizer": "keyword", | |
"filter": [ | |
"lowercase" | |
] | |
} | |
}, | |
"filter": { | |
"shingle_filter": { | |
"type": "shingle", | |
"min_shingle_size": 2, | |
"max_shingle_size": 5 | |
}, | |
"ewp_word_delimiter": { | |
"type": "word_delimiter", | |
"preserve_original": true | |
}, | |
"ewp_snowball": { | |
"type": "snowball", | |
"language": "english" | |
}, | |
"edge_ngram": { | |
"side": "front", | |
"max_gram": 10, | |
"min_gram": 3, | |
"type": "edgeNGram" | |
}, | |
"jdrf_synonym_filter": { | |
"type": "synonym", | |
"synonyms": [ | |
"t1d,type 1 diabetes,type one diabetes", | |
"t1n,type 1 nation,type one nation" | |
] | |
} | |
}, | |
"normalizer": { | |
"lowerasciinormalizer": { | |
"type": "custom", | |
"filter": [ | |
"lowercase", | |
"asciifolding" | |
] | |
} | |
} | |
} | |
}, | |
"mappings": { | |
"post": { | |
"date_detection": false, | |
"dynamic_templates": [ | |
{ | |
"template_meta": { | |
"path_match": "post_meta.*", | |
"mapping": { | |
"type": "text", | |
"path": "full", | |
"fields": { | |
"{name}": { | |
"type": "text" | |
}, | |
"raw": { | |
"type": "keyword", | |
"ignore_above": 10922 | |
} | |
} | |
} | |
} | |
}, | |
{ | |
"template_meta_types": { | |
"path_match": "meta.*", | |
"mapping": { | |
"type": "object", | |
"path": "full", | |
"properties": { | |
"value": { | |
"type": "text", | |
"fields": { | |
"sortable": { | |
"type": "keyword", | |
"ignore_above": 10922, | |
"normalizer": "lowerasciinormalizer" | |
}, | |
"raw": { | |
"type": "keyword", | |
"ignore_above": 10922 | |
} | |
} | |
}, | |
"raw": { | |
"type": "keyword", | |
"ignore_above": 10922 | |
}, | |
"long": { | |
"type": "long" | |
}, | |
"double": { | |
"type": "double" | |
}, | |
"boolean": { | |
"type": "boolean" | |
}, | |
"date": { | |
"type": "date", | |
"format": "yyyy-MM-dd" | |
}, | |
"datetime": { | |
"type": "date", | |
"format": "yyyy-MM-dd HH:mm:ss" | |
}, | |
"time": { | |
"type": "date", | |
"format": "HH:mm:ss" | |
} | |
} | |
} | |
} | |
}, | |
{ | |
"template_terms": { | |
"path_match": "terms.*", | |
"mapping": { | |
"type": "object", | |
"path": "full", | |
"properties": { | |
"name": { | |
"type": "text", | |
"fields": { | |
"raw": { | |
"type": "keyword" | |
}, | |
"sortable": { | |
"type": "keyword", | |
"normalizer": "lowerasciinormalizer" | |
} | |
} | |
}, | |
"term_id": { | |
"type": "long" | |
}, | |
"term_taxonomy_id": { | |
"type": "long" | |
}, | |
"parent": { | |
"type": "long" | |
}, | |
"slug": { | |
"type": "keyword" | |
} | |
} | |
} | |
} | |
}, | |
{ | |
"term_suggest": { | |
"path_match": "term_suggest_*", | |
"mapping": { | |
"type": "completion", | |
"analyzer": "default" | |
} | |
} | |
} | |
], | |
"_all": { | |
"analyzer": "simple" | |
}, | |
"properties": { | |
"post_id": { | |
"type": "long" | |
}, | |
"ID": { | |
"type": "long" | |
}, | |
"post_author": { | |
"type": "object", | |
"properties": { | |
"display_name": { | |
"type": "text", | |
"fields": { | |
"raw": { | |
"type": "keyword" | |
}, | |
"sortable": { | |
"type": "keyword", | |
"normalizer": "lowerasciinormalizer" | |
} | |
} | |
}, | |
"login": { | |
"type": "text", | |
"fields": { | |
"raw": { | |
"type": "keyword" | |
}, | |
"sortable": { | |
"type": "keyword", | |
"normalizer": "lowerasciinormalizer" | |
} | |
} | |
}, | |
"id": { | |
"type": "long" | |
}, | |
"raw": { | |
"type": "keyword" | |
} | |
} | |
}, | |
"post_date": { | |
"type": "date", | |
"format": "YYYY-MM-dd HH:mm:ss" | |
}, | |
"post_date_gmt": { | |
"type": "date", | |
"format": "YYYY-MM-dd HH:mm:ss" | |
}, | |
"post_title": { | |
"type": "text", | |
"fields": { | |
"post_title": { | |
"type": "text", | |
"analyzer": "standard" | |
}, | |
"raw": { | |
"type": "keyword", | |
"ignore_above": 10922 | |
}, | |
"sortable": { | |
"type": "keyword", | |
"ignore_above": 10922, | |
"normalizer": "lowerasciinormalizer" | |
} | |
} | |
}, | |
"post_excerpt": { | |
"type": "text" | |
}, | |
"post_content": { | |
"type": "text" | |
}, | |
"post_status": { | |
"type": "keyword" | |
}, | |
"post_name": { | |
"type": "text", | |
"fields": { | |
"post_name": { | |
"type": "text" | |
}, | |
"raw": { | |
"type": "keyword", | |
"ignore_above": 10922 | |
} | |
} | |
}, | |
"post_modified": { | |
"type": "date", | |
"format": "YYYY-MM-dd HH:mm:ss" | |
}, | |
"post_modified_gmt": { | |
"type": "date", | |
"format": "YYYY-MM-dd HH:mm:ss" | |
}, | |
"post_parent": { | |
"type": "long" | |
}, | |
"post_type": { | |
"type": "text", | |
"fields": { | |
"post_type": { | |
"type": "text" | |
}, | |
"raw": { | |
"type": "keyword" | |
} | |
} | |
}, | |
"post_mime_type": { | |
"type": "keyword" | |
}, | |
"permalink": { | |
"type": "keyword" | |
}, | |
"guid": { | |
"type": "keyword" | |
}, | |
"terms": { | |
"type": "object" | |
}, | |
"post_meta": { | |
"type": "object" | |
}, | |
"meta": { | |
"type": "object" | |
}, | |
"date_terms": { | |
"type": "object", | |
"properties": { | |
"year": { | |
"type": "integer" | |
}, | |
"month": { | |
"type": "integer" | |
}, | |
"m": { | |
"type": "integer" | |
}, | |
"week": { | |
"type": "integer" | |
}, | |
"day": { | |
"type": "integer" | |
}, | |
"dayofweek": { | |
"type": "integer" | |
}, | |
"dayofweek_iso": { | |
"type": "integer" | |
}, | |
"dayofyear": { | |
"type": "integer" | |
}, | |
"hour": { | |
"type": "integer" | |
}, | |
"minute": { | |
"type": "integer" | |
}, | |
"second": { | |
"type": "integer" | |
} | |
} | |
}, | |
"jdrf_event_geo": { | |
"type": "geo_point" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment