Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F30989745
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
EBernhardson
Nov 4 2019, 7:30 PM
2019-11-04 19:30:02 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
raw.txt
View Options
{
"_source": [ "title" ],
"explain": true,
"size": 1,
"query": {
"bool": {
"filter": [
{
"bool": {
"should": [
{
"match": {
"all": {
"query": "example",
"operator": "AND"
}
}
},
{
"match": {
"all.plain": {
"query": "example",
"operator": "AND"
}
}
}
]
}
},
{
"terms": {
"namespace": [
0
]
}
}
]
}
},
"rescore": [
{
"window_size": 1024,
"query": {
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "total",
"rescore_query": {
"function_score": {
"score_mode": "sum",
"boost_mode": "sum",
"query": {
"sltr": {
"model": "20170911_enwiki_v1",
"params": {
"query_string": "example"
}
}
},
"functions": [
{
"script_score": {
"script": {
"lang": "painless",
"source": """
double popularity = doc['popularity_score'].empty ? 0 : doc['popularity_score'].value;
double norm_ltr = (_score - params.mean) / params.std;
return popularity * params.w1 + norm_ltr * params.w2;
""",
"params": {
"mean": 1.2,
"std": 0.42,
"w1": 0.8,
"w2": 0.2
}
}
}
}
]
}
}
}
}
]
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8186898
Default Alt Text
raw.txt (2 KB)
Attached To
Mode
P9524 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment