Page MenuHomePhabricator

addlink_rescore_underlinked_with_topic.json

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

addlink_rescore_underlinked_with_topic.json

{
"_source": [
"namespace",
"title",
"namespace_text",
"wiki",
"redirect.*",
"timestamp",
"text_bytes"
],
"stored_fields": [
"text.word_count"
],
"query": {
"bool": {
"must": [
{
"dis_max": {
"queries": [
{
"term": {
"weighted_tags": {
"value": "classification.ores.articletopic/Culture.Media.Video games",
"boost": 1
}
}
}
]
}
}
],
"filter": [
{
"bool": {
"must": [
{
"match": {
"weighted_tags": {
"query": "recommendation.link/exists"
}
}
},
{
"terms": {
"namespace": [
0
]
}
}
]
}
}
]
}
},
"stats": [
"full_text",
"complex_query",
"articletopic",
"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
9596929
Default Alt Text
addlink_rescore_underlinked_with_topic.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+articletopic%3Avideo-games&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_with_topic.json

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