Page MenuHomePhabricator

addlink_rescore_underlinked.json

Authored By
Tgr
Jul 25 2022, 6:31 AM
Size
1 KB
Referenced Files
None
Subscribers
None

addlink_rescore_underlinked.json

{
"_source": [
"namespace",
"title",
"namespace_text",
"wiki",
"redirect.*",
"timestamp",
"text_bytes"
],
"stored_fields": [
"text.word_count"
],
"query": {
"bool": {
"must": [
{
"match_all": {}
}
],
"filter": [
{
"bool": {
"must": [
{
"match": {
"weighted_tags": {
"query": "recommendation.link/exists"
}
}
},
{
"terms": {
"namespace": [
0
]
}
}
]
}
}
]
}
},
"stats": [
"full_text",
"complex_query",
"hasrecommendation",
"filter_only"
],
"rescore": [
{
"window_size": 8192,
"query": {
"query_weight": "1.0",
"rescore_query_weight": "1.0",
"score_mode": "multiply",
"rescore_query": {
"function_score": {
"functions": [
{
"script_score": {
"script": {
"source": "doc['text_bytes'].value >= params['minimumLength'] ? doc['text_bytes'].value / Math.max(params._source.outgoing_link.size(),1) : 1",
"params": {
"minimumLength": 300
},
"lang": "painless"
}
}
}
]
}
}
}
}
],
"size": 100
}

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9596928
Default Alt Text
addlink_rescore_underlinked.json (1 KB)

Event Timeline

Created with

curl -s 'http://dev.wiki.local.wmftest.net:22100/w/index.php?title=Special:Search&search=hasrecommendation%3Alink&fulltext=1&ns0=1&limit=21&offset=0&cirrusRescoreProfile=growth_underlinked&cirrusDumpQuery=1&cirrusExplain=pretty&sort=relevance' | jq '.__main__.query | del(.highlight) | del(.explain) | .size=100' > addlink_rescore_underlinked.json

(The URL can be grabbed from Special:Homepage using the debug=1 query parameter, with c801010 and c816353 applied.)