> 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.

# Interface: ApiSearchInfo

Defined in: [core/query/search.ts:116](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L116)

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

## Properties

### approximate_totalhits?

> `optional` **approximate_totalhits?**: `true`

Defined in: [core/query/search.ts:127](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L127)

Present (and `true`) when [totalhits](#totalhits) is only an approximation, i.e.
the backend stopped counting early. A [Flag](https://types-mediawiki-response.pages.dev/zh/api/core/Flag.md): the key is omitted
rather than set to `false`.

#### Since

MediaWiki 1.44

***

### rewrittenquery?

> `optional` **rewrittenquery?**: `string`

Defined in: [core/query/search.ts:136](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L136)

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

***

### rewrittenquerysnippet?

> `optional` **rewrittenquerysnippet?**: `string`

Defined in: [core/query/search.ts:139](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L139)

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

***

### suggestion?

> `optional` **suggestion?**: `string`

Defined in: [core/query/search.ts:130](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L130)

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

***

### suggestionsnippet?

> `optional` **suggestionsnippet?**: `string`

Defined in: [core/query/search.ts:133](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L133)

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

***

### totalhits?

> `optional` **totalhits?**: `number`

Defined in: [core/query/search.ts:118](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/core/query/search.ts#L118)

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