Interface: ApiSearchResult
Defined in: core/query/search.ts:30
One search hit (list=search), and the page data generator=search injects
into a query.pages entry.
Which fields appear is controlled by srprop for list=search and by
gsrprop for generator=search. The two differ in their default: gsrprop
defaults to empty in generator mode, so only ns, title, pageid and the
injected index appear unless gsrprop is passed explicitly.
Extended by
Properties
categorysnippet?
optionalcategorysnippet?:string
Defined in: core/query/search.ts:56
Snippet of the matching category. srprop=categorysnippet.
extensiondata?
optionalextensiondata?:unknown
Defined in: core/query/search.ts:74
Search-backend extension data, keyed by augmentor name. srprop=extensiondata.
isfilematch?
optionalisfilematch?:boolean
Defined in: core/query/search.ts:71
Whether the hit matched a file. srprop=isfilematch; a real boolean.
ns?
optionalns?:number
Defined in: core/query/search.ts:32
Namespace index.
pageid?
optionalpageid?:number
Defined in: core/query/search.ts:38
Page id.
redirectsnippet?
optionalredirectsnippet?:string
Defined in: core/query/search.ts:68
HTML snippet of the redirect target title. srprop=redirectsnippet.
redirecttitle?
optionalredirecttitle?:string
Defined in: core/query/search.ts:65
Title of the redirect target, if this hit redirects. srprop=redirecttitle.
sectionsnippet?
optionalsectionsnippet?:string
Defined in: core/query/search.ts:62
HTML snippet of the section heading. srprop=sectionsnippet.
sectiontitle?
optionalsectiontitle?:string
Defined in: core/query/search.ts:59
Title of the section the match is in. srprop=sectiontitle.
size?
optionalsize?:number
Defined in: core/query/search.ts:41
Page size in bytes. srprop=size.
snippet?
optionalsnippet?:string
Defined in: core/query/search.ts:50
HTML snippet of the match, with highlights. srprop=snippet.
timestamp?
optionaltimestamp?:string
Defined in: core/query/search.ts:47
Last-edit timestamp. srprop=timestamp.
title?
optionaltitle?:string
Defined in: core/query/search.ts:35
Full page title.
titlesnippet?
optionaltitlesnippet?:string
Defined in: core/query/search.ts:53
HTML snippet of the title. srprop=titlesnippet.
wordcount?
optionalwordcount?:number
Defined in: core/query/search.ts:44
Word count. srprop=wordcount.