MediaWiki API 结果
这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。
指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json。
{
"CirrusSearchServers": [
"elasticsearch"
],
"CirrusSearchConnectionAttempts": 1,
"CirrusSearchSlowSearch": 10,
"CirrusSearchNamespaceMappings": [],
"CirrusSearchExtraIndexes": [],
"CirrusSearchUpdateShardTimeout": "1ms",
"CirrusSearchClientSideUpdateTimeout": 120,
"CirrusSearchSearchShardTimeout": {
"comp_suggest": "5s",
"prefix": "5s",
"default": "20s",
"regex": "120s"
},
"CirrusSearchMaintenanceTimeout": 3600,
"CirrusSearchPhraseSlop": {
"precise": 0,
"default": 0,
"boost": 1
},
"CirrusSearchPhraseRescoreBoost": 10,
"CirrusSearchPhraseRescoreWindowSize": 512,
"CirrusSearchFunctionRescoreWindowSize": 8192,
"CirrusSearchMoreAccurateScoringMode": "",
"CirrusSearchIndexedRedirects": 1024,
"CirrusSearchLinkedArticlesToUpdate": 25,
"CirrusSearchWeights": {
"title": 20,
"redirect": 15,
"category": 8,
"heading": 5,
"opening_text": 3,
"text": 1,
"auxiliary_text": 0.5,
"file_text": 0.5
},
"CirrusSearchAllFields": {
"build": "",
"use": ""
},
"CirrusSearchBoostOpening": "first_heading",
"CirrusSearchNearMatchWeight": 2,
"CirrusSearchStemmedWeight": 0.5,
"CirrusSearchNamespaceWeights": {
"2": 0.05,
"4": 0.1,
"8": 0.05,
"10": 0.005,
"12": 0.1
},
"CirrusSearchDefaultNamespaceWeight": 0.2,
"CirrusSearchTalkNamespaceWeight": 0.25,
"CirrusSearchLanguageWeight": {
"user": 0,
"wiki": 0
},
"CirrusSearchPreferRecentDefaultDecayPortion": 0,
"CirrusSearchPreferRecentUnspecifiedDecayPortion": 0.6,
"CirrusSearchPreferRecentDefaultHalfLife": 160,
"CirrusSearchMoreLikeThisConfig": {
"min_doc_freq": 2,
"max_doc_freq": null,
"max_query_terms": 25,
"min_term_freq": 2,
"min_word_length": 0,
"max_word_length": 0,
"minimum_should_match": "30%"
},
"CirrusSearchInterwikiSources": [],
"CirrusSearchRefreshInterval": 1,
"CirrusSearchFragmentSize": 150,
"CirrusSearchIndexAllocation": {
"include": [],
"exclude": [],
"require": []
},
"CirrusSearchFullTextQueryBuilderProfile": "default",
"CirrusSearchRescoreProfile": "classic",
"CirrusSearchPrefixSearchRescoreProfile": "classic",
"CirrusSearchSimilarityProfile": "classic",
"CirrusSearchCrossProjectProfiles": [],
"CirrusSearchCrossProjectOrder": "static",
"CirrusSearchCrossProjectSearchBlackList": [],
"CirrusSearchExtraIndexBoostTemplates": [],
"CirrusSearchUseIcuFolding": "default",
"CirrusSearchUseIcuTokenizer": "default",
"CirrusSearchPhraseSuggestProfiles": {
"default": {
"mode": "always",
"confidence": 2,
"max_errors": 2,
"real_word_error_likelihood": 0.95,
"max_term_freq": 0.5,
"min_doc_freq": 0,
"prefix_length": 2,
"collate_minimum_should_match": "3<66%",
"smoothing_model": {
"stupid_backoff": {
"discount": 0.4
}
}
},
"strict": {
"mode": "always",
"confidence": 2,
"max_errors": 2,
"real_word_error_likelihood": 0.95,
"max_term_freq": 0.5,
"min_doc_freq": 0,
"prefix_length": 2,
"collate": "",
"collate_minimum_should_match": "3<66%",
"smoothing_model": {
"laplace": {
"alpha": 0.3
}
}
},
"alternative": {
"mode": "always",
"confidence": 1,
"max_errors": 2,
"real_word_error_likelihood": 0.95,
"max_term_freq": 0.5,
"min_doc_freq": 0,
"prefix_length": 2,
"collate_minimum_should_match": "3<66%",
"smoothing_model": {
"laplace": {
"alpha": 0.3
}
}
}
},
"CirrusSearchCrossProjectBlockScorerProfiles": {
"static": {
"type": "static"
},
"recall": {
"type": "recall"
},
"random": {
"type": "random"
},
"wmf_enwiki": {
"type": "composite",
"settings": {
"recall": {
"weight": 0.01
},
"static": {
"weight": 1,
"settings": {
"wikt": 1,
"b": 0.01
}
}
}
}
},
"CirrusSearchSimilarityProfiles": {
"default": {
"fields": []
},
"classic": {
"fields": []
},
"bm25_with_defaults": {
"similarity": {
"bm25": {
"type": "BM25"
}
},
"fields": []
},
"bm25_tuned": {
"similarity": {
"title": {
"type": "BM25",
"k1": 1.23,
"b": 0.75
},
"opening": {
"type": "BM25",
"k1": 1.22,
"b": 0.75
},
"arrays": {
"type": "BM25",
"k1": 1.1,
"b": 0.3
},
"text": {
"type": "BM25",
"k1": 1.3,
"b": 0.8
}
},
"fields": {
"opening_text": "opening",
"category": "arrays",
"title": "title",
"heading": "arrays",
"suggest": "title"
}
},
"bm25_browser_tests": {
"similarity": {
"lower_norms": {
"type": "BM25",
"k1": 1.2,
"b": 0.3
},
"with_defaults": {
"type": "BM25"
}
},
"fields": []
},
"wmf_defaults": {
"similarity": {
"default": {
"type": "BM25"
},
"arrays": {
"type": "BM25",
"k1": 1.2,
"b": 0.3
}
},
"fields": {
"category": "arrays",
"heading": "arrays",
"redirect.title": "arrays",
"suggest": "arrays"
}
}
},
"CirrusSearchRescoreFunctionChains": {
"classic_allinone_chain": {
"functions": [
{
"type": "boostlinks"
},
{
"type": "recency"
},
{
"type": "templates"
},
{
"type": "namespaces"
},
{
"type": "language"
}
],
"add_extensions": ""
},
"optional_chain": {
"functions": [
{
"type": "recency"
},
{
"type": "templates"
},
{
"type": "namespaces"
},
{
"type": "language"
}
],
"add_extensions": ""
},
"boostlinks_only_chain": {
"functions": [
{
"type": "boostlinks"
}
]
},
"wsum_inclinks": {
"functions": [
{
"type": "satu",
"weight": {
"value": 13,
"config_override": "CirrusSearchIncLinksAloneW",
"uri_param_override": "cirrusIncLinksAloneW"
},
"params": {
"field": "incoming_links",
"k": {
"value": 30,
"config_override": "CirrusSearchIncLinksAloneK",
"uri_param_override": "cirrusIncLinksAloneK"
},
"a": {
"value": 0.7,
"config_override": "CirrusSearchIncLinksAloneA",
"uri_param_override": "cirrusIncLinksAloneA"
}
}
}
]
},
"wsum_inclinks_pv": {
"score_mode": "sum",
"boost_mode": "sum",
"functions": [
{
"type": "satu",
"weight": {
"value": 3,
"config_override": "CirrusSearchPageViewsW",
"uri_param_override": "cirrusPageViewsW"
},
"params": {
"field": "popularity_score",
"k": {
"value": 8.0e-6,
"config_override": "CirrusSearchPageViewsK",
"uri_param_override": "cirrusPageViewsK"
},
"a": {
"value": 0.8,
"config_override": "CirrusSearchPageViewsA",
"uri_param_override": "cirrusPageViewsA"
}
}
},
{
"type": "satu",
"weight": {
"value": 10,
"config_override": "CirrusSearchIncLinksW",
"uri_param_override": "cirrusIncLinkssW"
},
"params": {
"field": "incoming_links",
"k": {
"value": 30,
"config_override": "CirrusSearchIncLinksK",
"uri_param_override": "cirrusIncLinksK"
},
"a": {
"value": 0.7,
"config_override": "CirrusSearchIncLinksA",
"uri_param_override": "cirrusIncLinksA"
}
}
}
]
},
"wsum_inclinks_pv+": {
"score_mode": "sum",
"boost_mode": "sum",
"functions": [
{
"type": "satu",
"weight": {
"value": 1000,
"config_override": "CirrusSearchPageViewsW",
"uri_param_override": "cirrusPageViewsW"
},
"params": {
"field": "popularity_score",
"k": {
"value": 8.0e-6,
"config_override": "CirrusSearchPageViewsK",
"uri_param_override": "cirrusPageViewsK"
},
"a": {
"value": 0.8,
"config_override": "CirrusSearchPageViewsA",
"uri_param_override": "cirrusPageViewsA"
}
}
},
{
"type": "satu",
"weight": {
"value": 10,
"config_override": "CirrusSearchIncLinksW",
"uri_param_override": "cirrusIncLinkssW"
},
"params": {
"field": "incoming_links",
"k": {
"value": 30,
"config_override": "CirrusSearchIncLinksK",
"uri_param_override": "cirrusIncLinksK"
},
"a": {
"value": 0.7,
"config_override": "CirrusSearchIncLinksA",
"uri_param_override": "cirrusIncLinksA"
}
}
}
]
}
},
"CirrusSearchCompletionProfiles": {
"strict": {
"i18n_msg": "cirrussearch-completion-profile-strict",
"fst": {
"plain-strict": {
"field": "suggest",
"min_query_len": 0,
"discount": 1,
"fetch_limit_factor": 2
}
}
},
"normal": {
"i18n_msg": "cirrussearch-completion-profile-normal",
"fst": {
"plain-normal": {
"field": "suggest",
"min_query_len": 0,
"discount": 1,
"fetch_limit_factor": 2
},
"plain-stop-normal": {
"field": "suggest-stop",
"min_query_len": 0,
"discount": 0.001,
"fetch_limit_factor": 2
}
}
},
"fuzzy": {
"i18n_msg": "cirrussearch-completion-profile-fuzzy",
"fst": {
"plain": {
"field": "suggest",
"min_query_len": 0,
"discount": 1,
"fetch_limit_factor": 2
},
"plain_stop": {
"field": "suggest-stop",
"min_query_len": 0,
"discount": 0.001,
"fetch_limit_factor": 2
},
"plain_fuzzy_2": {
"field": "suggest",
"min_query_len": 3,
"max_query_len": 4,
"discount": 1.0e-6,
"fetch_limit_factor": 2,
"fuzzy": {
"fuzziness": "AUTO",
"prefix_length": 1,
"unicode_aware": ""
}
},
"plain_stop_fuzzy_2": {
"field": "suggest-stop",
"min_query_len": 3,
"max_query_len": 4,
"discount": 1.0e-7,
"fetch_limit_factor": 1,
"fuzzy": {
"fuzziness": "AUTO",
"prefix_length": 2,
"unicode_aware": ""
}
},
"plain_fuzzy_1": {
"field": "suggest",
"min_query_len": 5,
"discount": 1.0e-6,
"fetch_limit_factor": 1,
"fuzzy": {
"fuzziness": "AUTO",
"prefix_length": 1,
"unicode_aware": ""
}
},
"plain_stop_fuzzy_1": {
"field": "suggest-stop",
"min_query_len": 5,
"discount": 1.0e-7,
"fetch_limit_factor": 1,
"fuzzy": {
"fuzziness": "AUTO",
"prefix_length": 1,
"unicode_aware": ""
}
}
}
},
"fast-fuzzy": {
"i18n_msg": "cirrussearch-completion-profile-fast-fuzzy",
"fst": {
"plain": {
"field": "suggest",
"min_query_len": 0,
"discount": 1,
"fetch_limit_factor": 2,
"fuzzy": {
"fuzziness": "AUTO",
"unicode_aware": ""
}
},
"plain_stop": {
"field": "suggest-stop",
"min_query_len": 0,
"discount": 0.01,
"fetch_limit_factor": 2,
"fuzzy": {
"fuzziness": "AUTO",
"unicode_aware": ""
}
}
}
},
"classic": {
"i18n_msg": "cirrussearch-completion-profile-classic",
"fst": []
}
},
"CirrusSearchCompletionSettings": "fuzzy",
"CirrusSearchDevelOptions": [],
"CirrusSearchMoreLikeThisFields": [
"text"
],
"CirrusSearchMoreLikeThisTTL": 0,
"CirrusSearchFiletypeAliases": [],
"CirrusSearchDefaultCluster": "default",
"CirrusSearchClientSideConnectTimeout": 5,
"CirrusSearchClusters": {
"default": [
"localhost"
]
},
"CirrusSearchReplicaGroup": "default",
"CirrusSearchExtraBackendLatency": 0,
"CirrusSearchAllowLeadingWildcard": "",
"CirrusSearchClientSideSearchTimeout": {
"comp_suggest": 10,
"prefix": 10,
"default": 40,
"regex": 240
},
"CirrusSearchStripQuestionMarks": "all",
"CirrusSearchFullTextQueryBuilderProfiles": {
"default": {
"builder_class": "CirrusSearch\\Query\\FullTextQueryStringQueryBuilder",
"settings": []
},
"browser_tests": {
"builder_class": "CirrusSearch\\Query\\FullTextSimpleMatchQueryBuilder",
"settings": {
"default_min_should_match": "1",
"default_query_type": "most_fields",
"default_stem_weight": 0.3,
"fields": {
"title": 2.3,
"redirect.title": {
"boost": 2,
"in_dismax": "redirects_or_shingles"
},
"suggest": {
"is_plain": "",
"boost": 1.05,
"in_dismax": "redirects_or_shingles"
},
"category": 1.8,
"heading": 1.3,
"text": {
"boost": 0.4,
"in_dismax": "text_and_opening_text"
},
"opening_text": {
"boost": 0.5,
"in_dismax": "text_and_opening_text"
},
"auxiliary_text": 0.2,
"file_text": 0.2
},
"phrase_rescore_fields": {
"text": 0.14,
"text.plain": 0.2
},
"dismax_settings": {
"text_and_opening_text": {
"tie_breaker": 0.2
}
}
}
},
"perfield_builder": {
"builder_class": "CirrusSearch\\Query\\FullTextSimpleMatchQueryBuilder",
"settings": {
"default_min_should_match": "1",
"default_query_type": "most_fields",
"default_stem_weight": 3,
"fields": {
"title": 0.3,
"redirect.title": {
"boost": 0.27,
"in_dismax": "redirects_or_shingles"
},
"suggest": {
"is_plain": "",
"boost": 0.2,
"in_dismax": "redirects_or_shingles"
},
"category": 0.05,
"heading": 0.05,
"text": {
"boost": 0.6,
"in_dismax": "text_and_opening_text"
},
"opening_text": {
"boost": 0.5,
"in_dismax": "text_and_opening_text"
},
"auxiliary_text": 0.05,
"file_text": 0.5
},
"phrase_rescore_fields": {
"all": 0.06,
"all.plain": 0.1
}
}
},
"perfield_builder_title_filter": {
"builder_class": "CirrusSearch\\Query\\FullTextSimpleMatchQueryBuilder",
"settings": {
"default_min_should_match": "1",
"default_query_type": "most_fields",
"default_stem_weight": 3,
"filter": {
"type": "constrain_title",
"settings": {
"minimum_should_match": "3<80%"
}
},
"fields": {
"title": 0.3,
"redirect.title": {
"boost": 0.27,
"in_dismax": "redirects_or_shingles"
},
"suggest": {
"is_plain": "",
"boost": 0.2,
"in_dismax": "redirects_or_shingles"
},
"category": 0.05,
"heading": 0.05,
"text": {
"boost": 0.6,
"in_dismax": "text_and_opening_text"
},
"opening_text": {
"boost": 0.5,
"in_dismax": "text_and_opening_text"
},
"auxiliary_text": 0.05,
"file_text": 0.5
},
"phrase_rescore_fields": {
"all": 0.06,
"all.plain": 0.1
}
}
}
},
"CirrusSearchEnableRegex": "",
"CirrusSearchWikimediaExtraPlugin": [],
"CirrusSearchRegexMaxDeterminizedStates": 20000,
"CirrusSearchMaxIncategoryOptions": 100,
"CirrusSearchEnablePhraseSuggest": "",
"CirrusSearchClusterOverrides": [],
"CirrusSearchRescoreProfiles": {
"classic": {
"i18n_msg": "cirrussearch-qi-profile-classic",
"supported_namespaces": "all",
"rescore": [
{
"window": 512,
"window_size_override": "CirrusSearchPhraseRescoreWindowSize",
"rescore_query_weight": 10,
"rescore_query_weight_override": "CirrusSearchPhraseRescoreBoost",
"query_weight": 1,
"type": "phrase"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"type": "function_score",
"function_chain": "classic_allinone_chain"
}
]
},
"classic_noboostlinks": {
"i18n_msg": "cirrussearch-qi-profile-classic-noboostlinks",
"supported_namespaces": "all",
"rescore": [
{
"window": 512,
"window_size_override": "CirrusSearchPhraseRescoreWindowSize",
"rescore_query_weight": 10,
"rescore_query_weight_override": "CirrusSearchPhraseRescoreBoost",
"query_weight": 1,
"type": "phrase"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"type": "function_score",
"function_chain": "optional_chain"
}
]
},
"empty": {
"i18n_msg": "cirrussearch-qi-profile-empty",
"supported_namespaces": "all",
"rescore": []
},
"wsum_inclinks": {
"i18n_msg": "cirrussearch-qi-profile-wsum-inclinks",
"supported_namespaces": "all",
"rescore": [
{
"window": 512,
"window_size_override": "CirrusSearchPhraseRescoreWindowSize",
"rescore_query_weight": 10,
"rescore_query_weight_override": "CirrusSearchPhraseRescoreBoost",
"query_weight": 1,
"type": "phrase"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "total",
"type": "function_score",
"function_chain": "wsum_inclinks"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"type": "function_score",
"function_chain": "optional_chain"
}
]
},
"wsum_inclinks_pv": {
"i18n_msg": "cirrussearch-qi-profile-wsum-inclinks-pv",
"supported_namespaces": "content",
"fallback_profile": "wsum_inclinks",
"rescore": [
{
"window": 512,
"window_size_override": "CirrusSearchPhraseRescoreWindowSize",
"rescore_query_weight": 10,
"rescore_query_weight_override": "CirrusSearchPhraseRescoreBoost",
"query_weight": 1,
"type": "phrase"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "total",
"type": "function_score",
"function_chain": "wsum_inclinks_pv"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"type": "function_score",
"function_chain": "optional_chain"
}
]
},
"popular_inclinks_pv": {
"supported_namespaces": "content",
"fallback_profile": "popular_inclinks",
"i18n_msg": "cirrussearch-qi-profile-popular-pv",
"rescore": [
{
"window": 512,
"window_size_override": "CirrusSearchPhraseRescoreWindowSize",
"rescore_query_weight": 10,
"rescore_query_weight_override": "CirrusSearchPhraseRescoreBoost",
"query_weight": 1,
"type": "phrase"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "total",
"type": "function_score",
"function_chain": "wsum_inclinks_pv+"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"type": "function_score",
"function_chain": "optional_chain"
}
]
},
"popular_inclinks": {
"supported_namespaces": "all",
"i18n_msg": "cirrussearch-qi-profile-popular-inclinks",
"rescore": [
{
"window": 512,
"window_size_override": "CirrusSearchPhraseRescoreWindowSize",
"rescore_query_weight": 10,
"rescore_query_weight_override": "CirrusSearchPhraseRescoreBoost",
"query_weight": 1,
"type": "phrase"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 100,
"score_mode": "total",
"type": "function_score",
"function_chain": "wsum_inclinks"
},
{
"window": 8192,
"window_size_override": "CirrusSearchFunctionRescoreWindowSize",
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"type": "function_score",
"function_chain": "optional_chain"
}
]
}
},
"CirrusSearchNumCrossProjectSearchResults": 5,
"CirrusSearchLanguageToWikiMap": [],
"CirrusSearchWikiToNameMap": [],
"CirrusSearchQueryStringMaxDeterminizedStates": null,
"CirrusSearchElasticQuirks": [],
"CirrusSearchPhraseSuggestSettings": "default",
"CirrusSearchPhraseSuggestReverseField": [],
"CirrusSearchBoostTemplates": [],
"CirrusSearchIndexBaseName": "__wikiid__",
"CirrusSearchInterleaveConfig": null,
"CirrusSearchMaxPhraseTokens": null,
"LanguageCode": "zh",
"ContentNamespaces": [
0
],
"NamespacesToBeSearchedDefault": [
""
],
"CirrusSearchCategoryDepth": 5,
"CirrusSearchCategoryMax": 256,
"CirrusSearchCategoryEndpoint": ""
}