Page MenuHomePhabricator
Paste P17444

MediaSearch timeout
ActivePublic

Authored by dcausse on Oct 8 2021, 12:59 PM.
Tags
None
Referenced Files
F34678874: MediaSearch timeout
Oct 8 2021, 12:59 PM
Subscribers
None
{
"__main__": {
"description": "simple_bag_of_words search for 'wikimedia commons'",
"path": "commonswiki_file\/page\/_search",
"params": {
"timeout": "10s"
},
"query": {
"_source": [
"namespace",
"title",
"namespace_text",
"wiki",
"redirect.*",
"timestamp",
"text_bytes"
],
"stored_fields": [
"text.word_count"
],
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"should": [
{
"dis_max": {
"tie_breaker": 0.5,
"queries": [
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "wikimedia commons",
"fields": [
"all",
"all.plain"
],
"operator": "and"
}
}
],
"should": [
{
"match": {
"title": {
"query": "wikimedia commons",
"boost": 0.0702949038300864
}
}
},
{
"match": {
"category": {
"query": "wikimedia commons",
"boost": 0.05158078808882278
}
}
},
{
"match": {
"redirect.title": {
"query": "wikimedia commons",
"boost": 0.01060150471482338
}
}
},
{
"match": {
"auxiliary_text": {
"query": "wikimedia commons",
"boost": 0.0001
}
}
},
{
"match": {
"text": {
"query": "wikimedia commons",
"boost": 0.0001
}
}
},
{
"match": {
"descriptions.en": {
"query": "wikimedia commons",
"boost": 0.019320230186222098
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "wikimedia commons"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"dis_max": {
"queries": [
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "commons",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "commons",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "commons",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "commons",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "commons",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "commons",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "commons"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "commonswiki",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "commonswiki",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "commonswiki",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "commonswiki",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "commonswiki",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "commonswiki",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "commonswiki"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "wikicommons",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "wikicommons",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "wikicommons",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "wikicommons",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "wikicommons",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "wikicommons",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "wikicommons"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "commons.wikimedia.org",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "commons.wikimedia.org",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "commons.wikimedia.org",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "commons.wikimedia.org",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "commons.wikimedia.org",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "commons.wikimedia.org",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "commons.wikimedia.org"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "c:",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "c:",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "c:",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "c:",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "c:",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "c:",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "c:"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "commons wikimedia",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "commons wikimedia",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "commons wikimedia",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "commons wikimedia",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "commons wikimedia",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "commons wikimedia",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "commons wikimedia"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "commons:",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "commons:",
"boost": 0.06822740665861327
}
}
},
{
"match": {
"category": {
"query": "commons:",
"boost": 0.050063706086210344
}
}
},
{
"match": {
"redirect.title": {
"query": "commons:",
"boost": 0.010289695752622693
}
}
},
{
"match": {
"auxiliary_text": {
"query": "commons:",
"boost": 9.705882352941177e-5
}
}
},
{
"match": {
"text": {
"query": "commons:",
"boost": 9.705882352941177e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "commons:"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "wikimedia commons atlas",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "wikimedia commons atlas",
"boost": 0.042024127289725564
}
}
},
{
"match": {
"category": {
"query": "wikimedia commons atlas",
"boost": 0.030836340705274485
}
}
},
{
"match": {
"redirect.title": {
"query": "wikimedia commons atlas",
"boost": 0.006337856079513977
}
}
},
{
"match": {
"auxiliary_text": {
"query": "wikimedia commons atlas",
"boost": 5.9782608695652175e-5
}
}
},
{
"match": {
"text": {
"query": "wikimedia commons atlas",
"boost": 5.9782608695652175e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "wikimedia commons atlas"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "wikimedia commons tool",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "wikimedia commons tool",
"boost": 0.037277600515954905
}
}
},
{
"match": {
"category": {
"query": "wikimedia commons tool",
"boost": 0.02735344822892117
}
}
},
{
"match": {
"redirect.title": {
"query": "wikimedia commons tool",
"boost": 0.005622010076042702
}
}
},
{
"match": {
"auxiliary_text": {
"query": "wikimedia commons tool",
"boost": 5.303030303030303e-5
}
}
},
{
"match": {
"text": {
"query": "wikimedia commons tool",
"boost": 5.303030303030303e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "wikimedia commons tool"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
},
{
"function_score": {
"query": {
"bool": {
"must": [
{
"function_score": {
"query": {
"bool": {
"filter": [
{
"multi_match": {
"query": "commons tool",
"fields": [
"all"
],
"type": "phrase"
}
}
],
"should": [
{
"match": {
"title": {
"query": "commons tool",
"boost": 0.037277600515954905
}
}
},
{
"match": {
"category": {
"query": "commons tool",
"boost": 0.02735344822892117
}
}
},
{
"match": {
"redirect.title": {
"query": "commons tool",
"boost": 0.005622010076042702
}
}
},
{
"match": {
"auxiliary_text": {
"query": "commons tool",
"boost": 5.303030303030303e-5
}
}
},
{
"match": {
"text": {
"query": "commons tool",
"boost": 5.303030303030303e-5
}
}
}
]
}
},
"min_score": 1.0e-8,
"functions": [
{
"script_score": {
"script": {
"source": "max(0, ln(_score))",
"lang": "expression"
}
}
}
]
}
}
],
"should": [
{
"function_score": {
"query": {
"match_explorer": {
"type": "unique_terms_count",
"query": {
"match": {
"text": {
"query": "commons tool"
}
}
}
}
},
"functions": [
{
"script_score": {
"script": {
"source": "ln(2 \/ max(1, min(1.25, _score)))",
"lang": "expression"
}
}
}
]
}
}
]
}
},
"min_score": 0,
"functions": [
{
"script_score": {
"script": {
"source": "exp(_score) \/ 2",
"lang": "expression"
}
}
}
]
}
}
]
}
}
]
}
},
{
"dis_max": {
"queries": [
{
"match": {
"statement_keywords": {
"query": "P180=Q565",
"boost": 0.10771890635803452
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q565",
"boost": 0.118490796993838
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q21623879",
"boost": 0.06634860174226764
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q21623879",
"boost": 0.07298346191649441
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q102314626",
"boost": 0.05885468253721812
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q102314626",
"boost": 0.06474015079093995
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q53502372",
"boost": 0.058393077183985044
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q53502372",
"boost": 0.06423238490238356
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q51954352",
"boost": 0.04498179308201671
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q51954352",
"boost": 0.049479972390218396
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q65494664",
"boost": 0.0425771589097818
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q65494664",
"boost": 0.04683487480075999
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q5619864",
"boost": 0.03998656372381584
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q5619864",
"boost": 0.04398522009619744
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q67591167",
"boost": 0.03719615936352186
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q67591167",
"boost": 0.040915775299874044
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q21167233",
"boost": 0.036994371880537114
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q21167233",
"boost": 0.04069380906859083
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q7798863",
"boost": 0.036568169439517094
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q7798863",
"boost": 0.0402249863834688
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q66491134",
"boost": 0.03614809539960979
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q66491134",
"boost": 0.03976290493957077
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q7450442",
"boost": 0.035362267238748704
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q7450442",
"boost": 0.03889849396262358
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q63348040",
"boost": 0.03464018457904838
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q63348040",
"boost": 0.03810420303695323
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q52429227",
"boost": 0.03353664020749235
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q52429227",
"boost": 0.03689030422824159
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q63348049",
"boost": 0.033050118996215135
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q63348049",
"boost": 0.036355130895836654
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q63348069",
"boost": 0.03234024122459857
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q63348069",
"boost": 0.03557426534705843
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q107997224",
"boost": 0.03077509472196046
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q107997224",
"boost": 0.03385260419415651
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q24574745",
"boost": 0.02854613791743368
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q24574745",
"boost": 0.031400751709177055
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q43387741",
"boost": 0.02697506282955831
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q43387741",
"boost": 0.029672569112514143
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q6998859",
"boost": 0.026204346748713785
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q6998859",
"boost": 0.028824781423585168
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q53502196",
"boost": 0.02545665348109506
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q53502196",
"boost": 0.028002318829204568
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q7144845",
"boost": 0.025279487451700354
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q7144845",
"boost": 0.027807436196870393
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q89347362",
"boost": 0.02442981996745225
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q89347362",
"boost": 0.026872801964197477
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q19067194",
"boost": 0.024188627768043494
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q19067194",
"boost": 0.02660749054484785
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q59712033",
"boost": 0.02355231750158418
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q59712033",
"boost": 0.025907549251742604
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q24731821",
"boost": 0.023385727938768096
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q24731821",
"boost": 0.025724300732644912
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q15627378",
"boost": 0.01907852606981985
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q15627378",
"boost": 0.020986378676801837
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q8085754",
"boost": 0.018937595129322568
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q8085754",
"boost": 0.02083135464225483
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q21510852",
"boost": 0.018870576339683913
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q21510852",
"boost": 0.02075763397365231
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q107876844",
"boost": 0.01886437573560887
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q107876844",
"boost": 0.020750813309169763
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q14335968",
"boost": 0.018486279580633966
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q14335968",
"boost": 0.020334907538697364
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q53502482",
"boost": 0.018480521808790836
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q53502482",
"boost": 0.02032857398966992
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q48552277",
"boost": 0.018240280579987046
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q48552277",
"boost": 0.02006430863798575
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q105412271",
"boost": 0.017572326643255125
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q105412271",
"boost": 0.01932955930758064
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q7314165",
"boost": 0.017157734544593933
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q7314165",
"boost": 0.01887350799905333
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q8101164",
"boost": 0.016515344589525496
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q8101164",
"boost": 0.01816687904847805
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q15627376",
"boost": 0.01576150092059234
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q15627376",
"boost": 0.017337651012651577
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q8101270",
"boost": 0.015165217294311792
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q8101270",
"boost": 0.016681739023742974
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q10796463",
"boost": 0.015052695303297727
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q10796463",
"boost": 0.016557964833627502
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q57326919",
"boost": 0.014747966586521945
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q57326919",
"boost": 0.016222763245174143
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q107665269",
"boost": 0.014743000210319757
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q107665269",
"boost": 0.016217300231351733
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q8235665",
"boost": 0.01468894177609562
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q8235665",
"boost": 0.016157835953705183
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q99360079",
"boost": 0.014429517735811349
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q99360079",
"boost": 0.015872469509392487
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q8235663",
"boost": 0.01376631155925877
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q8235663",
"boost": 0.015142942715184649
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q88770946",
"boost": 0.01366121391187088
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q88770946",
"boost": 0.01502733530305797
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q7471973",
"boost": 0.01228979696481807
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q7471973",
"boost": 0.01351877666129988
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q18610173",
"boost": 0.011922505903676498
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q18610173",
"boost": 0.01311475649404415
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q8925388",
"boost": 0.011877839215681292
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q8925388",
"boost": 0.013065623137249422
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q106517183",
"boost": 0.011679651693712429
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q106517183",
"boost": 0.012847616863083673
}
}
},
{
"match": {
"statement_keywords": {
"query": "P180=Q7483186",
"boost": 0.011059641489024686
}
}
},
{
"match": {
"statement_keywords": {
"query": "P6243=Q7483186",
"boost": 0.012165605637927155
}
}
}
]
}
}
]
}
},
"functions": [
{
"script_score": {
"script": {
"source": "100 \/ ( 1 + exp( -1 * ( _score + intercept ) ) )",
"params": {
"intercept": -1.1975600089068401
},
"lang": "expression"
}
}
}
]
}
}
],
"filter": [
{
"terms": {
"namespace": [
6
]
}
}
]
}
},
"highlight": {
"pre_tags": [
"\ue000"
],
"post_tags": [
"\ue001"
],
"fields": {
"title": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "none",
"matched_fields": [
"title",
"title.plain"
]
},
"redirect.title": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "none",
"order": "score",
"options": {
"skip_if_last_matched": true
},
"matched_fields": [
"redirect.title",
"redirect.title.plain"
]
},
"category": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "none",
"order": "score",
"options": {
"skip_if_last_matched": true
},
"matched_fields": [
"category",
"category.plain"
]
},
"heading": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "none",
"order": "score",
"options": {
"skip_if_last_matched": true
},
"matched_fields": [
"heading",
"heading.plain"
]
},
"text": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "scan",
"fragment_size": 150,
"no_match_size": 150,
"options": {
"top_scoring": true,
"boost_before": {
"20": 2,
"50": 1.8,
"200": 1.5,
"1000": 1.2
},
"max_fragments_scored": 5000
},
"matched_fields": [
"text",
"text.plain"
]
},
"auxiliary_text": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "scan",
"fragment_size": 150,
"options": {
"top_scoring": true,
"boost_before": {
"20": 2,
"50": 1.8,
"200": 1.5,
"1000": 1.2
},
"max_fragments_scored": 5000,
"skip_if_last_matched": true
},
"matched_fields": [
"auxiliary_text",
"auxiliary_text.plain"
]
},
"file_text": {
"type": "experimental",
"number_of_fragments": 1,
"fragmenter": "scan",
"fragment_size": 150,
"options": {
"top_scoring": true,
"boost_before": {
"20": 2,
"50": 1.8,
"200": 1.5,
"1000": 1.2
},
"max_fragments_scored": 5000,
"skip_if_last_matched": true
},
"matched_fields": [
"file_text",
"file_text.plain"
]
}
}
},
"suggest": {
"text": "wikimedia commons",
"suggest": {
"phrase": {
"field": "suggest",
"size": 1,
"max_errors": 2,
"confidence": 2,
"real_word_error_likelihood": 0.95,
"direct_generator": [
{
"field": "suggest",
"suggest_mode": "always",
"max_term_freq": 0.5,
"min_doc_freq": 0,
"prefix_length": 2
}
],
"highlight": {
"pre_tag": "\ue000",
"post_tag": "\ue001"
},
"smoothing": {
"stupid_backoff": {
"discount": 0.4
}
}
}
}
},
"stats": [
"suggest",
"simple_bag_of_words"
],
"rescore": [
{
"window_size": 8192,
"query": {
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"rescore_query": {
"function_score": {
"score_mode": "max",
"functions": [
{
"weight": 1.25,
"filter": {
"match": {
"template": {
"query": "Template:Quality image"
}
}
}
},
{
"weight": 1.5,
"filter": {
"match": {
"template": {
"query": "Template:Valued image"
}
}
}
},
{
"weight": 1.5,
"filter": {
"match": {
"template": {
"query": "Template:Assessments"
}
}
}
},
{
"weight": 1.75,
"filter": {
"match": {
"template": {
"query": "Template:Assessments\/commons\/featured"
}
}
}
},
{
"weight": 2,
"filter": {
"match": {
"template": {
"query": "Template:Picture of the day"
}
}
}
}
]
}
}
}
}
],
"size": 21
},
"options": {
"timeout": "10s"
}
}
}