MediaWiki API 结果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "content": {
        "page": {
            "index": {
                "refresh_interval": "1s",
                "translog": {
                    "sync_interval": "5s",
                    "durability": "async"
                },
                "auto_expand_replicas": "0-2",
                "provided_name": "gamecenter_wiki_wiki_content_first",
                "query": {
                    "default_field": "all"
                },
                "max_result_window": "65536",
                "creation_date": "1621496260499",
                "unassigned": {
                    "node_left": {
                        "delayed_timeout": "5m"
                    }
                },
                "analysis": {
                    "filter": {
                        "asciifolding_preserve": {
                            "type": "asciifolding",
                            "preserve_original": "true"
                        },
                        "dedup_asciifolding": {
                            "type": "unique",
                            "only_on_same_position": "true"
                        },
                        "prefix_ngram_filter": {
                            "type": "edgeNGram",
                            "max_gram": "255"
                        },
                        "suggest_shingle": {
                            "max_shingle_size": "3",
                            "min_shingle_size": "2",
                            "output_unigrams": "true",
                            "type": "shingle"
                        },
                        "lowercase": {
                            "type": "lowercase"
                        },
                        "aggressive_splitting": {
                            "type": "word_delimiter",
                            "preserve_original": "false",
                            "stem_english_possessive": "false"
                        },
                        "asciifolding": {
                            "type": "asciifolding",
                            "preserve_original": "false"
                        },
                        "truncate_keyword": {
                            "length": "5000",
                            "type": "truncate"
                        }
                    },
                    "char_filter": {
                        "near_space_flattener": {
                            "type": "mapping",
                            "mappings": [
                                "'=>\\u0020",
                                "\\u2019=>\\u0020",
                                "\\u02BC=>\\u0020",
                                "_=>\\u0020",
                                "-=>\\u0020"
                            ]
                        },
                        "word_break_helper_source_text": {
                            "type": "mapping",
                            "mappings": [
                                "_=>\\u0020",
                                ".=>\\u0020",
                                "(=>\\u0020",
                                ")=>\\u0020",
                                ":=>\\u0020"
                            ]
                        },
                        "word_break_helper": {
                            "type": "mapping",
                            "mappings": [
                                "_=>\\u0020",
                                ".=>\\u0020",
                                "(=>\\u0020",
                                ")=>\\u0020"
                            ]
                        }
                    },
                    "analyzer": {
                        "prefix_asciifolding": {
                            "filter": [
                                "lowercase",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "source_text_plain": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "lowercase_keyword": {
                            "filter": [
                                "truncate_keyword",
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "prefix": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "short_text": {
                            "filter": [
                                "lowercase",
                                "aggressive_splitting",
                                "asciifolding_preserve",
                                "dedup_asciifolding"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "token_reverse": {
                            "filter": [
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "suggest": {
                            "filter": [
                                "lowercase",
                                "suggest_shingle"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "source_text_plain_search": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "suggest_reverse": {
                            "filter": [
                                "lowercase",
                                "suggest_shingle",
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "trigram": {
                            "filter": [
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "trigram"
                        },
                        "short_text_search": {
                            "filter": [
                                "lowercase",
                                "aggressive_splitting"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "plain": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "plain_search": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "text": {
                            "filter": [
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "text_search": {
                            "filter": [
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "keyword": {
                            "filter": [
                                "truncate_keyword"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "word_prefix": {
                            "filter": [
                                "lowercase",
                                "prefix_ngram_filter"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "near_match_asciifolding": {
                            "filter": [
                                "truncate_keyword",
                                "lowercase",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "near_match": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        }
                    },
                    "tokenizer": {
                        "no_splitting": {
                            "type": "keyword"
                        },
                        "trigram": {
                            "type": "nGram",
                            "min_gram": "3",
                            "max_gram": "3"
                        },
                        "prefix": {
                            "type": "edgeNGram",
                            "max_gram": "255"
                        }
                    }
                },
                "number_of_replicas": "2",
                "uuid": "8H8wj-hhRi2F_tpPhHnlRg",
                "version": {
                    "created": "6080299"
                },
                "routing": {
                    "allocation": {
                        "total_shards_per_node": "-1"
                    }
                },
                "number_of_shards": "4"
            }
        }
    },
    "general": {
        "page": {
            "index": {
                "refresh_interval": "1s",
                "translog": {
                    "sync_interval": "5s",
                    "durability": "async"
                },
                "auto_expand_replicas": "0-2",
                "provided_name": "gamecenter_wiki_wiki_general_first",
                "query": {
                    "default_field": "all"
                },
                "max_result_window": "65536",
                "creation_date": "1621496261019",
                "unassigned": {
                    "node_left": {
                        "delayed_timeout": "5m"
                    }
                },
                "analysis": {
                    "filter": {
                        "asciifolding_preserve": {
                            "type": "asciifolding",
                            "preserve_original": "true"
                        },
                        "dedup_asciifolding": {
                            "type": "unique",
                            "only_on_same_position": "true"
                        },
                        "prefix_ngram_filter": {
                            "type": "edgeNGram",
                            "max_gram": "255"
                        },
                        "suggest_shingle": {
                            "max_shingle_size": "3",
                            "min_shingle_size": "2",
                            "output_unigrams": "true",
                            "type": "shingle"
                        },
                        "lowercase": {
                            "type": "lowercase"
                        },
                        "aggressive_splitting": {
                            "type": "word_delimiter",
                            "preserve_original": "false",
                            "stem_english_possessive": "false"
                        },
                        "asciifolding": {
                            "type": "asciifolding",
                            "preserve_original": "false"
                        },
                        "truncate_keyword": {
                            "length": "5000",
                            "type": "truncate"
                        }
                    },
                    "char_filter": {
                        "near_space_flattener": {
                            "type": "mapping",
                            "mappings": [
                                "'=>\\u0020",
                                "\\u2019=>\\u0020",
                                "\\u02BC=>\\u0020",
                                "_=>\\u0020",
                                "-=>\\u0020"
                            ]
                        },
                        "word_break_helper_source_text": {
                            "type": "mapping",
                            "mappings": [
                                "_=>\\u0020",
                                ".=>\\u0020",
                                "(=>\\u0020",
                                ")=>\\u0020",
                                ":=>\\u0020"
                            ]
                        },
                        "word_break_helper": {
                            "type": "mapping",
                            "mappings": [
                                "_=>\\u0020",
                                ".=>\\u0020",
                                "(=>\\u0020",
                                ")=>\\u0020"
                            ]
                        }
                    },
                    "analyzer": {
                        "prefix_asciifolding": {
                            "filter": [
                                "lowercase",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "source_text_plain": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "lowercase_keyword": {
                            "filter": [
                                "truncate_keyword",
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "prefix": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "short_text": {
                            "filter": [
                                "lowercase",
                                "aggressive_splitting",
                                "asciifolding_preserve",
                                "dedup_asciifolding"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "token_reverse": {
                            "filter": [
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "suggest": {
                            "filter": [
                                "lowercase",
                                "suggest_shingle"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "source_text_plain_search": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "suggest_reverse": {
                            "filter": [
                                "lowercase",
                                "suggest_shingle",
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "trigram": {
                            "filter": [
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "trigram"
                        },
                        "short_text_search": {
                            "filter": [
                                "lowercase",
                                "aggressive_splitting"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "plain": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "plain_search": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "text": {
                            "filter": [
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "text_search": {
                            "filter": [
                                "lowercase"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "keyword": {
                            "filter": [
                                "truncate_keyword"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "word_prefix": {
                            "filter": [
                                "lowercase",
                                "prefix_ngram_filter"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "near_match_asciifolding": {
                            "filter": [
                                "truncate_keyword",
                                "lowercase",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "near_match": {
                            "filter": [
                                "lowercase"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        }
                    },
                    "tokenizer": {
                        "no_splitting": {
                            "type": "keyword"
                        },
                        "trigram": {
                            "type": "nGram",
                            "min_gram": "3",
                            "max_gram": "3"
                        },
                        "prefix": {
                            "type": "edgeNGram",
                            "max_gram": "255"
                        }
                    }
                },
                "number_of_replicas": "2",
                "uuid": "HaOWnlKlRmSBTJLQmmpeDg",
                "version": {
                    "created": "6080299"
                },
                "routing": {
                    "allocation": {
                        "total_shards_per_node": "-1"
                    }
                },
                "number_of_shards": "4"
            }
        }
    }
}