Odpověď z MediaWiki API

Toto je HTML reprezentace formátu JSON. HTML se hodí pro ladění, ale pro aplikační použití je nevhodné.

Pro změnu výstupního formátu uveďte parametr format. Abyste viděli ne-HTML reprezentaci formátu JSON, nastavte format=json.

Více informací najdete v úplné dokumentaci nebo v nápovědě k API.

{
    "content": {
        "page": {
            "index": {
                "routing": {
                    "allocation": {
                        "total_shards_per_node": "-1"
                    }
                },
                "refresh_interval": "1s",
                "number_of_shards": "4",
                "auto_expand_replicas": "0-2",
                "provided_name": "wiki_content_first",
                "merge": {
                    "policy": {
                        "max_merge_at_once": "5",
                        "reclaim_deletes_weight": "3",
                        "max_merged_segment": "25g",
                        "segments_per_tier": "5"
                    }
                },
                "query": {
                    "default_field": "all"
                },
                "creation_date": "1599660867391",
                "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"
                        },
                        "icu_normalizer": {
                            "name": "nfkc_cf",
                            "type": "icu_normalizer"
                        },
                        "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": [
                                "icu_normalizer",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "source_text_plain": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "lowercase_keyword": {
                            "filter": [
                                "truncate_keyword",
                                "icu_normalizer"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "prefix": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "short_text": {
                            "filter": [
                                "icu_normalizer",
                                "aggressive_splitting",
                                "asciifolding_preserve",
                                "dedup_asciifolding"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "token_reverse": {
                            "filter": [
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "suggest": {
                            "filter": [
                                "icu_normalizer",
                                "suggest_shingle"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "source_text_plain_search": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "suggest_reverse": {
                            "filter": [
                                "icu_normalizer",
                                "suggest_shingle",
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "trigram": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "type": "custom",
                            "tokenizer": "trigram"
                        },
                        "short_text_search": {
                            "filter": [
                                "icu_normalizer",
                                "aggressive_splitting"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "plain": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "plain_search": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "text": {
                            "type": "czech",
                            "char_filter": [
                                "word_break_helper"
                            ]
                        },
                        "text_search": {
                            "type": "czech",
                            "char_filter": [
                                "word_break_helper"
                            ]
                        },
                        "keyword": {
                            "filter": [
                                "truncate_keyword"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "word_prefix": {
                            "filter": [
                                "icu_normalizer",
                                "prefix_ngram_filter"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "near_match_asciifolding": {
                            "filter": [
                                "truncate_keyword",
                                "icu_normalizer",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "near_match": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "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": "0",
                "uuid": "AUhT7xkYRxyCYU_ittZQBQ",
                "version": {
                    "created": "5061699"
                }
            }
        }
    },
    "general": {
        "page": {
            "index": {
                "routing": {
                    "allocation": {
                        "total_shards_per_node": "-1"
                    }
                },
                "refresh_interval": "1s",
                "number_of_shards": "4",
                "auto_expand_replicas": "0-2",
                "provided_name": "wiki_general_first",
                "merge": {
                    "policy": {
                        "max_merge_at_once": "10",
                        "reclaim_deletes_weight": "2",
                        "max_merged_segment": "5g",
                        "segments_per_tier": "10"
                    }
                },
                "query": {
                    "default_field": "all"
                },
                "creation_date": "1599660870128",
                "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"
                        },
                        "icu_normalizer": {
                            "name": "nfkc_cf",
                            "type": "icu_normalizer"
                        },
                        "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": [
                                "icu_normalizer",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "source_text_plain": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "lowercase_keyword": {
                            "filter": [
                                "truncate_keyword",
                                "icu_normalizer"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "prefix": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "prefix"
                        },
                        "short_text": {
                            "filter": [
                                "icu_normalizer",
                                "aggressive_splitting",
                                "asciifolding_preserve",
                                "dedup_asciifolding"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "token_reverse": {
                            "filter": [
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "suggest": {
                            "filter": [
                                "icu_normalizer",
                                "suggest_shingle"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "source_text_plain_search": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper_source_text"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "suggest_reverse": {
                            "filter": [
                                "icu_normalizer",
                                "suggest_shingle",
                                "reverse"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "trigram": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "type": "custom",
                            "tokenizer": "trigram"
                        },
                        "short_text_search": {
                            "filter": [
                                "icu_normalizer",
                                "aggressive_splitting"
                            ],
                            "type": "custom",
                            "tokenizer": "whitespace"
                        },
                        "plain": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "plain_search": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "char_filter": [
                                "word_break_helper"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "text": {
                            "type": "czech",
                            "char_filter": [
                                "word_break_helper"
                            ]
                        },
                        "text_search": {
                            "type": "czech",
                            "char_filter": [
                                "word_break_helper"
                            ]
                        },
                        "keyword": {
                            "filter": [
                                "truncate_keyword"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "word_prefix": {
                            "filter": [
                                "icu_normalizer",
                                "prefix_ngram_filter"
                            ],
                            "type": "custom",
                            "tokenizer": "standard"
                        },
                        "near_match_asciifolding": {
                            "filter": [
                                "truncate_keyword",
                                "icu_normalizer",
                                "asciifolding"
                            ],
                            "char_filter": [
                                "near_space_flattener"
                            ],
                            "type": "custom",
                            "tokenizer": "no_splitting"
                        },
                        "near_match": {
                            "filter": [
                                "icu_normalizer"
                            ],
                            "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": "0",
                "uuid": "nH-cEMztRuKOZPFxddr4RA",
                "version": {
                    "created": "5061699"
                }
            }
        }
    }
}