Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yasuflatland-lf/81b8c887563adb2289c710bd7f0aad45 to your computer and use it in GitHub Desktop.
Save yasuflatland-lf/81b8c887563adb2289c710bd7f0aad45 to your computer and use it in GitHub Desktop.
{
"analysis": {
"char_filter": {
"normalize": {
"type": "icu_normalizer",
"name": "nfkc",
"mode": "compose"
}
},
"tokenizer": {
"kuromoji_tokenizer_ja": {
"mode": "search",
"type": "kuromoji_tokenizer",
"discard_compound_token": true
},
"ngram_tokenizer_ja": {
"type": "ngram",
"min_gram": 3,
"max_gram": 3,
"token_chars": ["letter", "digit"]
}
},
"analyzer": {
"1_10_ngram": {
"filter": [
"lowercase",
"1_10_ngram"
],
"tokenizer": "keyword",
"type": "custom"
},
"keyword_lowercase": {
"filter": "lowercase",
"tokenizer": "keyword"
},
"liferay_analyzer_en": {
"filter": [
"english_possessive_stemmer",
"lowercase",
"liferay_filter_synonym_en",
"english_stop",
"english_stemmer"
],
"tokenizer": "standard"
},
"liferay_analyzer_es": {
"filter": [
"lowercase",
"spanish_stop",
"liferay_filter_synonym_es",
"spanish_stemmer"
],
"tokenizer": "standard"
},
"reverse_keyword_lowercase": {
"filter": [
"lowercase",
"reverse"
],
"tokenizer": "keyword",
"type": "custom"
},
"text_whitespace_lowercase": {
"filter": "lowercase",
"tokenizer": "whitespace"
},
"liferay_analyzer_ja": {
"char_filter": ["normalize"],
"tokenizer": "kuromoji_tokenizer_ja",
"filter": [
"kuromoji_baseform",
"kuromoji_part_of_speech",
"liferay_filter_synonym_ja",
"cjk_width",
"ja_stop",
"kuromoji_stemmer",
"lowercase"
]
},
"liferay_analyzer_ngram_ja": {
"type": "custom",
"char_filter": ["normalize"],
"tokenizer": "ngram_tokenizer_ja",
"filter": ["lowercase"]
}
},
"filter": {
"1_10_ngram": {
"max_gram": 10,
"min_gram": 1,
"type": "ngram"
},
"english_possessive_stemmer": {
"language": "possessive_english",
"type": "stemmer"
},
"english_stemmer": {
"language": "english",
"type": "stemmer"
},
"english_stop": {
"stopwords": "_english_",
"type": "stop"
},
"liferay_filter_synonym_en": {
"lenient": true,
"synonyms": [
],
"type": "synonym_graph"
},
"liferay_filter_synonym_es": {
"lenient": true,
"synonyms": [
],
"type": "synonym_graph"
},
"spanish_stemmer": {
"language": "light_spanish",
"type": "stemmer"
},
"spanish_stop": {
"stopwords": "_spanish_",
"type": "stop"
},
"liferay_filter_synonym_ja": {
"lenient": true,
"synonyms": [],
"type": "synonym_graph"
}
}
},
"index": {
"max_ngram_diff": 9
}
}
Japanese Search Synonym Default Settings for Liferay 7.4
{
"LiferayDocumentType": {
"date_detection": false,
"dynamic_templates": [
{
"template_ddmFieldArray_ddmFieldValue_Number_sortable": {
"mapping": {
"scaling_factor": 1000,
"store": true,
"type": "scaled_float"
},
"path_match": "ddmFieldArray.ddmFieldValue*Number_sortable"
}
},
{
"template_long_sortable": {
"mapping": {
"store": true,
"type": "long"
},
"match": "*_sortable",
"match_mapping_type": "long"
}
},
{
"template_string_sortable_ar": {
"mapping": {
"language": "ar",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ar_[A-Z]{2}_sortable\\b|\\w+_ar_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_bg": {
"mapping": {
"language": "bg",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_bg_[A-Z]{2}_sortable\\b|\\w+_bg_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ca": {
"mapping": {
"language": "ca",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ca_[A-Z]{2}_sortable\\b|\\w+_ca_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_cs": {
"mapping": {
"language": "cs",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_cs_[A-Z]{2}_sortable\\b|\\w+_cs_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_da": {
"mapping": {
"language": "da",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_da_[A-Z]{2}_sortable\\b|\\w+_da_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_de_AT": {
"mapping": {
"country": "AT",
"language": "de",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_de_AT_sortable\\b|\\w+_de_AT_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_de": {
"mapping": {
"language": "de",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_de_[A-Z]{2}_sortable\\b|\\w+_de_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_el": {
"mapping": {
"language": "el",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_el_[A-Z]{2}_sortable\\b|\\w+_el_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_en": {
"mapping": {
"language": "en",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_en_[A-Z]{2}_sortable\\b|\\w+_en_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_es": {
"mapping": {
"language": "es",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_es_[A-Z]{2}_sortable\\b|\\w+_es_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_et": {
"mapping": {
"language": "et",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_et_[A-Z]{2}_sortable\\b|\\w+_et_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_eu": {
"mapping": {
"language": "eu",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_eu_[A-Z]{2}_sortable\\b|\\w+_eu_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_fa": {
"mapping": {
"language": "fa",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_fa_[A-Z]{2}_sortable\\b|\\w+_fa_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_fi": {
"mapping": {
"language": "fi",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_fi_[A-Z]{2}_sortable\\b|\\w+_fi_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_fr_CA": {
"mapping": {
"country": "CA",
"language": "fr",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_fr_CA_sortable\\b|\\w+_fr_CA_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_fr": {
"mapping": {
"language": "fr",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_fr_[A-Z]{2}_sortable\\b|\\w+_fr_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_gl": {
"mapping": {
"language": "gl",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_gl_[A-Z]{2}_sortable\\b|\\w+_gl_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_hi": {
"mapping": {
"language": "hi",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_hi_[A-Z]{2}_sortable\\b|\\w+_hi_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_hr": {
"mapping": {
"language": "hr",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_hr_[A-Z]{2}_sortable\\b|\\w+_hr_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_hu": {
"mapping": {
"language": "hu",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_hu_[A-Z]{2}_sortable\\b|\\w+_hu_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_hy": {
"mapping": {
"language": "hy",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_hy_[A-Z]{2}_sortable\\b|\\w+_hy_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_in": {
"mapping": {
"language": "in",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_in_[A-Z]{2}_sortable\\b|\\w+_in_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_it": {
"mapping": {
"language": "it",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_it_[A-Z]{2}_sortable\\b|\\w+_it_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ja": {
"mapping": {
"language": "ja",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ja_[A-Z]{2}_sortable\\b|\\w+_ja_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_kk": {
"mapping": {
"language": "kk",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_kk_[A-Z]{2}_sortable\\b|\\w+_kk_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ko": {
"mapping": {
"language": "ko",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ko_[A-Z]{2}_sortable\\b|\\w+_ko_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_lo": {
"mapping": {
"language": "lo",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_lo_[A-Z]{2}_sortable\\b|\\w+_lo_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_lt": {
"mapping": {
"language": "lt",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_lt_[A-Z]{2}_sortable\\b|\\w+_lt_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ms": {
"mapping": {
"language": "ms",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ms_[A-Z]{2}_sortable\\b|\\w+_ms_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_nb": {
"mapping": {
"language": "nb",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_nb_[A-Z]{2}_sortable\\b|\\w+_nb_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_nl": {
"mapping": {
"language": "nl",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_nl_[A-Z]{2}_sortable\\b|\\w+_nl_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_no": {
"mapping": {
"language": "no",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_no_[A-Z]{2}_sortable\\b|\\w+_no_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_pl": {
"mapping": {
"language": "pl",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_pl_[A-Z]{2}_sortable\\b|\\w+_pl_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_pt": {
"mapping": {
"language": "pt",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_pt_[A-Z]{2}_sortable\\b|\\w+_pt_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ro": {
"mapping": {
"language": "ro",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ro_[A-Z]{2}_sortable\\b|\\w+_ro_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ru": {
"mapping": {
"language": "ru",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ru_[A-Z]{2}_sortable\\b|\\w+_ru_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_sk": {
"mapping": {
"language": "sk",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_sk_[A-Z]{2}_sortable\\b|\\w+_sk_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_sl": {
"mapping": {
"language": "sl",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_sl_[A-Z]{2}_sortable\\b|\\w+_sl_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_sr": {
"mapping": {
"language": "sr",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_sr_[A-Z]{2}_sortable\\b|\\w+_sr_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_sv": {
"mapping": {
"language": "sv",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_sv_[A-Z]{2}_sortable\\b|\\w+_sv_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_ta": {
"mapping": {
"language": "ta",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_ta_[A-Z]{2}_sortable\\b|\\w+_ta_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_th": {
"mapping": {
"language": "th",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_th_[A-Z]{2}_sortable\\b|\\w+_th_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_tr": {
"mapping": {
"language": "tr",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_tr_[A-Z]{2}_sortable\\b|\\w+_tr_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_uk": {
"mapping": {
"language": "uk",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_uk_[A-Z]{2}_sortable\\b|\\w+_uk_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_vi": {
"mapping": {
"language": "vi",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_vi_[A-Z]{2}_sortable\\b|\\w+_vi_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable_zh": {
"mapping": {
"language": "zh",
"store": true,
"type": "icu_collation_keyword"
},
"match": "\\w+_zh_[A-Z]{2}_sortable\\b|\\w+_zh_[A-Z]{2}_\\w+_sortable\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_string_sortable": {
"mapping": {
"store": true,
"type": "keyword"
},
"match": "*_sortable",
"match_mapping_type": "string"
}
},
{
"template_geolocation": {
"mapping": {
"fields": {
"geopoint": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "geo_point"
},
"match": "*_geolocation"
}
},
{
"template_ddmFieldArray_ddmFieldValueKeyword": {
"mapping": {
"store": true,
"type": "keyword"
},
"match_mapping_type": "string",
"path_match": "ddmFieldArray.ddmFieldValueKeyword*"
}
},
{
"template_ddm_keyword": {
"mapping": {
"store": true,
"type": "keyword"
},
"match": "ddm__keyword__*",
"match_mapping_type": "string"
}
},
{
"template_expando_keyword": {
"mapping": {
"analyzer": "keyword_lowercase",
"fields": {
"raw": {
"type": "keyword"
}
},
"store": true,
"type": "text"
},
"match": "expando__keyword__*",
"match_mapping_type": "string"
}
},
{
"template_ar": {
"mapping": {
"analyzer": "arabic",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_ar\\b|\\w+_ar_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_bg": {
"mapping": {
"analyzer": "bulgarian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_bg\\b|\\w+_bg_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_ca": {
"mapping": {
"analyzer": "catalan",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_ca\\b|\\w+_ca_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_cs": {
"mapping": {
"analyzer": "czech",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_cs\\b|\\w+_cs_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_da": {
"mapping": {
"analyzer": "danish",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_da\\b|\\w+_da_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_de": {
"mapping": {
"analyzer": "german",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_de\\b|\\w+_de_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_el": {
"mapping": {
"analyzer": "greek",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_el\\b|\\w+_el_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_en": {
"mapping": {
"analyzer": "english",
"search_analyzer": "liferay_analyzer_en",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_en\\b|\\w+_en_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_es": {
"mapping": {
"analyzer": "spanish",
"search_analyzer": "liferay_analyzer_es",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_es\\b|\\w+_es_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_et": {
"mapping": {
"analyzer": "estonian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_et\\b|\\w+_et_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_eu": {
"mapping": {
"analyzer": "basque",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_eu\\b|\\w+_eu_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_fa": {
"mapping": {
"analyzer": "persian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_fa\\b|\\w+_fa_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_fi": {
"mapping": {
"analyzer": "finnish",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_fi\\b|\\w+_fi_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_fr": {
"mapping": {
"analyzer": "french",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_fr\\b|\\w+_fr_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_gl": {
"mapping": {
"analyzer": "galician",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_gl\\b|\\w+_gl_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_hi": {
"mapping": {
"analyzer": "hindi",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_hi\\b|\\w+_hi_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_hu": {
"mapping": {
"analyzer": "hungarian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_hu\\b|\\w+_hu_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_hy": {
"mapping": {
"analyzer": "armenian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_hy\\b|\\w+_hy_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_in": {
"mapping": {
"analyzer": "indonesian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_in\\b|\\w+_in_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_it": {
"mapping": {
"analyzer": "italian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_it\\b|\\w+_it_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_ja": {
"mapping": {
"analyzer": "liferay_analyzer_ja",
"search_analyzer": "liferay_analyzer_ja",
"fields": {
"ngram": {
"type": "text",
"analyzer": "liferay_analyzer_ngram_ja",
"search_analyzer": "liferay_analyzer_ngram_ja"
}
},
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_ja\\b|\\w+_ja_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_ko": {
"mapping": {
"analyzer": "cjk",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_ko\\b|\\w+_ko_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_lt": {
"mapping": {
"analyzer": "lithuanian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_lt\\b|\\w+_lt_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_nl": {
"mapping": {
"analyzer": "dutch",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_nl\\b|\\w+_nl_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_no": {
"mapping": {
"analyzer": "norwegian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_nb\\b|\\w+_nb_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_pl": {
"mapping": {
"analyzer": "polish",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_pl\\b|\\w+_pl_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_pt": {
"mapping": {
"analyzer": "portuguese",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_pt\\b|\\w+_pt_PT\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_pt_br": {
"mapping": {
"analyzer": "brazilian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "*_pt_BR",
"match_mapping_type": "string"
}
},
{
"template_ro": {
"mapping": {
"analyzer": "romanian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_ro\\b|\\w+_ro_RO\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_ru": {
"mapping": {
"analyzer": "russian",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_ru\\b|\\w+_ru_RU\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_sv": {
"mapping": {
"analyzer": "swedish",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_sv\\b|\\w+_sv_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_th": {
"mapping": {
"analyzer": "thai",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_th\\b|\\w+_th_TH\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_tr": {
"mapping": {
"analyzer": "turkish",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_tr\\b|\\w+_tr_TR\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_zh": {
"mapping": {
"analyzer": "smartcn",
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"match": "\\w+_zh\\b|\\w+_zh_[A-Z]{2}\\b",
"match_mapping_type": "string",
"match_pattern": "regex"
}
},
{
"template_ddmFieldArray_ddmFieldValueText": {
"mapping": {
"store": true,
"type": "text"
},
"match_mapping_type": "string",
"path_match": "ddmFieldArray.ddmFieldValueText*"
}
},
{
"template_ddm": {
"mapping": {
"store": true,
"type": "text"
},
"match": "ddm__*",
"match_mapping_type": "string"
}
},
{
"template_expando": {
"mapping": {
"store": true,
"type": "text"
},
"match": "expando__*",
"match_mapping_type": "string"
}
},
{
"template_double": {
"mapping": {
"fields": {
"keyword": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "double"
},
"match": "*_double"
}
},
{
"template_float": {
"mapping": {
"fields": {
"keyword": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "float"
},
"match": "*_float"
}
},
{
"template_integer": {
"mapping": {
"fields": {
"keyword": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "integer"
},
"match": "*_integer"
}
},
{
"template_long": {
"mapping": {
"fields": {
"keyword": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "long"
},
"match": "*_long"
}
},
{
"template_short": {
"mapping": {
"fields": {
"keyword": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "short"
},
"match": "*_short"
}
}
],
"properties": {
"ancestorOrganizationIds": {
"store": true,
"type": "keyword"
},
"articleId": {
"analyzer": "keyword_lowercase",
"store": true,
"type": "text"
},
"assetCategoryId": {
"store": true,
"type": "keyword"
},
"assetCategoryIds": {
"store": true,
"type": "keyword"
},
"assetInternalCategoryId": {
"store": true,
"type": "keyword"
},
"assetInternalCategoryIds": {
"store": true,
"type": "keyword"
},
"assetTagId": {
"store": true,
"type": "keyword"
},
"assetTagIds": {
"store": true,
"type": "keyword"
},
"assetTagNames": {
"fields": {
"raw": {
"store": true,
"type": "keyword"
}
},
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"assetVocabularyId": {
"store": true,
"type": "keyword"
},
"assetVocabularyIds": {
"store": true,
"type": "keyword"
},
"classTypeId": {
"store": true,
"type": "keyword"
},
"companyId": {
"store": true,
"type": "keyword"
},
"configurationModelAttributeName": {
"store": true,
"type": "keyword"
},
"configurationModelFactoryPid": {
"store": true,
"type": "keyword"
},
"configurationModelId": {
"store": true,
"type": "keyword"
},
"content": {
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"createDate": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"dataRepositoryId": {
"store": true,
"type": "keyword"
},
"ddmContent": {
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"ddmFieldArray": {
"properties": {
"ddmFieldName": {
"type": "keyword"
},
"ddmValueFieldName": {
"type": "keyword"
}
},
"type": "nested"
},
"ddmStructureKey": {
"store": true,
"type": "keyword"
},
"ddmTemplateKey": {
"store": true,
"type": "keyword"
},
"defaultLanguageId": {
"store": true,
"type": "keyword"
},
"description": {
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"discussion": {
"store": true,
"type": "keyword"
},
"displayDate": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"emailAddress": {
"store": true,
"type": "keyword"
},
"emailAddressDomain": {
"store": true,
"type": "keyword"
},
"endTime": {
"store": true,
"type": "long"
},
"entryClassName": {
"store": true,
"type": "keyword"
},
"entryClassPK": {
"store": true,
"type": "keyword"
},
"expirationDate": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"extension": {
"store": true,
"type": "keyword"
},
"fileEntryTypeId": {
"store": true,
"type": "keyword"
},
"fileExtension": {
"store": true,
"type": "text"
},
"folderId": {
"store": true,
"type": "keyword"
},
"geoLocation": {
"fields": {
"geopoint": {
"store": true,
"type": "keyword"
}
},
"store": true,
"type": "geo_point"
},
"groupId": {
"store": true,
"type": "keyword"
},
"groupIds": {
"store": true,
"type": "keyword"
},
"groupRoleId": {
"store": true,
"type": "keyword"
},
"head": {
"store": true,
"type": "keyword"
},
"hidden": {
"store": true,
"type": "keyword"
},
"id": {
"store": true,
"type": "keyword"
},
"languageId": {
"store": true,
"type": "keyword"
},
"lastLoginDate": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"layoutUuid": {
"store": true,
"type": "keyword"
},
"leftOrganizationId": {
"store": true,
"type": "keyword"
},
"mimeType": {
"store": true,
"type": "keyword"
},
"modified": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"nestedFieldArray": {
"properties": {
"fieldName": {
"type": "keyword"
},
"valueFieldName": {
"type": "keyword"
},
"value_binary": {
"type": "binary"
},
"value_boolean": {
"type": "boolean"
},
"value_date": {
"format": "yyyyMMddHHmmss",
"type": "date"
},
"value_double": {
"type": "double"
},
"value_integer": {
"type": "integer"
},
"value_keyword": {
"type": "keyword"
},
"value_keyword_lowercase": {
"normalizer": "lowercase",
"type": "keyword"
},
"value_long": {
"type": "long"
},
"value_text": {
"type": "text"
}
},
"type": "nested"
},
"nodeId": {
"store": true,
"type": "keyword"
},
"organizationId": {
"store": true,
"type": "keyword"
},
"organizationIds": {
"store": true,
"type": "keyword"
},
"parentCategoryId": {
"store": true,
"type": "keyword"
},
"parentCategoryIds": {
"store": true,
"type": "keyword"
},
"parentOrganizationId": {
"store": true,
"type": "keyword"
},
"path": {
"store": true,
"type": "keyword"
},
"priority": {
"store": true,
"type": "double"
},
"properties": {
"store": true,
"type": "keyword"
},
"publishDate": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"readCount": {
"store": true,
"type": "keyword"
},
"recordSetId": {
"store": true,
"type": "keyword"
},
"removedByUser": {
"type": "keyword"
},
"removedDate": {
"format": "yyyyMMddHHmmss",
"store": true,
"type": "date"
},
"rightOrganizationId": {
"store": true,
"type": "keyword"
},
"roleId": {
"store": true,
"type": "keyword"
},
"roleIds": {
"store": true,
"type": "keyword"
},
"roleNames": {
"normalizer": "lowercase",
"store": true,
"type": "keyword"
},
"rootEntryClassName": {
"store": true,
"type": "keyword"
},
"rootEntryClassPK": {
"store": true,
"type": "keyword"
},
"scopeGroupId": {
"store": true,
"type": "keyword"
},
"screenName": {
"store": true,
"type": "keyword"
},
"size": {
"store": true,
"type": "keyword"
},
"status": {
"store": true,
"type": "keyword"
},
"subtitle": {
"store": true,
"type": "text"
},
"teamIds": {
"store": true,
"type": "keyword"
},
"threadId": {
"store": true,
"type": "keyword"
},
"title": {
"store": true,
"term_vector": "with_positions_offsets",
"type": "text"
},
"treePath": {
"store": true,
"type": "keyword"
},
"type": {
"store": true,
"type": "keyword"
},
"uid": {
"store": true,
"type": "keyword"
},
"userGroupId": {
"store": true,
"type": "keyword"
},
"userGroupIds": {
"store": true,
"type": "keyword"
},
"userGroupRoleNames": {
"normalizer": "lowercase",
"store": true,
"type": "keyword"
},
"userId": {
"store": true,
"type": "keyword"
},
"userName": {
"fields": {
"text": {
"type": "text"
}
},
"store": true,
"type": "keyword"
},
"version": {
"store": true,
"type": "keyword"
},
"visible": {
"store": true,
"type": "keyword"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment