MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"content": {
"settings": {
"index": {
"number_of_shards": 1,
"auto_expand_replicas": "0-2",
"refresh_interval": "30s",
"analysis": {
"analyzer": {
"text": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icu_token_repair",
"icu_normalizer"
],
"char_filter": [
"globo_norm",
"acronym_fixer",
"camelCase_splitter",
"dotted_I_fix",
"arabic_extended_norm"
]
},
"plain": {
"type": "custom",
"char_filter": [
"nnbsp_norm",
"word_break_helper"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"plain_search": {
"type": "custom",
"char_filter": [
"nnbsp_norm",
"word_break_helper"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"short_text": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"icu_normalizer",
"aggressive_splitting",
"asciifolding_preserve"
]
},
"short_text_search": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"icu_normalizer",
"aggressive_splitting"
]
},
"source_text_plain": {
"type": "custom",
"char_filter": [
"word_break_helper_source_text"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"source_text_plain_search": {
"type": "custom",
"char_filter": [
"word_break_helper_source_text"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"suggest": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer",
"suggest_shingle"
]
},
"suggest_reverse": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer",
"suggest_shingle",
"reverse"
]
},
"token_reverse": {
"type": "custom",
"tokenizer": "no_splitting",
"filter": [
"reverse"
]
},
"near_match": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword",
"icu_normalizer"
]
},
"near_match_asciifolding": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword",
"icu_normalizer",
"asciifolding"
]
},
"prefix": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "prefix",
"filter": [
"icu_normalizer"
]
},
"prefix_asciifolding": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "prefix",
"filter": [
"icu_normalizer",
"asciifolding"
]
},
"word_prefix": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer",
"prefix_ngram_filter"
]
},
"keyword": {
"type": "custom",
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword"
]
},
"lowercase_keyword": {
"type": "custom",
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword",
"icu_normalizer"
]
},
"trigram": {
"type": "custom",
"tokenizer": "trigram",
"filter": [
"icu_normalizer"
]
},
"trigram_anchored": {
"type": "custom",
"tokenizer": "trigram",
"filter": [
"icu_normalizer"
],
"char_filter": [
"add_regex_start_end_anchors"
]
},
"text_search": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icu_token_repair",
"icu_normalizer"
],
"char_filter": [
"globo_norm",
"acronym_fixer",
"camelCase_splitter",
"dotted_I_fix",
"arabic_extended_norm"
]
},
"weighted_tags": {
"type": "custom",
"tokenizer": "keyword",
"filter": [
"weighted_tags_term_freq"
]
}
},
"filter": {
"suggest_shingle": {
"type": "shingle",
"min_shingle_size": 2,
"max_shingle_size": 3,
"output_unigrams": ""
},
"lowercase": {
"type": "lowercase"
},
"aggressive_splitting": {
"type": "word_delimiter_graph"
},
"prefix_ngram_filter": {
"type": "edge_ngram",
"max_gram": 255
},
"asciifolding": {
"type": "asciifolding"
},
"asciifolding_preserve": {
"type": "asciifolding",
"preserve_original": ""
},
"truncate_keyword": {
"type": "truncate_norm",
"length": 5000
},
"remove_empty": {
"type": "length",
"min": 1
},
"icutokrep_no_camel_split": {
"type": "icu_token_repair"
},
"icu_normalizer": {
"type": "icu_normalizer",
"name": "nfkc_cf"
},
"weighted_tags_term_freq": {
"type": "term_freq",
"split_char": "|",
"max_tf": 1000
}
},
"tokenizer": {
"prefix": {
"type": "edge_ngram",
"max_gram": 255
},
"no_splitting": {
"type": "keyword"
},
"trigram": {
"type": "nGram",
"min_gram": 3,
"max_gram": 3
}
},
"char_filter": {
"near_space_flattener": {
"type": "limited_mapping",
"mappings": [
"'=>\\u0020",
"\\u2019=>\\u0020",
"\\u02BC=>\\u0020",
"_=>\\u0020",
"-=>\\u0020"
]
},
"nnbsp_norm": {
"type": "limited_mapping",
"mappings": [
"\\u202F=>\\u0020"
]
},
"regex_camelCase": {
"type": "pattern_replace",
"pattern": "(\\p{Ll}[\\p{M}\\p{Cf}]*)([\\p{Lu}\\p{Lt}])",
"replacement": "$1 $2"
},
"regex_acronym_fixer": {
"type": "pattern_replace",
"pattern": "(?<=(?:^|\\P{L})\\p{L})[.\uff0e](\\p{L})(?=\\P{L}|$)",
"replacement": "$1"
},
"globo_norm": {
"type": "mapping",
"mappings": [
"`=>'",
"\u00b4=>'",
"\u02b9=>'",
"\u02bb=>'",
"\u02bc=>'",
"\u02bd=>'",
"\u02be=>'",
"\u02bf=>'",
"\u02cb=>'",
"\u055a=>'",
"\\u05F3=>'",
"\u2018=>'",
"\u2019=>'",
"\u201b=>'",
"\u2032=>'",
"\u2035=>'",
"\ua78c=>'",
"\uff07=>'",
"\uff40=>'",
"\\u202F=>\\u0020",
"\u02c8=>",
"\u02cc=>",
"\\u0640=>",
"\u066c=>,",
"\u060c=>,",
"\u055b=>",
"\u055c=>",
"\u055e=>",
"\u00b5=>\u03bc",
"\\u05F0=>\\u05D5\\u05D5",
"\\u05F1=>\\u05D5\\u05D9",
"\\u05F2=>\\u05D9\\u05D9",
"\\uFB1F=>\\u05D9\\u05D9\\u05B7",
"\\u05D9\\u05B7\\u05D9=>\\u05D9\\u05D9\\u05B7",
"\u0d23\u0d4d\\u200D=>\u0d7a",
"\u0d28\u0d4d\\u200D=>\u0d7b",
"\u0d30\u0d4d\\u200D=>\u0d7c",
"\u0d32\u0d4d\\u200D=>\u0d7d",
"\u0d33\u0d4d\\u200D=>\u0d7e",
"\u09a4\u09cd\\u200D=>\u09ce",
"\\u061C=>"
]
},
"arabic_extended_norm": {
"type": "limited_mapping",
"mappings": [
"\\uFB8E=>\\u0643",
"\\uFB8F=>\\u0643",
"\\uFB90=>\\u0643",
"\\uFB91=>\\u0643",
"\\u06A9=>\\u0643",
"\\u06AA=>\\u0643",
"\\uFEDB=>\\u0643",
"\\uFEDC=>\\u0643",
"\\uFED9=>\\u0643",
"\\uFEDA=>\\u0643",
"\\uFBFC=>\\u064A",
"\\uFBFD=>\\u064A",
"\\uFBFE=>\\u064A",
"\\uFBFF=>\\u064A",
"\\u06CC=>\\u064A",
"\\uFBE8=>\\u064A",
"\\uFBE9=>\\u064A",
"\\uFEEF=>\\u064A",
"\\uFEF0=>\\u064A",
"\\u0649=>\\u064A",
"\\u06CD=>\\u064A",
"\\uFBE4=>\\u064A",
"\\uFBE5=>\\u064A",
"\\uFBE6=>\\u064A",
"\\uFBE7=>\\u064A",
"\\u06D0=>\\u064A",
"\\uFBA6=>\\u0647",
"\\uFBA7=>\\u0647",
"\\uFBA8=>\\u0647",
"\\uFBA9=>\\u0647",
"\\u06C1=>\\u0647",
"\\u06C0=>\\u0647",
"\\uFBA4=>\\u0647",
"\\uFBA5=>\\u0647",
"\\u06D5=>\\u0647"
]
},
"word_break_helper": {
"type": "limited_mapping",
"mappings": [
"_=>\\u0020",
":=>\\u0020",
".=>\\u0020",
"(=>\\u0020",
")=>\\u0020",
"\uff0e=>\\u0020",
"\uff3f=>\\u0020",
"\uff1a=>\\u0020",
"\u00b7=>\\u0020"
]
},
"word_break_helper_source_text": {
"type": "limited_mapping",
"mappings": [
"_=>\\u0020",
".=>\\u0020",
"(=>\\u0020",
")=>\\u0020",
":=>\\u0020"
]
},
"dotted_I_fix": {
"type": "limited_mapping",
"mappings": [
"\u0130=>I"
]
},
"icu_normalizer": {
"type": "icu_normalizer",
"name": "nfkc_cf"
}
},
"normalizer": {
"lowercase_keyword": {
"type": "custom",
"filter": [
"truncate_keyword",
"icu_normalizer"
]
},
"keyword": {
"type": "custom",
"filter": [
"truncate_keyword"
]
}
}
},
"query": {
"default_field": "all"
},
"similarity": {
"default": {
"type": "BM25"
},
"arrays": {
"type": "BM25",
"k1": 1.2,
"b": 0.3
},
"weighted_tags_similarity": {
"type": "scripted",
"script": {
"source": "return (doc.freq*query.boost)/1000;"
}
}
}
},
"indexing.slowlog.threshold.index.warn": "10s",
"indexing.slowlog.threshold.index.info": "5s",
"indexing.slowlog.threshold.index.debug": "2s",
"indexing.slowlog.threshold.index.trace": -1,
"search.slowlog.threshold.query.warn": "60s",
"search.slowlog.threshold.query.info": "10s",
"search.slowlog.threshold.query.debug": "5s",
"search.slowlog.threshold.query.trace": -1,
"search.slowlog.threshold.fetch.warn": "10s",
"search.slowlog.threshold.fetch.info": "5s",
"search.slowlog.threshold.fetch.debug": "1s",
"search.slowlog.threshold.fetch.trace": "-1",
"merge.scheduler.max_thread_count": 1
},
"mappings": {
"properties": {
"timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"create_timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"page_id": {
"type": "long"
},
"wiki": {
"type": "keyword",
"normalizer": "keyword"
},
"namespace": {
"type": "long"
},
"namespace_text": {
"type": "keyword",
"doc_values": "",
"normalizer": "keyword"
},
"title": {
"type": "text",
"copy_to": [
"suggest",
"suggest_variant",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match"
],
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25"
},
"prefix": {
"similarity": "BM25",
"type": "text",
"analyzer": "prefix",
"search_analyzer": "near_match",
"index_options": "docs"
},
"prefix_asciifolding": {
"similarity": "BM25",
"type": "text",
"analyzer": "prefix_asciifolding",
"search_analyzer": "near_match_asciifolding",
"index_options": "docs"
},
"near_match": {
"similarity": "BM25",
"type": "text",
"analyzer": "near_match",
"index_options": "docs"
},
"near_match_asciifolding": {
"similarity": "BM25",
"type": "text",
"analyzer": "near_match_asciifolding",
"index_options": "docs"
},
"keyword": {
"similarity": "BM25",
"type": "keyword",
"normalizer": "keyword"
},
"natural_sort": {
"similarity": "BM25",
"type": "icu_collation_keyword",
"ignore_above": 5000,
"numeric": "",
"strength": "tertiary",
"language": "zh"
},
"trigram": {
"similarity": "BM25",
"type": "text",
"analyzer": "trigram_anchored",
"search_analyzer": "trigram",
"index_options": "docs"
}
}
},
"text": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
},
"word_count": {
"type": "token_count",
"analyzer": "plain"
}
},
"index_options": "offsets",
"copy_to": [
"all"
]
},
"text_bytes": {
"type": "long"
},
"source_text": {
"type": "text",
"fields": {
"plain": {
"type": "text",
"analyzer": "source_text_plain",
"search_analyzer": "source_text_plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
},
"trigram": {
"type": "text",
"analyzer": "trigram",
"index_options": "docs"
}
}
},
"redirect": {
"properties": {
"namespace": {
"type": "long"
},
"title": {
"type": "text",
"copy_to": [
"suggest",
"suggest_variant",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match"
],
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "arrays",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "arrays",
"index_options": "offsets"
},
"prefix": {
"similarity": "arrays",
"type": "text",
"analyzer": "prefix",
"search_analyzer": "near_match",
"index_options": "offsets"
},
"prefix_asciifolding": {
"similarity": "arrays",
"type": "text",
"analyzer": "prefix_asciifolding",
"search_analyzer": "near_match_asciifolding",
"index_options": "offsets"
},
"near_match": {
"similarity": "arrays",
"type": "text",
"analyzer": "near_match",
"index_options": "offsets"
},
"near_match_asciifolding": {
"similarity": "arrays",
"type": "text",
"analyzer": "near_match_asciifolding",
"index_options": "offsets"
},
"keyword": {
"similarity": "arrays",
"type": "keyword",
"normalizer": "keyword"
},
"natural_sort": {
"similarity": "arrays",
"type": "icu_collation_keyword",
"ignore_above": 5000,
"numeric": "",
"strength": "tertiary",
"language": "zh"
},
"trigram": {
"similarity": "arrays",
"type": "text",
"analyzer": "trigram_anchored",
"search_analyzer": "trigram",
"index_options": "docs"
}
},
"index_options": "offsets"
}
}
},
"incoming_links": {
"type": "long"
},
"local_sites_with_dupe": {
"type": "keyword",
"normalizer": "lowercase_keyword"
},
"suggest": {
"type": "text",
"similarity": "arrays",
"index_options": "freqs",
"analyzer": "suggest"
},
"suggest_variant": {
"type": "text",
"similarity": "arrays",
"index_options": "freqs",
"analyzer": "suggest"
},
"category": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "arrays",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "arrays",
"index_options": "offsets"
},
"lowercase_keyword": {
"similarity": "arrays",
"type": "keyword",
"normalizer": "lowercase_keyword"
}
},
"index_options": "offsets",
"copy_to": [
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all"
]
},
"external_link": {
"type": "keyword",
"normalizer": "keyword"
},
"outgoing_link": {
"type": "keyword",
"normalizer": "keyword",
"fields": {
"token_count": {
"type": "token_count",
"analyzer": "keyword"
}
}
},
"template": {
"type": "keyword",
"normalizer": "lowercase_keyword",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword"
}
}
},
"content_model": {
"type": "keyword",
"normalizer": "keyword"
},
"language": {
"type": "keyword",
"normalizer": "keyword"
},
"heading": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "arrays",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "arrays",
"index_options": "offsets"
}
},
"index_options": "offsets",
"copy_to": [
"all",
"all",
"all",
"all",
"all"
]
},
"auxiliary_text": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
}
},
"index_options": "offsets",
"copy_to": [
"all"
]
},
"opening_text": {
"type": "text",
"copy_to": [
"suggest_variant",
"all",
"all",
"all"
],
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25"
}
}
},
"file_media_type": {
"type": "keyword",
"normalizer": "lowercase_keyword"
},
"file_mime": {
"type": "text",
"analyzer": "short_text",
"search_analyzer": "short_text_search"
},
"file_size": {
"type": "long"
},
"file_width": {
"type": "long"
},
"file_height": {
"type": "long"
},
"file_bits": {
"type": "long"
},
"file_resolution": {
"type": "long"
},
"file_text": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
}
},
"index_options": "offsets",
"copy_to": [
"all"
]
},
"weighted_tags": {
"type": "text",
"analyzer": "weighted_tags",
"search_analyzer": "keyword",
"index_options": "freqs",
"similarity": "weighted_tags_similarity"
},
"popularity_score": {
"type": "double"
},
"wikibase_item": {
"type": "keyword",
"normalizer": "keyword"
},
"all": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25"
}
}
},
"all_near_match": {
"type": "text",
"analyzer": "near_match",
"index_options": "freqs",
"similarity": "BM25",
"fields": {
"asciifolding": {
"type": "text",
"analyzer": "near_match_asciifolding",
"index_options": "freqs",
"similarity": "BM25"
}
}
}
}
}
},
"general": {
"settings": {
"index": {
"number_of_shards": 1,
"auto_expand_replicas": "0-2",
"refresh_interval": "30s",
"analysis": {
"analyzer": {
"text": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icu_token_repair",
"icu_normalizer"
],
"char_filter": [
"globo_norm",
"acronym_fixer",
"camelCase_splitter",
"dotted_I_fix",
"arabic_extended_norm"
]
},
"plain": {
"type": "custom",
"char_filter": [
"nnbsp_norm",
"word_break_helper"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"plain_search": {
"type": "custom",
"char_filter": [
"nnbsp_norm",
"word_break_helper"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"short_text": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"icu_normalizer",
"aggressive_splitting",
"asciifolding_preserve"
]
},
"short_text_search": {
"type": "custom",
"tokenizer": "whitespace",
"filter": [
"icu_normalizer",
"aggressive_splitting"
]
},
"source_text_plain": {
"type": "custom",
"char_filter": [
"word_break_helper_source_text"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"source_text_plain_search": {
"type": "custom",
"char_filter": [
"word_break_helper_source_text"
],
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer"
]
},
"suggest": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer",
"suggest_shingle"
]
},
"suggest_reverse": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer",
"suggest_shingle",
"reverse"
]
},
"token_reverse": {
"type": "custom",
"tokenizer": "no_splitting",
"filter": [
"reverse"
]
},
"near_match": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword",
"icu_normalizer"
]
},
"near_match_asciifolding": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword",
"icu_normalizer",
"asciifolding"
]
},
"prefix": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "prefix",
"filter": [
"icu_normalizer"
]
},
"prefix_asciifolding": {
"type": "custom",
"char_filter": [
"near_space_flattener"
],
"tokenizer": "prefix",
"filter": [
"icu_normalizer",
"asciifolding"
]
},
"word_prefix": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icutokrep_no_camel_split",
"icu_normalizer",
"prefix_ngram_filter"
]
},
"keyword": {
"type": "custom",
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword"
]
},
"lowercase_keyword": {
"type": "custom",
"tokenizer": "no_splitting",
"filter": [
"truncate_keyword",
"icu_normalizer"
]
},
"trigram": {
"type": "custom",
"tokenizer": "trigram",
"filter": [
"icu_normalizer"
]
},
"trigram_anchored": {
"type": "custom",
"tokenizer": "trigram",
"filter": [
"icu_normalizer"
],
"char_filter": [
"add_regex_start_end_anchors"
]
},
"text_search": {
"type": "custom",
"tokenizer": "textify_icu_tokenizer",
"filter": [
"icu_token_repair",
"icu_normalizer"
],
"char_filter": [
"globo_norm",
"acronym_fixer",
"camelCase_splitter",
"dotted_I_fix",
"arabic_extended_norm"
]
},
"weighted_tags": {
"type": "custom",
"tokenizer": "keyword",
"filter": [
"weighted_tags_term_freq"
]
}
},
"filter": {
"suggest_shingle": {
"type": "shingle",
"min_shingle_size": 2,
"max_shingle_size": 3,
"output_unigrams": ""
},
"lowercase": {
"type": "lowercase"
},
"aggressive_splitting": {
"type": "word_delimiter_graph"
},
"prefix_ngram_filter": {
"type": "edge_ngram",
"max_gram": 255
},
"asciifolding": {
"type": "asciifolding"
},
"asciifolding_preserve": {
"type": "asciifolding",
"preserve_original": ""
},
"truncate_keyword": {
"type": "truncate_norm",
"length": 5000
},
"remove_empty": {
"type": "length",
"min": 1
},
"icutokrep_no_camel_split": {
"type": "icu_token_repair"
},
"icu_normalizer": {
"type": "icu_normalizer",
"name": "nfkc_cf"
},
"weighted_tags_term_freq": {
"type": "term_freq",
"split_char": "|",
"max_tf": 1000
}
},
"tokenizer": {
"prefix": {
"type": "edge_ngram",
"max_gram": 255
},
"no_splitting": {
"type": "keyword"
},
"trigram": {
"type": "nGram",
"min_gram": 3,
"max_gram": 3
}
},
"char_filter": {
"near_space_flattener": {
"type": "limited_mapping",
"mappings": [
"'=>\\u0020",
"\\u2019=>\\u0020",
"\\u02BC=>\\u0020",
"_=>\\u0020",
"-=>\\u0020"
]
},
"nnbsp_norm": {
"type": "limited_mapping",
"mappings": [
"\\u202F=>\\u0020"
]
},
"regex_camelCase": {
"type": "pattern_replace",
"pattern": "(\\p{Ll}[\\p{M}\\p{Cf}]*)([\\p{Lu}\\p{Lt}])",
"replacement": "$1 $2"
},
"regex_acronym_fixer": {
"type": "pattern_replace",
"pattern": "(?<=(?:^|\\P{L})\\p{L})[.\uff0e](\\p{L})(?=\\P{L}|$)",
"replacement": "$1"
},
"globo_norm": {
"type": "mapping",
"mappings": [
"`=>'",
"\u00b4=>'",
"\u02b9=>'",
"\u02bb=>'",
"\u02bc=>'",
"\u02bd=>'",
"\u02be=>'",
"\u02bf=>'",
"\u02cb=>'",
"\u055a=>'",
"\\u05F3=>'",
"\u2018=>'",
"\u2019=>'",
"\u201b=>'",
"\u2032=>'",
"\u2035=>'",
"\ua78c=>'",
"\uff07=>'",
"\uff40=>'",
"\\u202F=>\\u0020",
"\u02c8=>",
"\u02cc=>",
"\\u0640=>",
"\u066c=>,",
"\u060c=>,",
"\u055b=>",
"\u055c=>",
"\u055e=>",
"\u00b5=>\u03bc",
"\\u05F0=>\\u05D5\\u05D5",
"\\u05F1=>\\u05D5\\u05D9",
"\\u05F2=>\\u05D9\\u05D9",
"\\uFB1F=>\\u05D9\\u05D9\\u05B7",
"\\u05D9\\u05B7\\u05D9=>\\u05D9\\u05D9\\u05B7",
"\u0d23\u0d4d\\u200D=>\u0d7a",
"\u0d28\u0d4d\\u200D=>\u0d7b",
"\u0d30\u0d4d\\u200D=>\u0d7c",
"\u0d32\u0d4d\\u200D=>\u0d7d",
"\u0d33\u0d4d\\u200D=>\u0d7e",
"\u09a4\u09cd\\u200D=>\u09ce",
"\\u061C=>"
]
},
"arabic_extended_norm": {
"type": "limited_mapping",
"mappings": [
"\\uFB8E=>\\u0643",
"\\uFB8F=>\\u0643",
"\\uFB90=>\\u0643",
"\\uFB91=>\\u0643",
"\\u06A9=>\\u0643",
"\\u06AA=>\\u0643",
"\\uFEDB=>\\u0643",
"\\uFEDC=>\\u0643",
"\\uFED9=>\\u0643",
"\\uFEDA=>\\u0643",
"\\uFBFC=>\\u064A",
"\\uFBFD=>\\u064A",
"\\uFBFE=>\\u064A",
"\\uFBFF=>\\u064A",
"\\u06CC=>\\u064A",
"\\uFBE8=>\\u064A",
"\\uFBE9=>\\u064A",
"\\uFEEF=>\\u064A",
"\\uFEF0=>\\u064A",
"\\u0649=>\\u064A",
"\\u06CD=>\\u064A",
"\\uFBE4=>\\u064A",
"\\uFBE5=>\\u064A",
"\\uFBE6=>\\u064A",
"\\uFBE7=>\\u064A",
"\\u06D0=>\\u064A",
"\\uFBA6=>\\u0647",
"\\uFBA7=>\\u0647",
"\\uFBA8=>\\u0647",
"\\uFBA9=>\\u0647",
"\\u06C1=>\\u0647",
"\\u06C0=>\\u0647",
"\\uFBA4=>\\u0647",
"\\uFBA5=>\\u0647",
"\\u06D5=>\\u0647"
]
},
"word_break_helper": {
"type": "limited_mapping",
"mappings": [
"_=>\\u0020",
":=>\\u0020",
".=>\\u0020",
"(=>\\u0020",
")=>\\u0020",
"\uff0e=>\\u0020",
"\uff3f=>\\u0020",
"\uff1a=>\\u0020",
"\u00b7=>\\u0020"
]
},
"word_break_helper_source_text": {
"type": "limited_mapping",
"mappings": [
"_=>\\u0020",
".=>\\u0020",
"(=>\\u0020",
")=>\\u0020",
":=>\\u0020"
]
},
"dotted_I_fix": {
"type": "limited_mapping",
"mappings": [
"\u0130=>I"
]
},
"icu_normalizer": {
"type": "icu_normalizer",
"name": "nfkc_cf"
}
},
"normalizer": {
"lowercase_keyword": {
"type": "custom",
"filter": [
"truncate_keyword",
"icu_normalizer"
]
},
"keyword": {
"type": "custom",
"filter": [
"truncate_keyword"
]
}
}
},
"query": {
"default_field": "all"
},
"similarity": {
"default": {
"type": "BM25"
},
"arrays": {
"type": "BM25",
"k1": 1.2,
"b": 0.3
},
"weighted_tags_similarity": {
"type": "scripted",
"script": {
"source": "return (doc.freq*query.boost)/1000;"
}
}
}
},
"indexing.slowlog.threshold.index.warn": "10s",
"indexing.slowlog.threshold.index.info": "5s",
"indexing.slowlog.threshold.index.debug": "2s",
"indexing.slowlog.threshold.index.trace": -1,
"search.slowlog.threshold.query.warn": "60s",
"search.slowlog.threshold.query.info": "10s",
"search.slowlog.threshold.query.debug": "5s",
"search.slowlog.threshold.query.trace": -1,
"search.slowlog.threshold.fetch.warn": "10s",
"search.slowlog.threshold.fetch.info": "5s",
"search.slowlog.threshold.fetch.debug": "1s",
"search.slowlog.threshold.fetch.trace": "-1",
"merge.scheduler.max_thread_count": 1
},
"mappings": {
"properties": {
"timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"create_timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"page_id": {
"type": "long"
},
"wiki": {
"type": "keyword",
"normalizer": "keyword"
},
"namespace": {
"type": "long"
},
"namespace_text": {
"type": "keyword",
"doc_values": "",
"normalizer": "keyword"
},
"title": {
"type": "text",
"copy_to": [
"suggest",
"suggest_variant",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match"
],
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25"
},
"prefix": {
"similarity": "BM25",
"type": "text",
"analyzer": "prefix",
"search_analyzer": "near_match",
"index_options": "docs"
},
"prefix_asciifolding": {
"similarity": "BM25",
"type": "text",
"analyzer": "prefix_asciifolding",
"search_analyzer": "near_match_asciifolding",
"index_options": "docs"
},
"near_match": {
"similarity": "BM25",
"type": "text",
"analyzer": "near_match",
"index_options": "docs"
},
"near_match_asciifolding": {
"similarity": "BM25",
"type": "text",
"analyzer": "near_match_asciifolding",
"index_options": "docs"
},
"keyword": {
"similarity": "BM25",
"type": "keyword",
"normalizer": "keyword"
},
"natural_sort": {
"similarity": "BM25",
"type": "icu_collation_keyword",
"ignore_above": 5000,
"numeric": "",
"strength": "tertiary",
"language": "zh"
},
"trigram": {
"similarity": "BM25",
"type": "text",
"analyzer": "trigram_anchored",
"search_analyzer": "trigram",
"index_options": "docs"
}
}
},
"text": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
},
"word_count": {
"type": "token_count",
"analyzer": "plain"
}
},
"index_options": "offsets",
"copy_to": [
"all"
]
},
"text_bytes": {
"type": "long"
},
"source_text": {
"type": "text",
"fields": {
"plain": {
"type": "text",
"analyzer": "source_text_plain",
"search_analyzer": "source_text_plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
},
"trigram": {
"type": "text",
"analyzer": "trigram",
"index_options": "docs"
}
}
},
"redirect": {
"properties": {
"namespace": {
"type": "long"
},
"title": {
"type": "text",
"copy_to": [
"suggest",
"suggest_variant",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match",
"all_near_match"
],
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "arrays",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "arrays",
"index_options": "offsets"
},
"prefix": {
"similarity": "arrays",
"type": "text",
"analyzer": "prefix",
"search_analyzer": "near_match",
"index_options": "offsets"
},
"prefix_asciifolding": {
"similarity": "arrays",
"type": "text",
"analyzer": "prefix_asciifolding",
"search_analyzer": "near_match_asciifolding",
"index_options": "offsets"
},
"near_match": {
"similarity": "arrays",
"type": "text",
"analyzer": "near_match",
"index_options": "offsets"
},
"near_match_asciifolding": {
"similarity": "arrays",
"type": "text",
"analyzer": "near_match_asciifolding",
"index_options": "offsets"
},
"keyword": {
"similarity": "arrays",
"type": "keyword",
"normalizer": "keyword"
},
"natural_sort": {
"similarity": "arrays",
"type": "icu_collation_keyword",
"ignore_above": 5000,
"numeric": "",
"strength": "tertiary",
"language": "zh"
},
"trigram": {
"similarity": "arrays",
"type": "text",
"analyzer": "trigram_anchored",
"search_analyzer": "trigram",
"index_options": "docs"
}
},
"index_options": "offsets"
}
}
},
"incoming_links": {
"type": "long"
},
"local_sites_with_dupe": {
"type": "keyword",
"normalizer": "lowercase_keyword"
},
"suggest": {
"type": "text",
"similarity": "arrays",
"index_options": "freqs",
"analyzer": "suggest"
},
"suggest_variant": {
"type": "text",
"similarity": "arrays",
"index_options": "freqs",
"analyzer": "suggest"
},
"category": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "arrays",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "arrays",
"index_options": "offsets"
},
"lowercase_keyword": {
"similarity": "arrays",
"type": "keyword",
"normalizer": "lowercase_keyword"
}
},
"index_options": "offsets",
"copy_to": [
"all",
"all",
"all",
"all",
"all",
"all",
"all",
"all"
]
},
"external_link": {
"type": "keyword",
"normalizer": "keyword"
},
"outgoing_link": {
"type": "keyword",
"normalizer": "keyword",
"fields": {
"token_count": {
"type": "token_count",
"analyzer": "keyword"
}
}
},
"template": {
"type": "keyword",
"normalizer": "lowercase_keyword",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword"
}
}
},
"content_model": {
"type": "keyword",
"normalizer": "keyword"
},
"language": {
"type": "keyword",
"normalizer": "keyword"
},
"heading": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "arrays",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "arrays",
"index_options": "offsets"
}
},
"index_options": "offsets",
"copy_to": [
"all",
"all",
"all",
"all",
"all"
]
},
"auxiliary_text": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
}
},
"index_options": "offsets",
"copy_to": [
"all"
]
},
"opening_text": {
"type": "text",
"copy_to": [
"suggest_variant",
"all",
"all",
"all"
],
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25"
}
}
},
"file_media_type": {
"type": "keyword",
"normalizer": "lowercase_keyword"
},
"file_mime": {
"type": "text",
"analyzer": "short_text",
"search_analyzer": "short_text_search"
},
"file_size": {
"type": "long"
},
"file_width": {
"type": "long"
},
"file_height": {
"type": "long"
},
"file_bits": {
"type": "long"
},
"file_resolution": {
"type": "long"
},
"file_text": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25",
"index_options": "offsets"
}
},
"index_options": "offsets",
"copy_to": [
"all"
]
},
"weighted_tags": {
"type": "text",
"analyzer": "weighted_tags",
"search_analyzer": "keyword",
"index_options": "freqs",
"similarity": "weighted_tags_similarity"
},
"popularity_score": {
"type": "double"
},
"wikibase_item": {
"type": "keyword",
"normalizer": "keyword"
},
"all": {
"type": "text",
"analyzer": "text",
"search_analyzer": "text_search",
"position_increment_gap": 10,
"similarity": "BM25",
"fields": {
"plain": {
"type": "text",
"analyzer": "plain",
"search_analyzer": "plain_search",
"position_increment_gap": 10,
"similarity": "BM25"
}
}
},
"all_near_match": {
"type": "text",
"analyzer": "near_match",
"index_options": "freqs",
"similarity": "BM25",
"fields": {
"asciifolding": {
"type": "text",
"analyzer": "near_match_asciifolding",
"index_options": "freqs",
"similarity": "BM25"
}
}
}
}
}
},
"titlesuggest": {
"settings": {
"index": {
"number_of_shards": 1,
"auto_expand_replicas": "0-2",
"refresh_interval": "30s",
"analysis": {
"char_filter": {
"word_break_helper": {
"type": "mapping",
"mappings": [
"_=>\\u0020",
",=>\\u0020",
"\"=>\\u0020",
"-=>\\u0020",
"'=>\\u0020",
"\\u2019=>\\u0020",
"\\u02BC=>\\u0020",
";=>\\u0020",
"\\[=>\\u0020",
"\\]=>\\u0020",
"{=>\\u0020",
"}=>\\u0020",
"\\\\=>\\u0020",
"\\u00a0=>\\u0020",
"\\u1680=>\\u0020",
"\\u180e=>\\u0020",
"\\u2000=>\\u0020",
"\\u2001=>\\u0020",
"\\u2002=>\\u0020",
"\\u2003=>\\u0020",
"\\u2004=>\\u0020",
"\\u2005=>\\u0020",
"\\u2006=>\\u0020",
"\\u2007=>\\u0020",
"\\u2008=>\\u0020",
"\\u2009=>\\u0020",
"\\u200a=>\\u0020",
"\\u200b=>\\u0020",
"\\u200c=>\\u0020",
"\\u200d=>\\u0020",
"\\u202f=>\\u0020",
"\\u205f=>\\u0020",
"\\u3000=>\\u0020",
"\\ufeff=>\\u0020"
]
}
},
"filter": {
"stop_filter": {
"type": "stop",
"stopwords": "_none_",
"remove_trailing": "true"
},
"lowercase": {
"type": "icu_normalizer",
"name": "nfkc_cf"
},
"accentfolding": {
"type": "asciifolding"
},
"token_limit": {
"type": "limit",
"max_token_count": "20"
},
"remove_empty": {
"type": "length",
"min": 1
}
},
"analyzer": {
"stop_analyzer": {
"type": "custom",
"filter": [
"icu_normalizer",
"stop_filter",
"accentfolding",
"remove_empty",
"token_limit"
],
"tokenizer": "icu_tokenizer"
},
"stop_analyzer_search": {
"type": "custom",
"filter": [
"icu_normalizer",
"accentfolding",
"remove_empty",
"token_limit"
],
"tokenizer": "icu_tokenizer"
},
"plain": {
"type": "custom",
"char_filter": [
"word_break_helper"
],
"filter": [
"remove_empty",
"token_limit",
"lowercase"
],
"tokenizer": "whitespace"
},
"plain_search": {
"type": "custom",
"char_filter": [
"word_break_helper"
],
"filter": [
"remove_empty",
"token_limit",
"lowercase"
],
"tokenizer": "whitespace"
}
}
},
"query": {
"default_field": "all"
},
"similarity": {
"default": {
"type": "BM25"
},
"arrays": {
"type": "BM25",
"k1": 1.2,
"b": 0.3
},
"weighted_tags_similarity": {
"type": "scripted",
"script": {
"source": "return (doc.freq*query.boost)/1000;"
}
}
}
},
"indexing.slowlog.threshold.index.warn": "10s",
"indexing.slowlog.threshold.index.info": "5s",
"indexing.slowlog.threshold.index.debug": "2s",
"indexing.slowlog.threshold.index.trace": -1,
"search.slowlog.threshold.query.warn": "60s",
"search.slowlog.threshold.query.info": "10s",
"search.slowlog.threshold.query.debug": "5s",
"search.slowlog.threshold.query.trace": -1,
"search.slowlog.threshold.fetch.warn": "10s",
"search.slowlog.threshold.fetch.info": "5s",
"search.slowlog.threshold.fetch.debug": "1s",
"search.slowlog.threshold.fetch.trace": "-1",
"merge.scheduler.max_thread_count": 1
},
"mappings": {
"properties": {
"batch_id": {
"type": "long"
},
"source_doc_id": {
"type": "keyword"
},
"suggest": {
"type": "completion",
"analyzer": "plain",
"search_analyzer": "plain_search",
"max_input_length": 255
},
"suggest-stop": {
"type": "completion",
"analyzer": "stop_analyzer",
"search_analyzer": "stop_analyzer_search",
"max_input_length": 255
}
}
}
}
}