For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiSearchInfo.md.
  • 中文
  • Interface: ApiSearchInfo

    Defined in: core/query/search.ts:116

    Per-search metadata (list=search's searchinfo sibling).

    Properties

    approximate_totalhits?

    optional approximate_totalhits?: true

    Defined in: core/query/search.ts:127

    Present (and true) when totalhits is only an approximation, i.e. the backend stopped counting early. A Flag: the key is omitted rather than set to false.

    Since

    MediaWiki 1.44


    rewrittenquery?

    optional rewrittenquery?: string

    Defined in: core/query/search.ts:136

    The query after search-side rewriting (srinfo=rewrittenquery).


    rewrittenquerysnippet?

    optional rewrittenquerysnippet?: string

    Defined in: core/query/search.ts:139

    HTML snippet of the rewritten query, with the changes highlighted (srinfo=rewrittenquery).


    suggestion?

    optional suggestion?: string

    Defined in: core/query/search.ts:130

    Suggested rewrite when the query had no/few results (srinfo=suggestion).


    suggestionsnippet?

    optional suggestionsnippet?: string

    Defined in: core/query/search.ts:133

    HTML snippet of the suggestion, with the changed terms highlighted (srinfo=suggestion).


    totalhits?

    optional totalhits?: number

    Defined in: core/query/search.ts:118

    Total number of matches (may be capped by the search backend).