Page MenuHomePhabricator
Paste P8460

cirrusDumpQuery for "inlabel:foo"
ActivePublic

Authored by Mholloway on Apr 30 2019, 9:53 PM.
Tags
None
Referenced Files
F28874942: raw.txt
Apr 30 2019, 9:53 PM
Subscribers
None
{
"description": "full_text search for 'inlabel:foo'",
"path": "wikidatawiki_content\/page\/_search",
"params": {
"timeout": "20s",
"search_type": "dfs_query_then_fetch"
},
"query": {
"_source": [
"namespace",
"title",
"namespace_text",
"wiki",
"sitelink_count",
"statement_count",
"labels.en",
"descriptions.en"
],
"stored_fields": [],
"query": {
"bool": {
"must": [
{
"match_all": {}
}
],
"filter": [
{
"bool": {
"must": [
{
"multi_match": {
"query": "foo",
"operator": "and",
"fields": [
"labels_all.plain"
]
}
},
{
"terms": {
"namespace": [
0
]
}
}
]
}
}
]
}
},
"highlight": {
"pre_tags": [
"\ue000"
],
"post_tags": [
"\ue001"
],
"fields": {
"title": {
"type": "experimental",
"fragmenter": "none",
"number_of_fragments": 0,
"matched_fields": [
"title.keyword"
]
},
"labels.en.plain": {
"type": "experimental",
"fragmenter": "none",
"number_of_fragments": 0,
"options": {
"skip_if_last_matched": true,
"return_snippets_and_offsets": true
}
},
"descriptions.en.plain": {
"type": "experimental",
"fragmenter": "none",
"number_of_fragments": 0,
"options": {
"skip_if_last_matched": true
}
},
"labels.*.plain": {
"type": "experimental",
"fragmenter": "none",
"number_of_fragments": 0,
"options": {
"skip_if_last_matched": true,
"return_snippets_and_offsets": true
}
},
"descriptions.*.plain": {
"type": "experimental",
"fragmenter": "none",
"number_of_fragments": 0,
"options": {
"skip_if_last_matched": true
}
}
},
"highlight_query": {
"bool": {
"should": [
{
"bool": {
"must": [
{
"match_all": {}
}
],
"filter": [
{
"bool": {
"must": [
{
"multi_match": {
"query": "foo",
"operator": "and",
"fields": [
"labels_all.plain"
]
}
},
{
"terms": {
"namespace": [
0
]
}
}
]
}
}
]
}
},
{
"multi_match": {
"query": "foo",
"operator": "and",
"fields": [
"labels_all.plain"
]
}
}
]
}
}
},
"size": 21,
"stats": [
"full_text",
"inlabel",
"filter_only"
],
"rescore": [
{
"window_size": 8192,
"query": {
"query_weight": 1,
"rescore_query_weight": 1,
"score_mode": "multiply",
"rescore_query": {
"function_score": {
"functions": [
{
"field_value_factor": {
"field": "incoming_links",
"modifier": "log2p",
"missing": 0
}
}
]
}
}
}
}
]
},
"options": {
"timeout": "20s",
"search_type": "dfs_query_then_fetch"
}
}