{
    "description": "full_text search for 'incategory:ASpace'",
    "options": {
        "search_type": "dfs_query_then_fetch",
        "timeout": "20s"
    },
    "params": {
        "search_type": "dfs_query_then_fetch",
        "timeout": "20s"
    },
    "path": "wiki\/page\/_search",
    "query": {
        "_source": [
            "namespace",
            "namespace_text",
            "redirect.*",
            "text_bytes",
            "timestamp",
            "title",
            "wiki"
        ],
        "highlight": {
            "fields": {
                "auxiliary_text": {
                    "fragment_size": 150,
                    "fragmenter": "scan",
                    "matched_fields": [
                        "auxiliary_text",
                        "auxiliary_text.plain"
                    ],
                    "number_of_fragments": 1,
                    "options": {
                        "boost_before": {
                            "20": 2,
                            "50": 1.8,
                            "200": 1.5,
                            "1000": 1.2
                        },
                        "max_fragments_scored": 5000,
                        "skip_if_last_matched": true,
                        "top_scoring": true
                    },
                    "type": "experimental"
                },
                "category": {
                    "fragmenter": "none",
                    "matched_fields": [
                        "category",
                        "category.plain"
                    ],
                    "number_of_fragments": 1,
                    "options": {
                        "skip_if_last_matched": true
                    },
                    "order": "score",
                    "type": "experimental"
                },
                "file_text": {
                    "fragment_size": 150,
                    "fragmenter": "scan",
                    "matched_fields": [
                        "file_text",
                        "file_text.plain"
                    ],
                    "number_of_fragments": 1,
                    "options": {
                        "boost_before": {
                            "20": 2,
                            "50": 1.8,
                            "200": 1.5,
                            "1000": 1.2
                        },
                        "max_fragments_scored": 5000,
                        "skip_if_last_matched": true,
                        "top_scoring": true
                    },
                    "type": "experimental"
                },
                "heading": {
                    "fragmenter": "none",
                    "matched_fields": [
                        "heading",
                        "heading.plain"
                    ],
                    "number_of_fragments": 1,
                    "options": {
                        "skip_if_last_matched": true
                    },
                    "order": "score",
                    "type": "experimental"
                },
                "redirect.title": {
                    "fragmenter": "none",
                    "matched_fields": [
                        "redirect.title",
                        "redirect.title.plain"
                    ],
                    "number_of_fragments": 1,
                    "options": {
                        "skip_if_last_matched": true
                    },
                    "order": "score",
                    "type": "experimental"
                },
                "text": {
                    "fragment_size": 150,
                    "fragmenter": "scan",
                    "matched_fields": [
                        "text",
                        "text.plain"
                    ],
                    "no_match_size": 150,
                    "number_of_fragments": 1,
                    "options": {
                        "boost_before": {
                            "20": 2,
                            "50": 1.8,
                            "200": 1.5,
                            "1000": 1.2
                        },
                        "max_fragments_scored": 5000,
                        "top_scoring": true
                    },
                    "type": "experimental"
                },
                "title": {
                    "fragmenter": "none",
                    "matched_fields": [
                        "title",
                        "title.plain"
                    ],
                    "number_of_fragments": 1,
                    "type": "experimental"
                }
            },
            "post_tags": [
                "\ue001"
            ],
            "pre_tags": [
                "\ue000"
            ]
        },
        "query": {
            "bool": {
                "filter": [
                    {
                        "bool": {
                            "must": [
                                {
                                    "bool": {
                                        "should": [
                                            {
                                                "match": {
                                                    "category.lowercase_keyword": {
                                                        "query": "ASpace"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "terms": {
                                        "namespace": [
                                            0,
                                            1,
                                            2,
                                            3
                                        ]
                                    }
                                }
                            ]
                        }
                    }
                ],
                "must": [
                    {
                        "match_all": []
                    }
                ]
            }
        },
        "rescore": [
            {
                "query": {
                    "query_weight": 1,
                    "rescore_query": {
                        "function_score": {
                            "functions": [
                                {
                                    "field_value_factor": {
                                        "field": "incoming_links",
                                        "missing": 0,
                                        "modifier": "log2p"
                                    }
                                },
                                {
                                    "filter": {
                                        "terms": {
                                            "namespace": [
                                                1
                                            ]
                                        }
                                    },
                                    "weight": 0.25
                                },
                                {
                                    "filter": {
                                        "terms": {
                                            "namespace": [
                                                2
                                            ]
                                        }
                                    },
                                    "weight": 0.05
                                },
                                {
                                    "filter": {
                                        "terms": {
                                            "namespace": [
                                                3
                                            ]
                                        }
                                    },
                                    "weight": 0.0125
                                }
                            ]
                        }
                    },
                    "rescore_query_weight": 1,
                    "score_mode": "multiply"
                },
                "window_size": 8192
            }
        ],
        "size": 21,
        "stats": [
            "filter_only",
            "full_text",
            "incategory"
        ],
        "stored_fields": [
            "text.word_count"
        ]
    }
}